Authorizations
An access token must be provided in the Authorization
header using the Bearer
scheme.
Path Parameters
API key ID
Body
Updated name and roles for the API key.
A new name for the API key. The name must be 1-80 characters long. If omitted, the name will not be updated.
1 - 80
"devkey"
A new set of roles for the API key. Existing roles will be removed if not included. If this field is omitted, the roles will not be updated.
A role that can be assigned to an API key.
Possible values: ProjectEditor
, ProjectViewer
, ControlPlaneEditor
, ControlPlaneViewer
, DataPlaneEditor
, or DataPlaneViewer
.
Response
API key created successfully.
The details of an API key, including the secret. Only returned on API key creation.
The details of an API key, without the secret.
The value to use as an API key. New keys will have the format "pckey_<public-label>_<unique-key>"
. The entire string should be used when authenticating.