TenkaTenka
Sign in

Tenka Help Center › Developer area › Change log of a /clientes record

Change log

Change log of a /clientes record

GET/api/v1/clientes/{id}/alteracoes

The 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

NameInTypeRequiredDescription
AuthorizationheaderstringyesBearer followed by the key. Alternative: X-API-Key header.
idpathintegeryesRecord id (the id field of the list).

Response fields

NameTypeDescription
recursostringThe queried resource.
idintegerRecord identifier. Use it in by-id calls.
totalintegerTotal items.
alteracoesarrayThe record's changes.
alteracoes[].quandostring (date and time)Date and time of the change.
alteracoes[].campostringTechnical name of the changed field.
alteracoes[].rotulostringField label as the screen shows it.
alteracoes[].destringOld value.
alteracoes[].parastringNew value.
alteracoes[].quemstringWho changed it.

Status codes

HTTPDescription
200{recurso, id, total, alteracoes[{quando, campo, rotulo, de, para, quem}]}
403change log turned off for this account

Error messages

HTTPMessage (erro field)When it happens
401chave de API ausente ou inválidaNo key header, revoked key or typo.
401chave sem empresa vinculadaThe key exists but is not linked to an account. Create another one in Settings › API.
403conta de demonstração: a API pública está desligada na vitrineThe call reached the demo account, where the public API is turned off.
403identidade da chave de API irregularThe account refuses keys with irregular identity (deactivated person or ownerless key). The body brings motivo and comoResolver.
429limite de requisições excedido (120/min)The key went over its per-minute limit. Wait for Retry-After.
403o 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.
400id inválidoThe id in the URL is not a number.
404recurso sem trilha de alteraçõesThe resource has no change trail. The response lists those that do.