Create Service Account
POSThttps://api.eu1.spotflow.io/workspaces/:workspaceId/service-accounts
Create Service Account
Request
Path Parameters
workspaceId uuidrequired
- application/json
- text/json
- application/*+json
Body
displayNamestring
Body
displayNamestring
Body
displayNamestring
Responses
- 201
- 400
- 404
- 423
Service account created.
- application/json
- Schema
- Example (auto)
Schema
subjectIduuid
displayNamestring
workspaceIduuidnullable
creatorSubjectIduuidnullable
{
"subjectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"displayName": "string",
"workspaceId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"creatorSubjectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
Invalid request.
- application/problem+json
- Schema
- Example (auto)
Schema
typestringnullable
titlestringnullable
statusint32nullable
detailstringnullable
instancestringnullable
property name*any
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
Workspace not found.
- application/problem+json
- Schema
- Example (auto)
Schema
typestringnullable
titlestringnullable
statusint32nullable
detailstringnullable
instancestringnullable
property name*any
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
Workspace is disabled.
- application/problem+json
- Schema
- Example (auto)
Schema
typestringnullable
titlestringnullable
statusint32nullable
detailstringnullable
instancestringnullable
property name*any
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
- curl
- python
- nodejs
- csharp
- powershell
- CURL
curl -L 'https://api.eu1.spotflow.io/workspaces/:workspaceId/service-accounts' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"displayName": "string"
}'