Organisations
Approve or decline a request for access
Approving a member request gives them the role chosen on the board (view unless said); for a person outside the organisation the portal sends the invitation.
POST
/orgs/{org}/board-requests/{id}TL;DR
| Question | Answer |
|---|---|
| What does it do? | Approve or decline a request for access. |
| What does it take? | A JSON body of type DecideBoardAccessRequestBody. |
| What does it return? | Status 204 with no body. |
| What can go wrong? | 400 the body is not valid; 401 not signed in; 403 boards are not turned on for this organisation (boards.not_enabled), the caller may look but not change it (boards.forbidden), or the request came from an origin that may not make changes; 404 no such organisation, board or tab, or the board is not open to the caller: the cases look alike; 429 too many requests; 503 organisations or boards are not set up on this server. Every failure uses the one error envelope. |
What it does
Approving a member request gives them the role chosen on the board (view unless said); for a person outside the organisation the portal sends the invitation. Declining records it. Audited as orgs.board.access_request.
Path parameters
| Field | Type | Required | Description |
|---|---|---|---|
org | string | yes | The organisation's id or its slug. |
id | string | yes |
Request body
The body has the type DecideBoardAccessRequestBody.
| Field | Type | Required | Description |
|---|---|---|---|
decision | "approve" | "decline" | yes | |
role | "view" | "edit" | no |
Responses
| Status | Meaning | Body |
|---|---|---|
| 204 | Answered. | none |
| 400 | The body is not valid. | ErrorResponse |
| 401 | Not signed in. | ErrorResponse |
| 403 | Boards are not turned on for this organisation (boards.not_enabled), the caller may look but not change it (boards.forbidden), or the request came from an origin that may not make changes. | ErrorResponse |
| 404 | No such organisation, board or tab, or the board is not open to the caller: the cases look alike. | ErrorResponse |
| 429 | Too many requests. | ErrorResponse |
| 503 | Organisations or boards 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 |