Upload VRChat calendar picture
/api/calendar/vrchat-pictureUploads 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.
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Query Parameters
uuidResponse Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/api/calendar/vrchat-picture"{ "fileId": "string"}Preview calendar event POST
The event as it is filled in, drawn the way each place would show it: the Discord event and the channel post as Discord is sent them, what VRChat's calendar is sent, and what a calendar program reads from the calendar feed. Drawn by the code that sends each one. Saves nothing and asks VRChat and Discord nothing. A title, description, channel or world not filled in yet is let through; anything a save would refuse for its shape or length is refused. Needs the `ManageCalendar` permission.
Upload Discord picture POST
Keeps 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.