API reference

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

Path and query parameters
FieldTypeWhat it is
id (path)requiredintegerThe crew's id.

Request body

application/json, required

Request body fields
FieldTypeWhat it is
idrequiredinteger
decisionrequiredstringOne of "approve", "decline".

Example

{
  "id": 0,
  "decision": "approve"
}

Answer 200

Done.

Fields of the 200 answer
FieldTypeWhat it is
okboolean

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.

Antimatter