Upload Discord picture
/api/calendar/coverKeeps a picture for an event's Discord cover and channel post. Needs Manage calendar or Manage templates, because the template editor keeps one too. 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 event's coverPictureId. Modbot keeps it until the event is deleted or given another; one no event was saved with is deleted once it is a day old, within the hour after.
Needs the ViewCalendar 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/calendar/cover"{ "coverId": "5fd178bd-f51e-4f24-9612-1857445ad9a8"}Upload VRChat calendar picture POST
Uploads a picture to VRChat, on the VRChat account Modbot signs in as, for an event's entry on VRChat's calendar. Needs Manage calendar or Manage templates, because the template editor keeps one too. The body is the picture itself: a PNG or JPEG of at most 10 MB, told apart by its first bytes rather than its Content-Type. Answers with the file id VRChat gave it; save that as the event's vrChatImageId. eventId names the event when it is already saved, for the audit log. One request to VRChat, at most one a minute and never retried; a picture that is too big or not a PNG or JPEG is refused before VRChat is asked. Answers 409 "Picture uploads are off." until the operator turns uploads on in Settings, and 409 "Modbot's VRChat account needs VRChat+ to use pictures." while the account is known to have none; VRChat takes the upload only from an account with VRChat+. Modbot keeps none of the bytes. Needs the `ViewCalendar` permission.
Upload Bluesky picture PUT
Keeps the small copy of a cover that Bluesky is sent as the post's picture. Needs Manage calendar or Manage templates. The body is a JPEG of under 1,000,000 bytes, told apart by its first bytes. Sent again, it replaces the earlier copy. Needs the `ViewCalendar` permission.