Coach — Announcements

Edit a post (its author or an admin). Audience and publish time only before it goes out: 409 ALREADY_PUBLISHED after.

Changed on
patch/api/coach/announcements/{id}

Request

  • Base URL
    https://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.rewritelifestyle.ai/api/coach/announcements/{id}
  • Auth
    HTTP bearer

Path parameters

idnumber required

Headers

x-timezonestring required

Request body multipart/form-data

titlestring
bodystring
audience'all_clients' | 'groups'

Before publish only.

groupIdsstring[]

Before publish only.

publishAtstring

Before publish only. "now" publishes straight away.

expiresOnstring

YYYY-MM-DD, or an empty string for no end date.

pinnedboolean
keepImageIdsstring[]

The existing images to keep, in order; new files follow them. Omit to leave the images as they are. An empty value removes them all.

Example request

{
  "keepImageIds": [
    5,
    3
  ]
}

Changes