Update contact
Update contact. See the OpenAPI-defined parameters, request body, and responses below.
PUT
/Contact/{id}Update contact. See the OpenAPI-defined parameters, request body, and responses below.
OpenAPI description: Este endpoint atualiza os dados de um contato existente identificado pelo id.
Authentication
Authentication required. Send your user API key in the X-API-Key header.
Parameters
| Name | Location | Type | Required | Description | Constraints |
|---|---|---|---|---|---|
id | path | integer · int32 | Yes | — | — |
Request body
Content type: application/json · Schema: ContactDto
| Property | Type | Required | Description | Constraints |
|---|---|---|---|---|
id | integer · int32 | No | — | — |
firstName | string | No | — | nullable |
lastName | string | No | — | nullable |
fullName | string | No | — | nullable |
linkedInUrl | string | No | — | nullable |
title | string | No | — | nullable |
companyName | string | No | — | nullable |
accountId | integer · int32 | No | — | — |
preferredUserId | integer · int32 | No | — | — |
enabled | boolean | No | — | — |
externalId | string | No | — | nullable |
primaryEmail | string | No | — | nullable |
primaryPhone | string | No | — | nullable |
Example request
curl --request PUT \
--url 'https://api.zild.ai/Contact/{id}' \
--header 'X-API-Key: YOUR_USER_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"id": 0,
"firstName": "string",
"lastName": "string",
"fullName": "string",
"linkedInUrl": "string",
"title": "string",
"companyName": "string",
"accountId": 0,
"preferredUserId": 0,
"enabled": true,
"externalId": "string",
"primaryEmail": "string",
"primaryPhone": "string"
}'
Responses
| Status | Description | Response body |
|---|---|---|
200 | Contato atualizado com sucesso | No response body is defined. |
Data models
ContactDto
| Property | Type | Required | Description | Constraints |
|---|---|---|---|---|
id | integer · int32 | No | — | — |
firstName | string | No | — | nullable |
lastName | string | No | — | nullable |
fullName | string | No | — | nullable |
linkedInUrl | string | No | — | nullable |
title | string | No | — | nullable |
companyName | string | No | — | nullable |
accountId | integer · int32 | No | — | — |
preferredUserId | integer · int32 | No | — | — |
enabled | boolean | No | — | — |
externalId | string | No | — | nullable |
primaryEmail | string | No | — | nullable |
primaryPhone | string | No | — | nullable |