Skip to content

Patch Contact

PATCH
/platform/v1/contacts/{contact_id}
curl --request PATCH \
--url https://example.com/platform/v1/contacts/1 \
--header 'Content-Type: application/json' \
--header 'X-API-Key: example' \
--data '{ "contact_metadata": {}, "display_name": "example" }'
contact_id
required
Contact Id
integer
X-API-Key
required
X-Api-Key
string
Media type application/json
PlatformContactPatch
object
contact_metadata
Any of:
object
key
additional properties
any
display_name
Any of:
string
<= 255 characters
Example generated
{
"contact_metadata": {},
"display_name": "example"
}

Successful Response

Media type application/json
PlatformContactResponse
object
business_scoped_user_id
Any of:
string
contact_metadata
Contact Metadata
object
key
additional properties
any
created_at
required
Created At
string format: date-time
display_name
Any of:
string
first_seen_at
required
First Seen At
string format: date-time
id
required
Id
integer
ig_id
Any of:
string
last_seen_at
required
Last Seen At
string format: date-time
phone
Any of:
string
platform_channel_id
required
Platform Channel Id
integer
profile_name
Any of:
string
username
Any of:
string
wa_id
Any of:
string
Example
{
"contact_metadata": {}
}

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}