Remove a label from a member

Take a label off a tenant member.

DELETE /organizations/{org}/tenants/{tenantId}/labels/{labelId}/members/{userId}

Removes the label from the member.

Authorization

Org owner. A member who is not an owner gets 403 forbidden; a non-member gets 404.

Path parameters

NameTypeDescription
orgstringThe organization: its id (org_…) or its slug. It has to be an org your token can manage (see Who can call it)
tenantIdstringThe tenant, tnt_…
labelIdstringThe label, lbl_…
userIdstringThe member, usr_…

Response

204 No Content

Errors

StatuserrorWhen
403forbiddenYou are a member of the org but not an owner
404not_foundNo such label, tenant or org, or the user id is not a usr_ id

Example

curl -X DELETE https://loginwith.loginwith.dev/organizations/acme/tenants/tnt_65f1c2a9e4b0d3f7a1c8e908/labels/lbl_65f1c2a9e4b0d3f7a1c8e90a/members/usr_65f1c2a9e4b0d3f7a1c8e909 \
  -H "Authorization: Bearer $TOKEN"