v1Ressourcen/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}/approveQuery-Parameter
idstringerforderlich
Anfragetext
reasonstringoptional
Why you approved or declined it, up to 2,000 characters. It is kept with the decision.
scheduledForstringoptional
A new time to publish content at, as a date-time. Leave it out to keep the time the item already has.
anywayobjectoptional
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.
fingerprintstringoptional
acceptedKeysarray of stringoptional
Antwort
dataobjectoptional
idstringoptional
statusstring (pending | approved | rejected)optional
kindstringoptional
What kind of item this is, for example content your agent drafted or an action held by your autonomy rules.
originstringoptional
titlestringoptional
summarystringoptional
clientIdstringoptional
modulestringoptional
changeobjectoptional
The exact action that runs on approval: the tool, its arguments and the fields it changes.
toolstringoptional
argsobjectoptional
fieldsarray of objectoptional
contentobjectoptional
The drafted content, when the item is content.
requestedAtstringoptional
scheduledForstringoptional
expiresAtstringoptional
decidedAtstringoptional
decidedBystringoptional
Who made the decision, or null while it is still pending.
decisionReasonstringoptional
publishStatestring (published | failed)optional
publishErrorstringoptional
publishedAtstringoptional
Fehler
401API-Schlüssel fehlt, ist ungültig, abgelaufen oder widerrufen.
403Dem Schlüssel fehlt die erforderliche Berechtigung, oder er ist für diesen Kunden/Standort nicht autorisiert.
404Die Ressource wurde nicht gefunden oder gehört nicht zu Ihrer Agentur.
409Die Anfrage steht im Widerspruch zum aktuellen Zustand der Ressource — zum Beispiel beim Ändern der E-Mail-Adresse oder Telefonnummer eines Empfängers, dem bereits eine Nachricht gesendet wurde, oder bei einer Team-Einladung, die bereits akzeptiert wurde (oder noch nicht akzeptiert wurde).
429Zu viele Anfragen. Versuchen Sie es nach der im Retry-After-Header angegebenen Anzahl Sekunden erneut.
502The item was approved but the action failed to run. The error says why.
post/api/v1/approvals/{id}/approve
Ihr API-Schlüssel
id *
Anfragetext
{}