Remove role from user

DELETE /api/users/{userId}/roles/{roleId}

Remove an API resource role from the user.

Path parameters

  • userId string Required

    The unique identifier of the user.

  • roleId string Required

    The unique identifier of the role.

Responses

DELETE /api/users/{userId}/roles/{roleId}
curl \
 -X DELETE https://[tenant_id].logto.app/api/users/{userId}/roles/{roleId} \
 -H "Authorization: Bearer $ACCESS_TOKEN"