Zum Inhalt springen
Deutsch
Esc
↑↓navigate↵open⌘Jpreview

Update a contact

Early access: request API access for your workspace at https://bauhow.com/support before using this endpoint.

Only the given fields change. A field value of null clears it.

PATCH/v1/contacts/{id}
Authorization
AuthorizationBearer token · headerrequired
Workspace API key (`bh_…`).
Path parameters
idstringrequired
min length 1
Request body
application/json
statusstring
Allowed:leadqualifiedcustomer
assignedTostring | any
Show properties
Any of:
string
string
any
any
fieldsobject
Responses
200OK
idstringrequired
statusstringrequired
Allowed:leadqualifiedcustomer
assignedTostring | anyrequired
Show properties
Any of:
string
string
any
any
fieldsobjectrequired
createdAtstring<date-time>required
updatedAtstring<date-time>required
lastActivityAtstring<date-time>required
Request
curl -X PATCH "https://app.bauhow.com/api/v1/contacts/string" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "status": "lead",
  "assignedTo": "string",
  "fields": {}
}'
Response
{
  "id": "string",
  "status": "lead",
  "assignedTo": "string",
  "fields": {},
  "createdAt": "2024-01-01T00:00:00Z",
  "updatedAt": "2024-01-01T00:00:00Z",
  "lastActivityAt": "2024-01-01T00:00:00Z"
}