HomeGuidesAPI Reference
API Reference

Update API key entry

Updates an existing API key's configuration. The API key value itself cannot be changed. Either permission or rbacRoles must be provided. Changes are logged in the system audit trail.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
required

The unique name of the API key to update. Must match an existing key exactly.

Body Params

Updated API key configuration. The key value is preserved from the existing entry.

Request body for updating an existing API key. Either permission or rbacRoles must be provided. The key value cannot be changed.

string
required

Unique identifier name for the API key. Should match the name query parameter.

string

Human-readable description of the API key's purpose.

boolean
required

Whether the API key is active. Set to false to disable the key without deleting it.

int64
required

UNIX timestamp (seconds) when the key expires. Set to 0 for no expiration.

string
enum
required

Access level for the API key. Use empty string when rbacRoles is set.

Allowed:
string

Comma-separated RBAC role names. Overrides basic permission when set.

string

Name of an appliance access group to restrict which appliances this key can manage.

ipList
array of strings

IP addresses or CIDR subnets allowed to use this key. Empty array allows all IPs.

ipList
Responses
204

API key updated successfully. No content returned.

401

Unauthorized. Authentication required or invalid credentials.

403

Forbidden. User does not have net_read_write permission required to update API keys.

500

Internal Server Error. Failed to update the API key due to a server-side issue.

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json