Change the role of a member
A person joins by invitation (POST /v1/invitations); this changes the role of someone who already is a member. Memberships are managed on the live organization and govern its test twin. Only an owner grants or removes the owner role. The answer, like the member.updated event, is the membership without person: who the person is is read with GET /v1/members.
PUT
https://api.invox.page/v1/members/{user_id}Authorization
Path parameters
Header parameters
Request body JSON required
Returns
200
The membership, without person.
400
organization_required: This credential needs to say which organization it acts on · validation_failed: The request is not valid · malformed_request: The request body is not valid JSON · live_organization_required: Members are managed on the live organization
JSON
401
unauthenticated: No credential was sent · invalid_credential: The credential is not valid
JSON
403
missing_scope: The credential lacks the permission this operation requires · organization_mismatch: The X-Organization header names another organization than the key's · organization_archived: The organization is archived · scope_not_grantable: A permission in the request cannot be granted
JSON
404
not_found: The resource does not exist in this organization
JSON
409
last_owner: An organization always keeps at least one active owner
JSON
429
rate_limited: Too many requests
JSON
500
internal_error: The service failed
JSON
503
service_unavailable: The service cannot answer right now
JSON