HisendHISEND Docs

Edit users

PATCH
/admin/users/{id}

Requires a user JWT with the admin role.

Authorization

AdminJWT
AuthorizationBearer <token>

User JWT; backend checks the admin role. Project API keys cannot access admin endpoints.

In: header

Path Parameters

id*integer
Range0 <= value

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

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"
}