TelefonAIv1
Contacts

Update a contact

Update a contact. Only the fields you send change; an empty string clears an optional field. This is the door you are looking for — contact.upserted via POST /v1/events does the same thing, but is meant for mirroring an entire directory. A number another contact already has gives 409 conflict. The reply is the contact with tags, and a change triggers contact.updated.

PATCH/v1/contacts/{id}

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Parameters

idstringpathrequired

The id of the resource.

Request

curl --request PATCH \
  --url "https://api.telefonai.dk/v1/contacts/<id>" \
  --header "Authorization: Bearer $API_NOEGLE" \
  --header "Content-Type: application/json" \
  --data '{}'

Response

application/json

Success.

object

401Missing key
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}