Approvals
Reject
POST
https://postifuse.com/v1/approvals/{id}/rejectRejects the post. It goes back to draft and nothing is published.
curl --request POST \ --url 'https://postifuse.com/v1/approvals/id_1/reject' \ --header 'Authorization: Bearer pf_live_…'
const res = await fetch("https://postifuse.com/v1/approvals/id_1/reject", {
method: "POST",
headers: {
"Authorization": "Bearer pf_live_…"
},
});
const data = await res.json();
import requests
res = requests.post(
"https://postifuse.com/v1/approvals/id_1/reject",
headers={"Authorization": "Bearer pf_live_…"},
)
print(res.json())
{
"id": "apr_7",
"status": "rejected",
"post": "pst_42"
}
{
"error": "workspace_not_active",
"message": "The workspace for this key is not active yet.",
"docs": "https://postifuse.com/docs/errors/"
}
Headers
AuthorizationstringrequiredBearer followed by a workspace key, a profile key or an OAuth token. See authentication.
Example Bearer pf_live_…
Path parameters
idstringrequiredThe approval id.
Response
200Rejected
403Workspace not active