v1Recursos/Approvals/postApprove an item
Approve an item
Approves a pending item and runs it. For held content you can approve it anyway after reviewing its content checks, give it a new send time, or record a reason. Answers 409 when it was already decided, and 502 when it was approved but the action failed.
post
approvals:write/api/v1/approvals/{id}/approveParâmetros de consulta
idstringobrigatório
Corpo da solicitação
reasonstringopcional
Why you approved or declined it, up to 2,000 characters. It is kept with the decision.
scheduledForstringopcional
A new time to publish content at, as a date-time. Leave it out to keep the time the item already has.
anywayobjectopcional
Approve content even though its content checks flagged it: send the fingerprint of the check result you reviewed and the keys of the findings you accept.
fingerprintstringopcional
acceptedKeysarray of stringopcional
Resposta
dataobjectopcional
idstringopcional
statusstring (pending | approved | rejected)opcional
kindstringopcional
What kind of item this is, for example content your agent drafted or an action held by your autonomy rules.
originstringopcional
titlestringopcional
summarystringopcional
clientIdstringopcional
modulestringopcional
changeobjectopcional
The exact action that runs on approval: the tool, its arguments and the fields it changes.
toolstringopcional
argsobjectopcional
fieldsarray of objectopcional
contentobjectopcional
The drafted content, when the item is content.
requestedAtstringopcional
scheduledForstringopcional
expiresAtstringopcional
decidedAtstringopcional
decidedBystringopcional
Who made the decision, or null while it is still pending.
decisionReasonstringopcional
publishStatestring (published | failed)opcional
publishErrorstringopcional
publishedAtstringopcional
Erros
401Chave de API ausente, inválida, expirada ou revogada.
403A chave não tem a permissão exigida, ou não está autorizada para este cliente/local.
404O recurso não foi encontrado, ou não pertence à sua agência.
409A solicitação entra em conflito com o estado atual do recurso — por exemplo, alterar o e-mail ou telefone de um destinatário que já recebeu uma mensagem, ou um convite de equipe que já foi aceito (ou que ainda não foi aceito).
429Muitas solicitações. Tente novamente após o número de segundos indicado no cabeçalho Retry-After.
502The item was approved but the action failed to run. The error says why.
post/api/v1/approvals/{id}/approve
Sua chave de API
id *
Corpo da solicitação
{}