Upload post picture to VRChat
/api/posts/vrchat-pictureUploads 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.
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/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/posts/vrchat-picture" \ -H "Content-Type: application/json" \ -d '{ "pictureId": null }'{ "imageId": "string", "pictureId": "7d230a48-4a94-485b-82e1-57a6bf2e0a16"}Upload post picture POST
Keeps 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.
Get post picture GET
A picture kept for a post. Needs the `ViewPosts` permission.