Delete a role assignment

DELETE/v1/directory/assignments/{assignment_id}

Takes a role back from a person or a group on an account.

Permission: identity:DeleteAccountAssignment. Changes need a sign-in that used a second factor.

Path parameters

Parameter Type Description
assignment_id string The assignment's ID.

Returns

204 No Content, with no body.

Errors

Besides the errors every call can return:

Status When
404 No such resource in your organization.
409 It would leave your organization with no administrator.

Example

curl -X DELETE https://<company>.yotta.bot/v1/directory/assignments/c2d3e4f5-a6b7-4c8d-9e0f-1a2b3c4d5e6f \
  -H "Authorization: Bearer $YOTTABOT_TOKEN"

With yottactl

yottactl org assignments delete c2d3e4f5-a6b7-4c8d-9e0f-1a2b3c4d5e6f