Skip to main content
PATCH
/
management
/
keys
/
{id}
Update management API key
const options = {
  method: 'PATCH',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({name: '<string>', status: 'active', soft_blocked: true})
};

fetch('https://api.phaseo.app/v1/management/keys/{id}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "ok": true,
  "message": "Key updated successfully"
}

Authorizations

Authorization
string
header
required

Bearer token authentication

Path Parameters

id
string
required

The management API key ID

Body

application/json
name
string

New name for the key

status
enum<string>

New status for the key

Available options:
active,
disabled,
revoked
soft_blocked
boolean

Whether to temporarily block the key

Response

Key updated successfully

ok
enum<boolean>
required
Available options:
true
message
string
required
Example:

"Key updated successfully"

Last modified on February 11, 2026