Update a post
Method: PUT
URL: https://example.com/<MIXPOST_CORE_PATH>/api/<workspaceUuid>/posts/{postUuid}
Authorization: Bearer <token>
Body:
{
"date": "2024-05-23",
"time": "16:00",
"timezone": "Europe/Chisinau",
"accounts": [1,2,3],
"tags": [1,2],
"versions": [
{
"account_id": 0,
"is_original": true,
"content": [
{
"body": "This is the content v2",
"media": [1]
}
],
"options": {
"mastodon": {
"sensitive": false
}
}
}
]
}
Response:
- 200
- 401
- 403
- 404
- 422
{
"success": true,
}
{
"message": "Unauthenticated."
}
{
"message": "Access forbidden."
}
{
"message": "Workspace not found."
}
{
"message": "Post not found."
}
{
"message": "Validation errors",
"errors": {}
}