Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

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

Headers

x-correlation-id
string

Caller-supplied correlation ID; the server generates one when omitted.

Required string length: 8 - 128
Pattern: ^[A-Za-z0-9][A-Za-z0-9._:-]+$
Idempotency-Key
string

Enables exact replay for mutating requests for 24 hours.

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

Path Parameters

workspaceId
string
required
serviceAccountId
string
required

Body

application/json
name
string
required
Required string length: 1 - 120
scopes
string[]
required
organisationId
string<uuid>
required
workspaceIds
string<uuid>[]
required
Minimum array length: 1
environmentIds
string<uuid>[]
expiresInDays
integer
default:30
Required range: 1 <= x <= 90

Response

Successful response.

credential
object
required