Set the email limit
/api/settings/email/limitSet the most emails sent in any 24 hours. At least 20. 20 of the limit are always kept for account email -- reset links, invite links, sign-in and security notices -- and other email may use only the rest. Email over its share is queued and sent when the 24 hours have room again.
Needs the ManageSettings 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
curl -X PUT "https://example.com/api/settings/email/limit" \ -H "Content-Type: application/json" \ -d '{ "limitPer24Hours": 0 }'{ "limitPer24Hours": 0, "minimumLimit": 0, "sentInLast24Hours": 0, "queued": 0, "failed": 0, "nextSendAt": null, "emails": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "to": "string", "kind": "string", "queuedAt": "2019-08-24T14:15:22Z", "state": "string", "attempts": 0, "nextAttemptAt": null, "error": null } ]}Get email settings GET
The daily email limit, how much of it is used, and the email queue. Needs the `ManageSettings` permission.
Get Google Calendar settings GET
The Google Calendar connection: Modbot's Google address, the calendar, what the last Check found, and the calendar's public links when it is public. The key is never returned. Needs the `ManageSettings` permission.