Edit users
Requires a user JWT with the admin role.
Authorization
AdminJWT User JWT; backend checks the admin role. Project API keys cannot access admin endpoints.
In: header
Path Parameters
0 <= valueRequest 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
application/json
application/json
curl -X PATCH "https://api.hisend.app/v1/admin/users/0" \ -H "Content-Type: application/json" \ -d '{}'{
"name": "string",
"email": "string",
"role": "string",
"status": "string",
"usage_description": "string",
"usage_review_result": "string",
"created_at": "string",
"updated_at": "string",
"id": 0,
"email_verified": true,
"usage_reviewed_at": "2019-08-24T14:15:22Z"
}{
"error": "string",
"message": "string"
}{
"error": "string",
"message": "string"
}{
"error": "string",
"message": "string"
}{
"error": "string",
"message": "string"
}{
"error": "string",
"message": "string"
}{
"error": "string",
"message": "string"
}{
"error": "string",
"message": "string"
}{
"error": "string",
"message": "string"
}Edit routing PATCH
Requires a user JWT with the admin role. Domain edits register replacement identities and reset verification. Address routes require explicit replacements or explicit preservation of local parts. Endpoint and routing edits submit the complete editable configuration.
Switch domain provider POST
Requires a user JWT with the admin role. Legacy action delegates to the audited provider-backed operation.