Add API Key
POST/workspaces/:workspaceId/service-accounts/:subjectId/api-keys
Add API Key
Request
Path Parameters
workspaceId uuidrequired
subjectId uuidrequired
- application/json
- text/json
- application/*+json
Body
displayName string
expiresAt date-timenullable
Body
displayName string
expiresAt date-timenullable
Body
displayName string
expiresAt date-timenullable
Responses
- 201
- 400
- 404
- 423
API key added.
- application/json
- Schema
- Example (from schema)
Schema
apiKeyId uuid
displayName string
expiresAt date-timenullable
creatorSubjectId uuidnullable
publicPrefix string
createdAt date-time
{
"apiKeyId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"displayName": "string",
"expiresAt": "2024-11-22T11:58:28.957Z",
"creatorSubjectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"publicPrefix": "string",
"createdAt": "2024-11-22T11:58:28.957Z"
}
Invalid request.
- application/problem+json
- Schema
- Example (from schema)
Schema
type stringnullable
title stringnullable
status int32nullable
detail stringnullable
instance stringnullable
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
Workspace or service account not found.
- application/problem+json
- Schema
- Example (from schema)
Schema
type stringnullable
title stringnullable
status int32nullable
detail stringnullable
instance stringnullable
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
Workspace is disabled.
- application/problem+json
- Schema
- Example (from schema)
Schema
type stringnullable
title stringnullable
status int32nullable
detail stringnullable
instance stringnullable
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
Loading...