teams.update
Editar time. Altera nome, slug, descrição, ícone, cor da marca (color ou brandColor), logo, modo de distribuição (weighted = rodízio por peso e prioridade; strict = fila 1 a 1) e strictRespectCaps (no modo strict, pular quem atingiu o limite). Só o que for enviado muda; null limpa descrição, ícone, cor e logo. Slug repetido dá invalid_input.
- Endpoint:
POST https://app.atomiks.com.br/api/v1/teams.update(corpo JSON) - Quem pode chamar: administrador da conta
- Escopo da chave:
crm:write - Grava dados: sim
- Pela chave de API: sim
- Ferramenta MCP:
teams_update - Ficha em JSON:
https://app.atomiks.com.br/api/v1/openapi.json(operationIdteams.update)
Entrada
| Campo | Tipo | Obrigatório | Nota |
|---|---|---|---|
id | string (uuid) | sim | |
name | string | não | |
slug | string | não | |
description | string | null | não | |
emoji | string | null | não | |
color | string | null | não | |
brandColor | string | null | não | |
logoUrl | string | null | não | |
distributionMode | "weighted" | "strict" | não | |
strictRespectCaps | boolean | 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)$"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 120
},
"slug": {
"type": "string",
"minLength": 1,
"maxLength": 60
},
"description": {
"anyOf": [
{
"type": "string",
"maxLength": 1000
},
{
"type": "null"
}
]
},
"emoji": {
"anyOf": [
{
"type": "string",
"maxLength": 40
},
{
"type": "null"
}
]
},
"color": {
"anyOf": [
{
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$"
},
{
"type": "null"
}
]
},
"brandColor": {
"anyOf": [
{
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$"
},
{
"type": "null"
}
]
},
"logoUrl": {
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "null"
}
]
},
"distributionMode": {
"type": "string",
"enum": [
"weighted",
"strict"
]
},
"strictRespectCaps": {
"type": "boolean"
}
},
"required": [
"id"
]
}Exemplo
curl -X POST https://app.atomiks.com.br/api/v1/teams.update \
-H "Authorization: Bearer $ATOMIKS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"id":"00000000-0000-0000-0000-000000000000","distributionMode":"strict"}'CLI:
node cli/atomiks.mjs teams.update --json '{"id":"00000000-0000-0000-0000-000000000000","distributionMode":"strict"}'MCP: ferramenta teams_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"
},
"slug": {
"type": "string"
},
"description": {
"type": [
"string",
"null"
]
},
"emoji": {
"type": [
"string",
"null"
]
},
"color": {
"type": [
"string",
"null"
]
},
"brandColor": {
"type": [
"string",
"null"
]
},
"logoUrl": {
"type": [
"string",
"null"
]
},
"memberCount": {
"type": "number"
},
"totalMembers": {
"type": "number"
},
"memberTypeCounts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"attendantTypeId": {
"type": [
"string",
"null"
]
},
"name": {
"type": [
"string",
"null"
]
},
"color": {
"type": [
"string",
"null"
]
},
"emoji": {
"type": [
"string",
"null"
]
},
"count": {
"type": "number"
}
},
"required": [
"attendantTypeId",
"name",
"color",
"emoji",
"count"
],
"additionalProperties": false
}
},
"appointmentSchedules": {
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"distributionMode": {
"type": "string",
"enum": [
"weighted",
"strict"
]
},
"strictRespectCaps": {
"type": "boolean"
},
"queueCursorMemberId": {
"type": [
"string",
"null"
]
},
"createdAt": {
"type": "string"
},
"updatedAt": {
"type": "string"
},
"members": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"teamId": {
"type": "string"
},
"attendantId": {
"type": "string"
},
"attendantName": {
"type": "string"
},
"name": {
"type": "string"
},
"initials": {
"type": "string"
},
"imageUrl": {
"type": [
"string",
"null"
]
},
"role": {
"type": "string",
"enum": [
"admin",
"member"
]
},
"priority": {
"type": "number"
},
"weight": {
"type": "number"
},
"isFixed": {
"type": "boolean"
},
"capOpen": {
"type": [
"number",
"null"
]
},
"active": {
"type": "boolean"
},
"operational": {
"type": "boolean"
},
"inPipeline": {
"type": [
"boolean",
"null"
]
},
"position": {
"type": "number"
},
"temperatureRules": {
"type": "array",
"items": {
"type": "object",
"properties": {
"temperature": {
"type": "string",
"enum": [
"hot",
"warm",
"cold"
]
},
"cap": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
}
},
"required": [
"temperature",
"cap"
],
"additionalProperties": false
}
}
},
"required": [
"id",
"teamId",
"attendantId",
"attendantName",
"name",
"initials",
"imageUrl",
"role",
"priority",
"weight",
"isFixed",
"capOpen",
"active",
"operational",
"inPipeline",
"position",
"temperatureRules"
],
"additionalProperties": false
}
}
},
"required": [
"id",
"name",
"slug",
"description",
"emoji",
"color",
"brandColor",
"logoUrl",
"memberCount",
"totalMembers",
"memberTypeCounts",
"appointmentSchedules",
"distributionMode",
"strictRespectCaps",
"queueCursorMemberId",
"createdAt",
"updatedAt",
"members"
],
"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).