Approve a post
POST/:workspace/posts/approve/:post
Approves a post that is awaiting approval, moving it to scheduled. Without a request body the post keeps
the date and time it already carries; sending date and time moves it as it is approved. Requires
permission to schedule posts in the workspace.
Returns 422 when the authenticated user is not allowed to approve posts in this workspace, the post is not
in needs_approval, the post is already in history (published or failed), the post is currently being
published, or the post cannot be scheduled — that is, it has no stored date and time, its date and time is
in the past, or it has no accounts attached.
Request
Responses
- 200
- 401
- 403
- 404
- 422
Approval result.
The bearer token is missing, malformed, unknown, or expired.
The token is valid, but the user it belongs to may not perform this action:
- they are not a member of the
{workspace}in the path; or - their workspace role is too low for this endpoint (write routes require Admin or Member); or
- for
/panelendpoints, they are not a platform administrator.
The host application that Mixpost is installed into can also deny access to Mixpost as a whole, which produces the same response.
Workspace or post not found.
The request body failed validation.