API reference · Organizations
Approve or decline a request to join
POST/api/orgs/{id}/join-requestsSigned in session
members.manage. Approval joins the person as a member.
Parameters
| Field | Type | What it is |
|---|---|---|
| id (path)required | integer | The crew's id. |
Request body
application/json, required
| Field | Type | What it is |
|---|---|---|
| idrequired | integer | |
| decisionrequired | string | One of "approve", "decline". |
Example
{
"id": 0,
"decision": "approve"
}Answer 200
Done.
| Field | Type | What it is |
|---|---|---|
| ok | boolean |
Errors
- 400OpenAI shaped error.
- 401OpenAI shaped error.
- 403OpenAI shaped error.
- 404OpenAI shaped error.
- 409OpenAI 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.