Posts

Update a post

Update a post via the API.

Method: PUT

URL: https://app.socialk.it/core/api/<workspaceUuid>/posts/{postUuid}

Authorization: Bearer <token>

Body:

{
  "date": "2024-05-23",
  "time": "16:00",
  "timezone": "Europe/Paris",
  "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:

{
    "success": true
}
{
    "message": "Unauthenticated."
}
{
    "message": "Access forbidden."
}
{
    "message": "Workspace not found."
}
{
    "message": "Post not found."
}
{
    "message": "Validation errors",
    "errors": {}
}