Ver .md

account.profile_update

Alterar meu perfil completo. Altera nome, sobrenome, telefone (+ e 6 a 15 dígitos) e endereço do próprio usuário. Campo omitido não muda; texto vazio limpa (menos firstName, obrigatório). zipCode leva só os 8 dígitos. O nome completo mostrado à equipe (me.profile_get) passa a ser "nome sobrenome". A foto continua em me.profile_update.

  • Endpoint: POST https://app.atomiks.com.br/api/v1/account.profile_update (corpo JSON)
  • Quem pode chamar: qualquer usuário autenticado
  • Escopo da chave: nenhum (qualquer chave serve)
  • Grava dados: sim
  • Pela chave de API: sim
  • Ferramenta MCP: account_profile_update
  • Ficha em JSON: https://app.atomiks.com.br/api/v1/openapi.json (operationId account.profile_update)

Entrada

CampoTipoObrigatórioNota
firstNamestringnão
lastNamestringnão
phonestringnão
zipCodestringnão
countrystringnão
statestringnão
citystringnão
streetstringnão
numberstringnão
neighborhoodstringnão
complementstringnão
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "firstName": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "lastName": {
      "type": "string",
      "maxLength": 100
    },
    "phone": {
      "type": "string",
      "pattern": "^(\\+?\\d{6,15})?$"
    },
    "zipCode": {
      "type": "string",
      "pattern": "^(\\d{8})?$"
    },
    "country": {
      "type": "string",
      "maxLength": 100
    },
    "state": {
      "type": "string",
      "maxLength": 100
    },
    "city": {
      "type": "string",
      "maxLength": 100
    },
    "street": {
      "type": "string",
      "maxLength": 200
    },
    "number": {
      "type": "string",
      "maxLength": 20
    },
    "neighborhood": {
      "type": "string",
      "maxLength": 100
    },
    "complement": {
      "type": "string",
      "maxLength": 100
    }
  }
}

Exemplo

curl -X POST https://app.atomiks.com.br/api/v1/account.profile_update \
  -H "Authorization: Bearer $ATOMIKS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"firstName":"Ana","lastName":"Souza","zipCode":"01310100"}'

CLI:

node cli/atomiks.mjs account.profile_update --json '{"firstName":"Ana","lastName":"Souza","zipCode":"01310100"}'

MCP: ferramenta account_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": {
    "firstName": {
      "type": "string"
    },
    "lastName": {
      "type": "string"
    },
    "email": {
      "type": "string"
    },
    "phone": {
      "type": "string"
    },
    "avatarUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "zipCode": {
      "type": "string"
    },
    "country": {
      "type": "string"
    },
    "state": {
      "type": "string"
    },
    "city": {
      "type": "string"
    },
    "street": {
      "type": "string"
    },
    "number": {
      "type": "string"
    },
    "neighborhood": {
      "type": "string"
    },
    "complement": {
      "type": "string"
    }
  },
  "required": [
    "firstName",
    "lastName",
    "email",
    "phone",
    "avatarUrl",
    "zipCode",
    "country",
    "state",
    "city",
    "street",
    "number",
    "neighborhood",
    "complement"
  ],
  "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).