Organisations
Read an organisation's avatar
The uploaded avatar as the check stored it, with nosniff, a policy that lets it draw and nothing else, and a private cache keyed by the version in the address.
GET
/orgs/{org}/avatarTL;DR
| Question | Answer |
|---|---|
| What does it do? | Read an organisation's avatar. |
| What does it take? | org in the path, and v in the query string. |
| What does it return? | Status 200 with no body. |
| What can go wrong? | 401 not signed in, or the key is not valid; 404 no such organisation, the caller is not a member of it, or it has no avatar; 429 too many requests; 503 organisations are not set up on this server. Every failure uses the one error envelope. |
What it does
The uploaded avatar as the check stored it, with nosniff, a policy that lets it draw and nothing else, and a private cache keyed by the version in the address. A 404 when there is none. Every member may read it, and so may a key of the organisation.
Path parameters
| Field | Type | Required | Description |
|---|---|---|---|
org | string | yes | The organisation's id or its slug. |
Query parameters
| Field | Type | Required | Description |
|---|---|---|---|
v | string | no | The version from the organisation JSON, so a new picture is a new address. |
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | The avatar file. | none |
| 401 | Not signed in, or the key is not valid. | ErrorResponse |
| 404 | No such organisation, the caller is not a member of it, or it has no avatar. | ErrorResponse |
| 429 | Too many requests. | ErrorResponse |
| 503 | Organisations are not set up on this server. | 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 |