PUT Update Organization Member
Activates or deactivates a member. status is the only thing about a membership that can be changed — 1 active, 2 deactivated. Deactivating stops the person ordering under the organization while keeping them on the list.
Note that the response does not echo status back, so re-read GET /organizations/{customer_account_id}/members if you need to confirm the new state.
Path Parameters
- Type: integercustomer
_account _id requiredThe organization's customer account ID. Must match the signed-in account.
- Type: integerorganization
_member _id requiredMembership ID, as returned in
members[].id
Headers
- Type: stringAcceptrequired
Type of content accepted by the API (application/json in most cases)
- Type: stringApplicationrequired
Application key for specific client app
- Type: stringContent
- Type requiredContent-Type header
- Type: stringA
P I - V E R S I O N requiredVersion of the API to be used
- Type: stringAuthorization
Authorization header
- Type: stringX
- Request - I D requiredUnique request identifier
Body
- Type: 1 or 2enumstatusrequired
1active,2deactivated
Responses
- application/json
- 401
Missing or invalid token, or the path account is not the signed-in account.
- 404
No such membership in this organization.
- 422
statusis missing or is not1or2.
curl https://api-public-demo.menu.app/api/organizations/9031/members/51 \
--request PUT \
--header 'Accept: application/json' \
--header 'Application: application-key' \
--header 'Content-Type: application/json' \
--header 'API-VERSION: ' \
--header 'X-Request-ID: c10b4a70-6274-490d-80a0-03e7bb826937' \
--data '{
"status": 2
}'
{
"status": "OK",
"code": 200,
"data": {
"organization_member": {
"id": 51,
"organization_account_id": 9031,
"member_account_id": 9044,
"customer_account": {
"id": 9044,
"first_name": "Jane",
"last_name": "Doe",
"email": "jane@example.com"
}
}
}
}