crm.task_update
Editar tarefa. Altera título, tipo, prazo, responsável, oportunidade, duração, dia inteiro, anotações (HTML saneado), link da reunião e convidados. dueAt, assigneeId, opportunityId, durationMinutes, notes e meetingUrl aceitam null para limpar.
- Endpoint:
POST https://app.atomiks.com.br/api/v1/crm.task_update(corpo JSON) - Quem pode chamar: membro da conta
- Escopo da chave:
crm:write - Grava dados: sim
- Pela chave de API: sim
- Ferramenta MCP:
crm_task_update - Ficha em JSON:
https://app.atomiks.com.br/api/v1/openapi.json(operationIdcrm.task_update)
Entrada
| Campo | Tipo | Obrigatório | Nota |
|---|---|---|---|
id | string (uuid) | sim | |
title | string | não | |
kind | "todo" | "call" | "message" | "meeting" | não | |
dueAt | string (date-time) | null | não | |
assigneeId | string (uuid) | null | não | |
opportunityId | string (uuid) | null | não | |
durationMinutes | integer | null | não | |
allDay | boolean | não | |
notes | string | null | não | |
meetingUrl | string | null | não | |
guests | string (email)[] | não |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"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)$"
},
"title": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"kind": {
"type": "string",
"enum": [
"todo",
"call",
"message",
"meeting"
]
},
"dueAt": {
"anyOf": [
{
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
{
"type": "null"
}
]
},
"assigneeId": {
"anyOf": [
{
"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)$"
},
{
"type": "null"
}
]
},
"opportunityId": {
"anyOf": [
{
"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)$"
},
{
"type": "null"
}
]
},
"durationMinutes": {
"anyOf": [
{
"type": "integer",
"minimum": 5,
"maximum": 1440
},
{
"type": "null"
}
]
},
"allDay": {
"type": "boolean"
},
"notes": {
"anyOf": [
{
"type": "string",
"maxLength": 40000
},
{
"type": "null"
}
]
},
"meetingUrl": {
"anyOf": [
{
"type": "string",
"maxLength": 500,
"pattern": "^https:\\/\\/\\S+$"
},
{
"type": "null"
}
]
},
"guests": {
"maxItems": 10,
"type": "array",
"items": {
"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,}$"
}
}
},
"required": [
"id"
]
}Exemplo
curl -X POST https://app.atomiks.com.br/api/v1/crm.task_update \
-H "Authorization: Bearer $ATOMIKS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"id":"00000000-0000-0000-0000-000000000000","title":"Novo título"}'CLI:
node cli/atomiks.mjs crm.task_update --json '{"id":"00000000-0000-0000-0000-000000000000","title":"Novo título"}'MCP: ferramenta crm_task_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": {
"task": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "string"
},
"kind": {
"type": "string",
"enum": [
"todo",
"call",
"message",
"meeting"
]
},
"dueAt": {
"type": [
"string",
"null"
]
},
"done": {
"type": "boolean"
},
"doneAt": {
"type": [
"string",
"null"
]
},
"contact": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"required": [
"id",
"name"
],
"additionalProperties": false
},
"conversationId": {
"type": [
"string",
"null"
]
},
"opportunityId": {
"type": [
"string",
"null"
]
},
"assignee": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"required": [
"id",
"name"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"bucket": {
"type": "string",
"enum": [
"overdue",
"today",
"upcoming",
"no_date",
"done"
]
},
"durationMinutes": {
"type": [
"number",
"null"
]
},
"allDay": {
"type": "boolean"
},
"notes": {
"type": [
"string",
"null"
]
},
"meetingUrl": {
"type": [
"string",
"null"
]
},
"guests": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"id",
"title",
"kind",
"dueAt",
"done",
"doneAt",
"contact",
"conversationId",
"opportunityId",
"assignee",
"bucket",
"durationMinutes",
"allDay",
"notes",
"meetingUrl",
"guests"
],
"additionalProperties": false
}
},
"required": [
"task"
],
"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).