contacts.profile_update
Editar dados do contato. Altera nome, e-mail, Instagram (aceita @), Telegram, aniversário (AAAA-MM-DD), endereço (cep, rua, numero, complemento, bairro, cidade, estado, pais) e documento. Todos aceitam null (ou texto vazio) para limpar; o endereço é substituído por inteiro. O telefone não se edita aqui: é a identidade do WhatsApp do contato.
- Endpoint:
POST https://app.atomiks.com.br/api/v1/contacts.profile_update(corpo JSON) - Quem pode chamar: membro da conta
- Escopo da chave:
crm:write - Grava dados: sim
- Pela chave de API: sim
- Ferramenta MCP:
contacts_profile_update - Ficha em JSON:
https://app.atomiks.com.br/api/v1/openapi.json(operationIdcontacts.profile_update)
Entrada
| Campo | Tipo | Obrigatório | Nota |
|---|---|---|---|
contactId | string (uuid) | sim | |
name | string | não | |
email | string (email) | null | "" | não | |
instagram | string | null | "" | não | |
telegram | string | null | não | |
document | string | null | não | |
birthday | string | null | não | |
address | object | null | não |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"contactId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 120
},
"email": {
"anyOf": [
{
"anyOf": [
{
"type": "string",
"maxLength": 254,
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
},
{
"type": "null"
}
]
},
{
"type": "string",
"const": ""
}
]
},
"instagram": {
"anyOf": [
{
"anyOf": [
{
"type": "string",
"pattern": "^@?[A-Za-z0-9._]{1,30}$"
},
{
"type": "null"
}
]
},
{
"type": "string",
"const": ""
}
]
},
"telegram": {
"anyOf": [
{
"type": "string",
"maxLength": 64
},
{
"type": "null"
}
]
},
"document": {
"anyOf": [
{
"type": "string",
"maxLength": 32
},
{
"type": "null"
}
]
},
"birthday": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
{
"type": "null"
}
]
},
"address": {
"anyOf": [
{
"type": "object",
"properties": {
"cep": {
"type": "string"
},
"rua": {
"type": "string"
},
"numero": {
"type": "string"
},
"complemento": {
"type": "string"
},
"bairro": {
"type": "string"
},
"cidade": {
"type": "string"
},
"estado": {
"type": "string"
},
"pais": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"required": [
"contactId"
]
}Exemplo
curl -X POST https://app.atomiks.com.br/api/v1/contacts.profile_update \
-H "Authorization: Bearer $ATOMIKS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"contactId":"00000000-0000-0000-0000-000000000000","email":"[email protected]"}'CLI:
node cli/atomiks.mjs contacts.profile_update --json '{"contactId":"00000000-0000-0000-0000-000000000000","email":"[email protected]"}'MCP: ferramenta contacts_profile_update com a mesma entrada.
Saída
Sucesso: {"data": ...} com o formato abaixo.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
},
"phone": {
"type": [
"string",
"null"
]
},
"email": {
"type": [
"string",
"null"
]
},
"instagram": {
"type": [
"string",
"null"
]
},
"telegram": {
"type": [
"string",
"null"
]
},
"birthday": {
"type": [
"string",
"null"
]
},
"address": {
"anyOf": [
{
"type": "object",
"properties": {
"cep": {
"type": "string"
},
"rua": {
"type": "string"
},
"numero": {
"type": "string"
},
"complemento": {
"type": "string"
},
"bairro": {
"type": "string"
},
"cidade": {
"type": "string"
},
"estado": {
"type": "string"
},
"pais": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"document": {
"type": [
"string",
"null"
]
},
"firstSeenAt": {
"type": "string"
},
"consents": {
"type": "array",
"items": {
"type": "object",
"properties": {
"channel": {
"type": "string",
"enum": [
"whatsapp",
"email",
"sms",
"instagram",
"telegram",
"voice"
]
},
"status": {
"type": "string",
"enum": [
"opted_in",
"opted_out"
]
},
"recorded": {
"type": "boolean"
},
"changedAt": {
"type": [
"string",
"null"
]
},
"source": {
"anyOf": [
{
"type": "string",
"enum": [
"manual",
"inbound",
"import",
"api"
]
},
{
"type": "null"
}
]
}
},
"required": [
"channel",
"status",
"recorded",
"changedAt",
"source"
],
"additionalProperties": false
}
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"color": {
"type": "string"
}
},
"required": [
"id",
"name",
"color"
],
"additionalProperties": false
}
},
"lists": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
],
"additionalProperties": false
}
},
"customFields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"key": {
"type": "string"
},
"label": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"text",
"number",
"date",
"select",
"boolean",
"file"
]
},
"fieldType": {
"type": "string",
"enum": [
"text",
"textarea",
"number",
"currency",
"percentage",
"date",
"select",
"multi_select",
"radio",
"link",
"rating",
"boolean",
"file",
"image"
]
},
"options": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
]
},
"position": {
"type": "number"
},
"archived": {
"type": "boolean"
},
"value": {
"anyOf": [
{},
{
"type": "null"
}
]
}
},
"required": [
"id",
"key",
"label",
"type",
"fieldType",
"options",
"position",
"archived",
"value"
],
"additionalProperties": false
}
}
},
"required": [
"id",
"name",
"phone",
"email",
"instagram",
"telegram",
"birthday",
"address",
"document",
"firstSeenAt",
"consents",
"tags",
"lists",
"customFields"
],
"additionalProperties": false
}Erros
{"error": {"code", "message", "requestId"}}. Códigos: invalid_input (400), unauthorized (401), forbidden / account_pending / scope_missing (403), not_found (404), limit_reached (409), internal (500).