Skip to main content
POST
Set a service-account API key's status.

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

The status to set on the key.

status
enum<string>
required

The key's own lifecycle status, independent of its account. A key authenticates only while both it and its account are active.

Available options:
active,
disabled

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.