Organisations
Choose the brand of your own calls
Chooses the organisation whose brand the account's own calls use, or none with null.
PUT
/user/brandTL;DR
| Question | Answer |
|---|---|
| What does it do? | Choose the brand of your own calls. |
| What does it take? | A JSON body of type ChooseBrandBody. |
| What does it return? | Status 204 with no body. |
| What can go wrong? | 400 the body is not valid; 401 not signed in; 403 the request came from an origin that may not make changes; 404 no such organisation, the account is not a member of it, or it has no saved brand; 429 too many requests. Every failure uses the one error envelope. |
What it does
Chooses the organisation whose brand the account's own calls use, or none with null. The account must be a member and the organisation must have a saved brand.
Request body
The body has the type ChooseBrandBody.
| Field | Type | Required | Description |
|---|---|---|---|
organization | string | null | yes | An organisation's id or slug, or null for no brand. The account must be a member and the organisation must have a saved brand. at least 1 character; at most 64 characters. |
Responses
| Status | Meaning | Body |
|---|---|---|
| 204 | Chosen. | none |
| 400 | The body is not valid. | ErrorResponse |
| 401 | Not signed in. | ErrorResponse |
| 403 | The request came from an origin that may not make changes. | ErrorResponse |
| 404 | No such organisation, the account is not a member of it, or it has no saved brand. | ErrorResponse |
| 429 | Too many requests. | ErrorResponse |
See also
| Doc | Why |
|---|---|
| API reference | Every endpoint, and the error envelope |
| Schemas | Every request and response type |
| Tool reference | The operations as callable tools |