Skip to main content
DELETE
/
organizations
/
{orgId}
/
members
/
{memberId}
Revoke a member's organization access
curl --request DELETE \
  --url http://localhost:3000/organizations/{orgId}/members/{memberId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "reason": "<string>"
}
'
{
  "statusCode": 123,
  "message": "OK",
  "data": {
    "message": "<string>",
    "membership": {}
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

orgId
string<uuid>
required
memberId
string<uuid>
required

Body

application/json
reason
string
required

Reason for revoking membership

Required string length: 1 - 500

Response

Default Response

statusCode
number
message
string
default:OK
data
object