HisendHISEND Docs

Edit api-keys

PATCH
/admin/projects/{project_id}/api-keys/{id}

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.

Authorization

AdminJWT
AuthorizationBearer <token>

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

In: header

Path Parameters

project_id*integer
Range0 <= value
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/projects/0/api-keys/0" \  -H "Content-Type: application/json" \  -d '{}'
{}
{
  "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"
}