Change log
Change log of a /clientes record
GET
/api/v1/clientes/{id}/alteracoeshttps://tenka.app.br/api/v1/clientes/{id}/alteracoesThe record's change trail: each changed field, old value, new value, who and when — the same the screen shows. The account turns this resource on and off in Parameters.
Key scope
Any key of the account (read is enough).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Authorization | header | string | yes | Bearer followed by the key. Alternative: X-API-Key header. |
id | path | integer | yes | Record id (the id field of the list). |
Response fields
| Name | Type | Description |
|---|---|---|
recurso | string | The queried resource. |
id | integer | Record identifier. Use it in by-id calls. |
total | integer | Total items. |
alteracoes | array | The record's changes. |
alteracoes[].quando | string (date and time) | Date and time of the change. |
alteracoes[].campo | string | Technical name of the changed field. |
alteracoes[].rotulo | string | Field label as the screen shows it. |
alteracoes[].de | string | Old value. |
alteracoes[].para | string | New value. |
alteracoes[].quem | string | Who changed it. |
Status codes
| HTTP | Description |
|---|---|
| 200 | {recurso, id, total, alteracoes[{quando, campo, rotulo, de, para, quem}]} |
| 403 | change log turned off for this account |
Error messages
| HTTP | Message (erro field) | When it happens |
|---|---|---|
| 401 | chave de API ausente ou inválida | No key header, revoked key or typo. |
| 401 | chave sem empresa vinculada | The key exists but is not linked to an account. Create another one in Settings › API. |
| 403 | conta de demonstração: a API pública está desligada na vitrine | The call reached the demo account, where the public API is turned off. |
| 403 | identidade da chave de API irregular | The account refuses keys with irregular identity (deactivated person or ownerless key). The body brings motivo and comoResolver. |
| 429 | limite de requisições excedido (120/min) | The key went over its per-minute limit. Wait for Retry-After. |
| 403 | o log de alterações via API está desligado nesta conta (parâmetro API.LOG_ALTERACOES_ATIVO) | The account turned off the API change log. The trail is still recorded and visible on screen. |
| 400 | id inválido | The id in the URL is not a number. |
| 404 | recurso sem trilha de alterações | The resource has no change trail. The response lists those that do. |