attendants.availability_override_create
Criar exceção de disponibilidade. Marca uma data (AAAA-MM-DD) como indisponível (isBlocked true, padrão; sem horário vale o dia todo, com startTime e endTime só a faixa) ou acrescenta uma faixa extra (isBlocked false, exige as duas horas). O próprio atendente ou um administrador.
- Endpoint:
POST https://app.atomiks.com.br/api/v1/attendants.availability_override_create(corpo JSON) - Quem pode chamar: membro da conta
- Escopo da chave:
crm:write - Grava dados: sim
- Pela chave de API: sim
- Ferramenta MCP:
attendants_availability_override_create - Ficha em JSON:
https://app.atomiks.com.br/api/v1/openapi.json(operationIdattendants.availability_override_create)
Entrada
| Campo | Tipo | Obrigatório | Nota |
|---|---|---|---|
id | string (uuid) | sim | |
date | string | sim | |
isBlocked | boolean | não | padrão true |
startTime | string | null | não | |
endTime | string | null | 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)$"
},
"date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"isBlocked": {
"default": true,
"type": "boolean"
},
"startTime": {
"anyOf": [
{
"type": "string",
"pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$"
},
{
"type": "null"
}
]
},
"endTime": {
"anyOf": [
{
"type": "string",
"pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"date"
]
}Exemplo
curl -X POST https://app.atomiks.com.br/api/v1/attendants.availability_override_create \
-H "Authorization: Bearer $ATOMIKS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"id":"00000000-0000-0000-0000-000000000000","date":"2026-12-25","isBlocked":true}'CLI:
node cli/atomiks.mjs attendants.availability_override_create --json '{"id":"00000000-0000-0000-0000-000000000000","date":"2026-12-25","isBlocked":true}'MCP: ferramenta attendants_availability_override_create 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"
},
"date": {
"type": "string"
},
"isBlocked": {
"type": "boolean"
},
"startTime": {
"type": [
"string",
"null"
]
},
"endTime": {
"type": [
"string",
"null"
]
}
},
"required": [
"id",
"date",
"isBlocked",
"startTime",
"endTime"
],
"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).