Ver .md

teams.member_temperature_rules_set

Definir todas as regras de temperatura de um membro. Troca o conjunto de regras do membro por rules (cada temperatura uma vez, cap >= 1 ou null = sem limite). Lista vazia desliga todas as temperaturas. Devolve o membro.

  • Endpoint: POST https://app.atomiks.com.br/api/v1/teams.member_temperature_rules_set (corpo JSON)
  • Quem pode chamar: administrador da conta
  • Escopo da chave: crm:write
  • Grava dados: sim
  • Pela chave de API: sim
  • Ferramenta MCP: teams_member_temperature_rules_set
  • Ficha em JSON: https://app.atomiks.com.br/api/v1/openapi.json (operationId teams.member_temperature_rules_set)

Entrada

CampoTipoObrigatórioNota
teamIdstring (uuid)sim
memberIdstring (uuid)sim
rulesobject[]sim
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "teamId": {
      "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)$"
    },
    "memberId": {
      "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)$"
    },
    "rules": {
      "maxItems": 3,
      "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"
        ]
      }
    }
  },
  "required": [
    "teamId",
    "memberId",
    "rules"
  ]
}

Exemplo

curl -X POST https://app.atomiks.com.br/api/v1/teams.member_temperature_rules_set \
  -H "Authorization: Bearer $ATOMIKS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"teamId":"00000000-0000-0000-0000-000000000000","memberId":"00000000-0000-0000-0000-000000000000","rules":[{"temperature":"hot","cap":5},{"temperature":"warm","cap":null}]}'

CLI:

node cli/atomiks.mjs teams.member_temperature_rules_set --json '{"teamId":"00000000-0000-0000-0000-000000000000","memberId":"00000000-0000-0000-0000-000000000000","rules":[{"temperature":"hot","cap":5},{"temperature":"warm","cap":null}]}'

MCP: ferramenta teams_member_temperature_rules_set 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"
    },
    "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
}

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).

teams.member_temperature_rules_set · Atomiks API