Update a post
PUT/:workspace/posts/:post
Replaces the post's accounts, tags and versions (existing versions are removed and recreated from the
request) and recomputes the scheduled date and time from date + time.
Caveats — differences from creating a post
timezoneis ignored. Unlike creation, this endpoint does not applytimezonewhen interpretingdateandtime. The field is accepted, but has no effect.schedule,schedule_nowandqueuehave no effect. They are accepted by validation for consistency with post creation, but this endpoint does not read them.- The status is never changed by this endpoint. Only the scheduled date and time is updated. Use
POST /posts/schedule/{post},POST /posts/add-to-queue/{post}orPOST /posts/approve/{post}to change a post's status. - If the post is not a draft and either
accountsis empty ordateandtimeare not both present, the post is moved back todraft.
Returns 422 when the post is already in history (published or failed) or is currently being published.
Request
Responses
- 200
- 401
- 403
- 404
- 422
Update 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.