Update an administrator

PATCH/administrators/{administrator_id}

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.

AuthorizationBearer <token>

Autonomous mode: the API credential secret, sent as a bearer token. Credential secrets are identified by a fixed prefix.

In: header

Path Parameters

administrator_id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/administrators/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "data": {    "created_at": "2019-08-24T14:15:22Z",    "deleted": true,    "email": "[email protected]",    "id": "string",    "last_login_at": "2019-08-24T14:15:22Z",    "name": "string",    "object": "administrator",    "product_ids": [      "string"    ],    "revision": "string",    "role": "root",    "status": "active",    "two_factor_enabled": true,    "updated_at": "2019-08-24T14:15:22Z"  }}