Delete an administrator
/administrators/{administrator_id}Moves the administrator to the trash. A trashed administrator can be restored with the update operation by setting deleted to false.
The last root administrator in the account cannot be deleted, and administrators cannot delete themselves. Administrators with the root or master_admin role cannot be deleted through the API; attempts return delegation_limit_exceeded.
API credentials created by the deleted administrator are not revoked.
Autonomous mode: the API credential secret, sent as a bearer token. Credential secrets are identified by a fixed prefix.
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/administrators/string"Update an administrator PATCH
Updates an administrator's name or email address, or restores an administrator from the trash. To restore a trashed administrator, set `deleted` to `false`. Restoring requires the `administrators.delete` permission and is rejected with `validation_failed` if another active administrator already uses the same email address. The `status` field is accepted but has no effect. Roles and permissions can only be changed through the update administrator permissions operation. Fields such as `role` and `password` are rejected with `unknown_field`. Send the `ETag` returned by the retrieve operation in the `If-Match` header to avoid overwriting a newer version.
Resend the access email POST
Resends the access email to the administrator. This operation replaces the administrator's password with a new one, which is sent by email and never included in the response. The email is sent asynchronously. An access email can be sent to the same administrator at most once every 10 minutes. Earlier attempts return `email_recently_sent`.