Skip to content
BrainyShorts Docs
Esc
navigateopen⌘Jpreview

Update or unschedule a post

Accepts a delivery id or a parent post id. Every still-scheduled delivery under the parent is updated together. status: "draft" cancels the schedule.

PATCH/api/cli/posts
Authorization
AuthorizationBearer token (ba_sk_...) · headerrequired

API key from /dashboard/api-keys. Keys expire after 365 days.

Request body
requiredapplication/json
idstringrequired

Delivery id or parent post id

statusstring
Allowed:draftscheduled
captionstring
max length 2200
scheduled_atstring<date-time>

Must be in the future. scheduled_time is accepted as an alias.

add_targetsTarget[]
max items 12
Show properties
Array of Target
social_account_idstring<uuid>required
platformPlatformrequired
Allowed:tiktokinstagramyoutubelinkedinx
settingsobject
Responses
200

OK

post_idstring
social_postsobject[]
400

INVALID_POST_UPDATE

errorstringrequired
codestring
401

Missing, invalid, expired, or revoked API key

errorstringrequired
codestring
404

Not found

errorstringrequired
codestring
Try it
Server
Authorization
Bodyapplication/json
Request
curl -X PATCH "https://www.brainyshorts.com/api/cli/posts" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "string",
  "status": "draft",
  "caption": "string",
  "scheduled_at": "2019-08-24T14:15:22Z",
  "add_targets": [
    {
      "social_account_id": "f4777757-36aa-48ee-b520-6e818e68eb51",
      "platform": "tiktok",
      "settings": {}
    }
  ]
}'
Response
{
  "post_id": "string",
  "social_posts": [
    {}
  ]
}