Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

idempotency-key
string

Idempotency key for this request. Will return the same response if the same request is made again with the same key. Fails if parameters are different.

Body

application/json
phoneAccountIds
string[]
required

IDs das linhas que recebem o centro de custo, até 1.000 por requisição. Todas devem pertencer à sua empresa; se alguma não pertencer, nenhuma é alterada. IDs repetidos são considerados uma vez.

Required array length: 1 - 1000 elements
Example:
costCenterId
string | null
required

ID do centro de custo aplicado às linhas; consultável em GET /cost-centers. Envie null para remover o centro de custo das linhas.

Example:

"0198c2f1-3815-45b7-9e60-8e137cad845c"

Response

taskId
string<uuid>
required

ID da tarefa que aplica a alteração; acompanhe o resultado em GET /tasks/{id}.

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)$
Example:

"0f9c1b2e-5d3a-4f8b-9c7e-1a2b3c4d5e6f"