Download OpenAPI specification:
The API uses Bearer token security for its administrative endpoints which
is retrieved from a successful call to /accounts/auth endpoint. This token is a JWT token
and must be passed via the Authorization header.
If a trusted Service account is authenticated successfully, it will also receive the JWT secret in the response
| username required | string |
| password required | string |
{- "username": "string",
- "password": "string"
}{- "token": "string",
- "refresh_token": "string",
- "secret": "string",
- "access_to": {
- "org_id": "string",
- "unit_ids": [
- "string"
], - "brandpath_list": [
- "string"
]
}, - "properties": {
- "property1": "string",
- "property2": "string"
}, - "services": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}{- "id": "string",
- "username": "string",
- "org_id": "string",
- "unit_id": "string",
- "permissions": [
- {
- "system_id": "string",
- "permissions": [
- {
- "resource_id": "string",
- "permission": "Read"
}
]
}
], - "enabled": true,
- "trusted": true,
- "created_on": 0,
- "last_logged_in": 0,
- "pending_password_reset": true,
- "access_to": {
- "org_id": "string",
- "unit_ids": [
- "string"
], - "brandpath_list": [
- "string"
]
}, - "oauth_provider_id": "string"
}| password required | string |
| current required | string |
{- "password": "string",
- "current": "string"
}nullIf the account exists, a one-time-password (OTP) will be generated for the reset password request and an event is sent via pub sub. It is expected that this event will be used by another service to send an email
| username required | string |
{- "username": "string"
}null| username required | string |
| otp required | string |
| password required | string |
{- "username": "string",
- "otp": "string",
- "password": "string"
}null| token required | string |
{- "token": "string"
}{- "token": "string",
- "refresh_token": "string",
- "secret": "string",
- "access_to": {
- "org_id": "string",
- "unit_ids": [
- "string"
], - "brandpath_list": [
- "string"
]
}, - "properties": {
- "property1": "string",
- "property2": "string"
}, - "services": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}| sort_field required | string Field to sort on |
| sort_direction required | integer <int32> Direction to sort in (1 = ASC, -1 = DESC) |
| page required | integer <int32> Page to retrieve |
| limit required | integer <int32> Number of items to retrieve |
| account_type required | string Type of account to filter on ( |
| account_ids required | string Comma separated list of accounts id's to filter for |
| org_id required | string Organisation ID to filter by |
[- {
- "id": "string",
- "account_type": "User",
- "system_id": "string",
- "username": "string",
- "password": "string",
- "org_unit": {
- "org_id": "string",
- "unit_id": "string",
- "org_list": [
- "string"
]
}, - "org_bound": true,
- "permissions": [
- {
- "system_id": "string",
- "permissions": [
- {
- "resource_id": "string",
- "permission": "Read"
}
]
}
], - "enabled": true,
- "trusted": true,
- "created_on": 0,
- "last_logged_in": 0,
- "reset_password_otp": {
- "otp": "string",
- "expires_at": 0
}, - "contacts": {
- "property1": "string",
- "property2": "string"
}, - "oauth_sub": "string",
- "oauth_provider_id": "string"
}
]| account_type required | string (AccountType) Enum: "User" "SuperUser" "System" "Service" "Provider" |
| system_id | string or null |
| username required | string |
| password required | string |
required | object (OrganisationUnit) |
| org_bound | boolean or null |
required | Array of objects (Permission) |
| trusted | boolean or null |
object or null |
{- "account_type": "User",
- "system_id": "string",
- "username": "string",
- "password": "string",
- "org_unit": {
- "org_id": "string",
- "unit_id": "string",
- "org_list": [
- "string"
]
}, - "org_bound": true,
- "permissions": [
- {
- "system_id": "string",
- "permissions": [
- {
- "resource_id": "string",
- "permission": "Read"
}
]
}
], - "trusted": true,
- "contacts": {
- "property1": "string",
- "property2": "string"
}
}{- "id": "string",
- "account_type": "User",
- "system_id": "string",
- "username": "string",
- "password": "string",
- "org_unit": {
- "org_id": "string",
- "unit_id": "string",
- "org_list": [
- "string"
]
}, - "org_bound": true,
- "permissions": [
- {
- "system_id": "string",
- "permissions": [
- {
- "resource_id": "string",
- "permission": "Read"
}
]
}
], - "enabled": true,
- "trusted": true,
- "created_on": 0,
- "last_logged_in": 0,
- "reset_password_otp": {
- "otp": "string",
- "expires_at": 0
}, - "contacts": {
- "property1": "string",
- "property2": "string"
}, - "oauth_sub": "string",
- "oauth_provider_id": "string"
}| id required | string |
| account_type | string or null Enum: "User" "SuperUser" "System" "Service" "Provider" |
| username | string or null |
| password | string or null |
object or null | |
Array of objects or null (Permission) | |
| trusted | boolean or null |
| enabled | boolean or null |
object or null | |
| org_bound | boolean or null |
{- "id": "string",
- "account_type": "User",
- "username": "string",
- "password": "string",
- "org_unit": {
- "org_id": "string",
- "unit_id": "string",
- "org_list": [
- "string"
]
}, - "permissions": [
- {
- "system_id": "string",
- "permissions": [
- {
- "resource_id": "string",
- "permission": "Read"
}
]
}
], - "trusted": true,
- "enabled": true,
- "contacts": {
- "property1": "string",
- "property2": "string"
}, - "org_bound": true
}null| account_id required | string The ID of the account to disable |
{- "id": "string",
- "account_type": "User",
- "system_id": "string",
- "username": "string",
- "password": "string",
- "org_unit": {
- "org_id": "string",
- "unit_id": "string",
- "org_list": [
- "string"
]
}, - "org_bound": true,
- "permissions": [
- {
- "system_id": "string",
- "permissions": [
- {
- "resource_id": "string",
- "permission": "Read"
}
]
}
], - "enabled": true,
- "trusted": true,
- "created_on": 0,
- "last_logged_in": 0,
- "reset_password_otp": {
- "otp": "string",
- "expires_at": 0
}, - "contacts": {
- "property1": "string",
- "property2": "string"
}, - "oauth_sub": "string",
- "oauth_provider_id": "string"
}| account_id required | string The ID of the account to enable |
{- "id": "string",
- "account_type": "User",
- "system_id": "string",
- "username": "string",
- "password": "string",
- "org_unit": {
- "org_id": "string",
- "unit_id": "string",
- "org_list": [
- "string"
]
}, - "org_bound": true,
- "permissions": [
- {
- "system_id": "string",
- "permissions": [
- {
- "resource_id": "string",
- "permission": "Read"
}
]
}
], - "enabled": true,
- "trusted": true,
- "created_on": 0,
- "last_logged_in": 0,
- "reset_password_otp": {
- "otp": "string",
- "expires_at": 0
}, - "contacts": {
- "property1": "string",
- "property2": "string"
}, - "oauth_sub": "string",
- "oauth_provider_id": "string"
}| search | string or null Search by OAuth Provider Id |
[- {
- "id": "string",
- "owner": "string",
- "client_id": "string",
- "client_secret": "string",
- "issuer_url": "string",
- "token_url": "string",
- "jwk_url": "string",
- "redirect_url": "string",
- "frontend_url": "string",
- "created": 0,
- "updated": 0
}
]| id required | string provider id used for FE decoration (eg. google, keycloak) |
| owner required | string org or org:brand owning the config data |
| client_id required | string client id as defined in the provider |
| client_secret required | string client secret as defined in the provider |
| issuer_url required | string oauth issuer url |
| token_url required | string oauth token exchange url |
| jwk_url required | string oauth jwk location for validating the user claims |
| redirect_url required | string oauth redirect url - https://{THRILLOFFICE-HOST}/oauth/callback |
| frontend_url required | string FE url to redirect after successful auth - https://{THRILLOFFICE-HOST}/backoffice/oauth |
{- "id": "string",
- "owner": "string",
- "client_id": "string",
- "client_secret": "string",
- "issuer_url": "string",
- "token_url": "string",
- "jwk_url": "string",
- "redirect_url": "string",
- "frontend_url": "string"
}{- "id": "string",
- "owner": "string",
- "client_id": "string",
- "client_secret": "string",
- "issuer_url": "string",
- "token_url": "string",
- "jwk_url": "string",
- "redirect_url": "string",
- "frontend_url": "string",
- "created": 0,
- "updated": 0
}| provider_id required | string The ID of the OAuth Provider to update |
| id | string or null |
| owner | string or null |
| client_id | string or null |
| client_secret | string or null |
| issuer_url | string or null |
| token_url | string or null |
| jwk_url | string or null |
| redirect_url | string or null |
| frontend_url | string or null |
{- "id": "string",
- "owner": "string",
- "client_id": "string",
- "client_secret": "string",
- "issuer_url": "string",
- "token_url": "string",
- "jwk_url": "string",
- "redirect_url": "string",
- "frontend_url": "string"
}{- "id": "string",
- "owner": "string",
- "client_id": "string",
- "client_secret": "string",
- "issuer_url": "string",
- "token_url": "string",
- "jwk_url": "string",
- "redirect_url": "string",
- "frontend_url": "string",
- "created": 0,
- "updated": 0
}[- {
- "id": "string",
- "name": "string",
- "parent_id": "string",
- "enabled": true,
- "base_currency": "string",
- "children": [
- {
- "child_type": "Organisation",
- "id": "string",
- "currency": "string"
}
], - "created": 0,
- "updated": 0,
- "units": [
- "string"
]
}
]| id required | string The identifier of the organisation. Must be unique |
| units required | Array of strings The organisation's units |
| name | string Organisation descriptive name |
| parent_id | string or null Organisation Parent |
| base_currency | string or null Organisation Base Currency, if |
{- "id": "string",
- "units": [
- "string"
], - "name": "string",
- "parent_id": "string",
- "base_currency": "string"
}{- "id": "string",
- "name": "string",
- "parent_id": "string",
- "enabled": true,
- "base_currency": "string",
- "children": [
- {
- "child_type": "Organisation",
- "id": "string",
- "currency": "string"
}
], - "created": 0,
- "updated": 0,
- "units": [
- "string"
]
}{- "id": "string",
- "name": "string",
- "parent_id": "string",
- "enabled": true,
- "base_currency": "string",
- "children": [
- {
- "child_type": "Organisation",
- "id": "string",
- "currency": "string"
}
], - "created": 0,
- "updated": 0,
- "units": [
- "string"
]
}| org_id required | string ID of the organisation to update |
| units | Array of strings or null The units of the organisation (must be the full list) |
| enabled | boolean or null Flag indicating whether the organisation is enabled or not |
| name | string or null Organisation descriptive name |
| parent_id | string or null Organisation Parent |
| base_currency | string or null Organisation Base Currency, if |
{- "units": [
- "string"
], - "enabled": true,
- "name": "string",
- "parent_id": "string",
- "base_currency": "string"
}{- "id": "string",
- "name": "string",
- "parent_id": "string",
- "enabled": true,
- "base_currency": "string",
- "children": [
- {
- "child_type": "Organisation",
- "id": "string",
- "currency": "string"
}
], - "created": 0,
- "updated": 0,
- "units": [
- "string"
]
}| org_id required | string ID of the organisation to update |
[- "string"
]{- "succeeded": [
- "string"
], - "failed": [
- "string"
]
}| org_id required | string ID of the organisation to update |
[- "string"
]{- "succeeded": [
- "string"
], - "failed": [
- "string"
]
}| id required | string System ID to filter by |
| name required | string System name to filter by |
| sort_field required | string Field to sort on |
| sort_direction required | integer <int32> Direction to sort in (1 = ASC, -1 = DESC) |
| page required | integer <int32> Page to retrieve |
| limit required | integer <int32> Number of items to retrieve |
[- {
- "id": "string",
- "name": "string",
- "service_id": "string",
- "user_types": [
- "string"
], - "resources": [
- "string"
], - "service_config": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}
]