Create Service Account
Creates a service account
Request
URI
POST
https://{api_host}/api/v2/account/serviceaccount
COPY
Request Body
ServiceAccountWrite of type(s) application/json
Optional
{
"identifier": "string",
"active": false,
"description": "string",
"tokens": [
"string"
],
"userGroups": [
"string"
],
"groups": [
"string"
],
"roles": [
"string"
]
}
string
identifier
Required
The unique identifier for a service account.
boolean
active
Optional
The current state of the service account.
string
description
Optional
The description of the service account to be created.
array of string
tokens
Optional
The service account's API tokens.
array of string
userGroups
Optional
The list of user group ids, the service account will be added to.
array of string
groups
Optional
The list of permissions, the service account will be granted.
array of string
roles
Optional
The list of role ids, the service account will be added to."
Responses
200
successful operation
Returns ResponseContainerServiceAccount of type(s) application/json
{
"status": {
"result": "string",
"message": "string",
"code": 0
},
"response": {
"unitedRoles": [
"string"
],
"unitedPermissions": [
"string"
],
"tokens": [
{
"tokenID": "string",
"tokenName": "string",
"account": "string",
"accountType": "string",
"lastUsed": 0,
"dateGenerated": 0
}
],
"userGroups": [
{
"id": "04e5fd3a-c916-45aa-923c-2fa02e9eddac",
"name": "string",
"customer": "string",
"users": [
"string"
],
"userCount": 0,
"properties": {
"nameEditable": false,
"usersEditable": false,
"rolesEditable": false
},
"description": "string",
"roles": [
"RoleDTO Object"
]
}
],
"roles": [
{
"sampleLinkedGroups": [
"UserGroup Object"
],
"linkedGroupsCount": 0,
"sampleLinkedAccounts": [
"string"
],
"linkedAccountsCount": 0,
"restrictedPermissions": [
"string"
],
"properties": {
"nameEditable": false,
"usersRemovable": false,
"usersAddable": false,
"permsEditable": false,
"deletable": false
},
"permissions": [
"string"
],
"name": "string",
"id": "string",
"description": "string",
"createdEpochMillis": 0,
"lastUpdatedMs": 0,
"lastUpdatedAccountId": "string",
"customer": "string"
}
],
"active": false,
"description": "string",
"identifier": "string",
"groups": [
"string"
],
"lastUsed": 0
}
}
Account (User and Service Account) Operations
POST
Activate Account
POST
Add Account To Roles
POST
Add Account To User Groups
POST
Create Or Update User Account
POST
Create Service Account
POST
Deactivate Account
DELETE
Delete Account
POST
Delete Multiple Accounts
GET
Get Account
GET
Get Account Business Functions
GET
Get All Accounts
GET
Get All Service Accounts
GET
Get All User Accounts
GET
Get Service Account
GET
Get User Account
GET
Get Users With Accounts Permission
POST
Grant Account Permission
POST
Grant Permission To Accounts
POST
Invite User Accounts
POST
Remove Account From Roles
POST
Remove Account From User Groups
POST
Revoke Account Permission
POST
Revoke Permission From Accounts
PUT
Update Service Account
PUT
Update User Account
POST
Validate Accounts