Upload post picture
/api/posts/pictureKeeps a picture for a post. The body is the picture itself: a PNG, JPEG, GIF or WebP of at most 8 MB, told apart by its first bytes. Answers with its id; save that as the post's pictureId. Discord is sent it as a file when the post goes. One no post was saved with is deleted once it is a day old.
Needs the ManagePosts permission.
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/api/posts/picture"{ "pictureId": "7d230a48-4a94-485b-82e1-57a6bf2e0a16"}Write an event list for a post POST
The text for one published event (eventId), or for every published, not cancelled event whose date starts in a range of days (from and to, yyyy-MM-dd, counted, in timeZone; at most 62 days). Dates are written so Discord shows each reader's own time and VRChat and Bluesky the event's own zone; the list is wrapped in marks no site shows, saying what it was built from. Saves nothing. Needs the `ViewCalendar` and `ManagePosts` permissions.
Upload post picture to VRChat POST
Uploads a post's picture, kept with `POST /api/posts/picture`, to VRChat, on the VRChat account Modbot signs in as, for a VRChat group post. Answers with the file id VRChat gave it; send that as the VRChat section's `imageId`. Only a PNG or JPEG of at most 10 MB. One request to VRChat, at most one a minute and never retried. Answers 409 "Picture uploads are off." until the operator turns VRChat picture uploads on in Settings, and 409 "Modbot's VRChat account needs VRChat+ to use pictures." while the account is known to have none; while uploads are off a VRChat post goes as text only. Needs the `ManagePosts` permission.