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
idstringobligatorio
Cuerpo de la solicitud
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
Respuesta
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
Errores
401La clave de API falta, es inválida, expiró o fue revocada.
403A la clave le falta el permiso requerido, o no está autorizada para este cliente/ubicación.
404El recurso no se encontró, o no pertenece a su agencia.
409La solicitud entra en conflicto con el estado actual del recurso — por ejemplo, cambiar el correo electrónico o el teléfono de un destinatario al que ya se le ha enviado un mensaje, o una invitación de equipo que ya fue aceptada (o que aún no ha sido aceptada).
429Demasiadas solicitudes. Reintente tras el número de segundos indicado en el encabezado Retry-After.
502The item was approved but the action failed to run. The error says why.
post/api/v1/approvals/{id}/approve
Su clave de API
id *
Cuerpo de la solicitud
{}