Skip to main content
PATCH
Rename a service-account API key.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

service_account_id
string<uuid>
required

The service account's uuid.

service_account_api_key_id
string
required

The public identifier of a service-account API key (e.g. fks_a1b2c3d4).

Public identifier of a service-account API key. Always starts with the fks_ prefix (human keys use fkh_).

Required string length: 12 - 16
Pattern: ^fks_[A-Za-z0-9_-]+$

Body

application/json

Body to rename a service-account API key. Only name can be changed and it is required. A key's expiry is fixed at creation and changed only by rotation, so expires_at is not accepted; any unknown field (including expires_at) returns a 400.

name
string
required

Key name, unique among the service account's keys. Must start with a letter, then letters, digits, spaces, hyphens, or underscores. Leading and trailing whitespace is stripped.

Required string length: 1 - 128
Pattern: ^[A-Za-z][A-Za-z0-9_ -]*$

Response

The updated API key.

Response object for standard API responses.

api_version
enum<string>
default:3.0

API version.

Available options:
2.0,
3.0
kind
enum<string>
default:NORMAL

Type of response, indicating a normal response.

Available options:
NORMAL
data
object

A service-account API key. Never includes secrets or hashes.