API reference · Account
Turn Web Push or Telegram landing notices on or off
PUT/api/studio/noticesSigned in session
Either or both. The signed in account; same origin for a write.
Request body
application/json, required
| Field | Type | What it is |
|---|---|---|
| push | boolean | |
| telegram | boolean |
Example
{
"push": false,
"telegram": false
}Answer 200
The person's own switches.
| Field | Type | What it is |
|---|---|---|
| pushrequired | object | Web Push to the person's devices: available only while the operator set the VAPID variables; off until they turn it on. |
| push. | boolean | |
| push. | boolean | |
| push. | integer | |
| telegramrequired | object | The person's linked Telegram chat: available only while the bot is configured and a chat is linked; on until they turn it off. |
| telegram. | boolean | |
| telegram. | boolean |
Errors
- 400OpenAI shaped error.
- 401OpenAI shaped error.
- 404OpenAI shaped error.
- 429OpenAI shaped error.
Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.