Add event template
/api/calendar/templatesSave a template: a name and the event fields, without dates. A refusal (400) lists everything wrong at once, in problems, and joins it in error. A title, a channel or a world may be left empty; the event made from it is refused for them instead.
Needs the ViewCalendar and ManageTemplates permissions.
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
curl -X POST "https://example.com/api/calendar/templates" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "fields": { "title": "string", "description": null, "lengthMinutes": 0, "repeat": null, "repeatDays": null, "repeatEvery": null, "repeatTimes": null, "worldId": null, "worldListId": null, "accessType": null, "region": null, "imageUrl": null, "vrChatImageId": null, "coverPictureId": null, "category": null, "languages": null, "platforms": null, "tags": null, "visibility": null, "notifyMembers": true, "featured": null, "publishToVRChat": true, "publishToDiscord": true, "publishToGoogle": null, "postToChannel": true, "channelId": null, "mentionRoleId": null, "autoOpen": true, "openMinutesBefore": null, "inviteHostUserId": null, "inviteStaffUserIds": null, "inviteListId": null, "announceFirstJoinInDiscord": true, "announceFirstJoinInVRChat": true, "announceFirstJoinOnBluesky": true, "vrChatTitle": null, "vrChatDescription": null, "discordTitle": null, "discordDescription": null, "googleTitle": null, "googleDescription": null } }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "fields": { "title": "string", "description": null, "lengthMinutes": 0, "repeat": null, "repeatDays": null, "repeatEvery": null, "repeatTimes": null, "worldId": null, "worldListId": null, "accessType": null, "region": null, "imageUrl": null, "vrChatImageId": null, "coverPictureId": null, "category": null, "languages": null, "platforms": null, "tags": null, "visibility": null, "notifyMembers": true, "featured": null, "publishToVRChat": true, "publishToDiscord": true, "publishToGoogle": null, "postToChannel": true, "channelId": null, "mentionRoleId": null, "autoOpen": true, "openMinutesBefore": null, "inviteHostUserId": null, "inviteStaffUserIds": null, "inviteListId": null, "announceFirstJoinInDiscord": true, "announceFirstJoinInVRChat": true, "announceFirstJoinOnBluesky": true, "vrChatTitle": null, "vrChatDescription": null, "discordTitle": null, "discordDescription": null, "googleTitle": null, "googleDescription": null, "categoryIds": null, "publishToBluesky": null, "blueskyPostBeforeMinutes": null, "blueskyTitle": null, "blueskyDescription": null, "postColour": null, "blueskyPictures": null, "blueskyWhoCanReply": null, "blueskyQuotesOff": null, "blueskyLanguages": null, "blueskyVideo": null, "blueskyGif": null, "googleColour": null, "googleShowAs": null }, "createdBy": null, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}List event templates GET
Every template by name, with the event fields it fills in. Needs Manage calendar or Manage templates; canManage says whether the caller may also change them. Needs the `ViewCalendar` permission.
Delete event template DELETE
Delete a template. Events already made from it stay as they are. Needs the `ViewCalendar` and `ManageTemplates` permissions.