Organisations
Read who may read the audit log and the call history
The roles and people the owner let read the audit log and the call history, besides the owner and admins.
GET
/orgs/{org}/log-accessTL;DR
| Question | Answer |
|---|---|
| What does it do? | Read who may read the audit log and the call history. |
| What does it take? | org in the path. |
| What does it return? | Status 200 with a body of type LogAccess. |
| What can go wrong? | 401 not signed in; 403 not the owner or an admin (orgs.forbidden); 404 no such organisation, or the caller is not a member of it; 429 too many requests; 503 organisations are not set up on this server. Every failure uses the one error envelope. |
What it does
The roles and people the owner let read the audit log and the call history, besides the owner and admins. The owner and admins.
Path parameters
| Field | Type | Required | Description |
|---|---|---|---|
org | string | yes | The organisation's id or its slug. |
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | The setting. | LogAccess |
| 401 | Not signed in. | ErrorResponse |
| 403 | Not the owner or an admin (orgs.forbidden). | ErrorResponse |
| 404 | No such organisation, or the caller is not a member of it. | ErrorResponse |
| 429 | Too many requests. | ErrorResponse |
| 503 | Organisations are not set up on this server. | ErrorResponse |
Response body
A 200 answer has the type LogAccess.
| Field | Type | Required | Description |
|---|---|---|---|
roles | ("member" | "reader")[] | yes | |
members | object[] | yes | |
members[].userId | string | yes | |
members[].email | string | yes | |
members[].role | "owner" | "admin" | "member" | "reader" | yes |
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 |