curl --request POST \
--url https://platform.versori.com/api/organisations/v1/organisations/{organisation_id}/service-accounts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"roles": [
"<string>"
],
"groupIDs": [
"<string>"
]
}
'{
"id": "<string>",
"name": "<string>",
"email": "<unknown>",
"clientId": "<string>",
"clientSecret": "<string>",
"roleBindings": [
{
"role": {
"id": "<string>",
"name": "<string>",
"permissions": [
{
"id": "organisation.read",
"description": "<string>"
}
],
"scopes": [
"organisation"
]
},
"resource": {
"resourceType": "organisation",
"resourceId": "<string>",
"name": "<string>"
}
}
]
}CreateServiceAccount creates a new ServiceAccount for the given Organisation. The ServiceAccount will be created with a random client ID and secret, which will be returned in the response.
curl --request POST \
--url https://platform.versori.com/api/organisations/v1/organisations/{organisation_id}/service-accounts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"roles": [
"<string>"
],
"groupIDs": [
"<string>"
]
}
'{
"id": "<string>",
"name": "<string>",
"email": "<unknown>",
"clientId": "<string>",
"clientSecret": "<string>",
"roleBindings": [
{
"role": {
"id": "<string>",
"name": "<string>",
"permissions": [
{
"id": "organisation.read",
"description": "<string>"
}
],
"scopes": [
"organisation"
]
},
"resource": {
"resourceType": "organisation",
"resourceId": "<string>",
"name": "<string>"
}
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Name is an immutable, lower-cased, human-readable identifier for this service account. It may only contain alphanumeric characters and hyphens, and must start with a letter. It must be unique within the scope of an Organisation.
Roles are the list of role names to be granted to this ServiceAccount at the organisation scope.
GroupIDs are the list of group IDs to be added to this ServiceAccount.
Created
ServiceAccount is a non-user account which can be used to issue access tokens to use against Versori APIs.
Name is an immutable, lower-cased, human-readable identifier for this service account. It may only contain alphanumeric characters and hyphens, and must start with a letter. It must be unique within the scope of an Organisation.
Email is the email address of the ServiceAccount. This is used to easily identify the ServiceAccount when viewing in the UI or observing logs. The email address is generated from the name, suffixed with @sa.ORG_SLUG.versori.com.
RoleBindings are the list of roles bindings granted to this ServiceAccount.
Show child attributes