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

  • The organization's customer account ID. Must match the signed-in account.

  • Membership ID, as returned in members[].id

Headers

  • Type of content accepted by the API (application/json in most cases)

  • Application key for specific client app

  • Content-Type header

  • Version of the API to be used

  • Authorization header

  • Unique request identifier

Body

required
application/json
  • 1 active, 2 deactivated

Responses

  • application/json
  • Missing or invalid token, or the path account is not the signed-in account.

  • No such membership in this organization.

  • status is missing or is not 1 or 2.

Request Example for put/organizations/{customer_account_id}/members/{organization_member_id}
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"
      }
    }
  }
}