PUT
/
v1
/
accounts
/
contacts
/
{contactId}
curl --request PUT \
  --url https://platform.thena.ai/v1/accounts/contacts/{contactId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-org-id: <api-key>' \
  --data '{
  "firstName": "John",
  "lastName": "Doe",
  "avatarUrl": "https://example.com/avatar.png",
  "email": "john.doe@example.com",
  "phoneNumber": "+1234567890",
  "contactType": "CT123",
  "accountIds": [
    "A123",
    "A456"
  ],
  "metadata": {},
  "customFieldValues": [
    {}
  ]
}'
{
  "id": "<string>",
  "firstName": "<string>",
  "lastName": "<string>",
  "email": "<string>",
  "phoneNumber": "<string>",
  "avatarUrl": "<string>",
  "accounts": [
    "<string>"
  ],
  "contactTypeId": "<string>",
  "contactType": "<string>",
  "customFieldValues": [
    "<string>"
  ],
  "metadata": {},
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

Authorizations

Authorization
string
header
required

Enter JWT bearer token

x-org-id
string
header
required

Enter organization ID

Path Parameters

contactId
string
required

Body

application/json
firstName
string

First name of the customer contact

Example:

"John"

lastName
string

Last name of the customer contact

Example:

"Doe"

avatarUrl
string

Avatar URL of the customer contact

Example:

"https://example.com/avatar.png"

email
string

Email of the customer contact

Example:

"john.doe@example.com"

phoneNumber
string

Phone number of the customer contact with country code

Example:

"+1234567890"

contactType
string

Contact type of the customer contact

Example:

"CT123"

accountIds
string[]

Account IDs of the customer contact. This will replace the existing account IDs of the customer contact

Example:
["A123", "A456"]
metadata
object

The metadata of the customer contact

customFieldValues
object[]

The custom field values of the customer contact

Response

200
application/json
Operation successful
id
string
required

The identifier of the customer contact

firstName
string
required

The first name of the customer contact

lastName
string
required

The last name of the customer contact

email
string
required

The email of the customer contact

phoneNumber
string
required

The phone number of the customer contact

avatarUrl
string
required

The avatar URL of the customer contact

accounts
string[]
required

The name of the account

contactTypeId
string
required

The identifier of the contact type

contactType
string
required

The name of the contact type

customFieldValues
string[]
required

The custom field values

metadata
object
required

The metadata of the contact

createdAt
string
required

The creation date of the contact

updatedAt
string
required

The last update date of the contact