Download OpenAPI specification:
API for Amusement Connect User Services
Retrieve all roles in the system, including their associated permission IDs.
| apiVersion | string Value: "1.0" The version of the API to use. |
{- "roles": [
- {
- "name": "Manager",
- "permissionIds": [
- 1,
- 2,
- 3,
- 4,
- 5
]
}
]
}Retrieve all app permissions.
| apiVersion | string Value: "1.0" The version of the API to use. |
{- "permissionGroups": [
- {
- "id": 0,
- "name": "string",
- "menuOrder": 0,
- "permissionSets": [
- {
- "primary": {
- "id": 0,
- "name": "string",
- "description": "string",
- "area": "string",
- "route": "string",
- "action": "string",
- "isMenu": true,
- "showPermission": true,
- "menuOrder": 0,
- "subMenuId": 0,
- "subMenuName": "string",
- "sortOrder": 0,
- "isAdmin": true
}, - "Glued": [
- {
- "id": 0,
- "name": "string",
- "description": "string",
- "area": "string",
- "route": "string",
- "action": "string",
- "isMenu": true,
- "showPermission": true,
- "menuOrder": 0,
- "subMenuId": 0,
- "subMenuName": "string",
- "sortOrder": 0,
- "isAdmin": true
}
]
}
]
}
]
}Retrieve users that have access to a specific location, with optional filtering by role and permissions.
required | integer or string The unique identifier of the location. |
| apiVersion | string Value: "1.0" The version of the API to use. |
| take | integer Example: take=10 The maximum number of records to return in the response. If not specified, all records are returned. |
| skip | integer Example: skip=10 The number of records to skip in the response. If not specified, no records are skipped. |
| isInRole | Array of strings Filter users by role. |
| search | string Text based search to filter the collection by |
| includeAdmins | boolean Whether to include admin users in the results. |
| hasAllPermissionIds | Array of integers Filter by users that have all of the specified permission IDs. |
| hasAnyPermissionIds | Array of integers Filter by users that have any of the specified permission IDs. |
{- "totalCount": 0,
- "data": [
- {
- "user": {
- "id": "string",
- "name": "string",
- "userName": "string",
- "email": "user@example.com",
- "phoneNumber": "string",
- "emailConfirmed": true,
- "phoneNumberConfirmed": true,
- "isDisabled": true,
- "registrationDateUtc": "2019-08-24T14:15:22Z",
- "birthday": "2019-08-24",
- "playerTag": "string"
}, - "role": "Manager"
}
]
}Query the locations a user has access to, with optional filtering by location ID, role, and permissions.
| userId required | string The unique identifier of the user. |
| apiVersion | string Value: "1.0" The version of the API to use. |
integer or string The unique identifier of the location. | |
| hasAllPermissionIds | Array of integers Filter by users that have all of the specified permission IDs. |
| hasAnyPermissionIds | Array of integers Filter by users that have any of the specified permission IDs. |
| isInRole | Array of strings Filter users by role. |
| take | integer Example: take=10 The maximum number of records to return in the response. If not specified, all records are returned. |
| skip | integer Example: skip=10 The number of records to skip in the response. If not specified, no records are skipped. |
| select | Array of any Items Enum: "role" "permissions" Specify additional fields to be included in the response. |
{- "totalCount": 0,
- "data": [
- {
- "locationId": 0,
- "role": "Manager",
- "permissions": [
- 1,
- 2,
- 3,
- 4,
- 5
]
}
]
}Retrieve the role and permissions a user has for a specific location.
| userId required | string The unique identifier of the user. |
required | integer or string The unique identifier of the location. |
| apiVersion | string Value: "1.0" The version of the API to use. |
{- "locationId": 0,
- "role": "Manager",
- "permissions": [
- 1,
- 2,
- 3,
- 4,
- 5
]
}Update the role and/or permissions a user has for a specific location.
| userId required | string The unique identifier of the user. |
required | integer or string The unique identifier of the location. |
| apiVersion | string Value: "1.0" The version of the API to use. |
| role | any (roleName) Enum: "Admin" "AdminManager" "AdminEmployee" "Operator" "Co-Operator" "LocationManager" "CollectionManager" "Manager" "Employee" "Technician" "RedemptionUser" "BMI" "RedemptionLight" "Player" "Sales Group" |
| permissionIds required | Array of integers (permissionIds) |
{- "role": "Manager",
- "addPermissionIds": [
- 1,
- 2,
- 3,
- 4,
- 5
], - "removePermissionIds": [
- 1,
- 2,
- 3,
- 4,
- 5
]
}{- "type": "string",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "errors": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}
}Remove all access a user has to a specific location.
| userId required | string The unique identifier of the user. |
required | integer or string The unique identifier of the location. |
| apiVersion | string Value: "1.0" The version of the API to use. |
{- "type": "string",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "errors": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}
}Perform an authorization check to see if a user meets the requirements at a specific location.
| userId required | string The unique identifier of the user. |
required | integer or string The unique identifier of the location. |
| apiVersion | string Value: "1.0" The version of the API to use. |
{- "isAuthorized": true
}Retrieve all applications in the system.
| apiVersion | string Value: "1.0" The version of the API to use. |
{- "applications": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "scopes": [
- "string"
], - "claims": [
- {
- "type": "string",
- "value": "string"
}
], - "createdAtUtc": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "updatedAtUtc": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "isDisabled": true,
- "disabledAtUtc": "2019-08-24T14:15:22Z",
- "disabledBy": "string",
- "isArchived": true,
- "archivedAtUtc": "2019-08-24T14:15:22Z",
- "archivedBy": "string"
}
]
}Create a new application in the system.
| apiVersion | string Value: "1.0" The version of the API to use. |
| name | string <= 128 characters |
| description | string or null <= 1024 characters |
| scopes | Array of strings[ items <= 64 characters ] |
Array of objects (claim) | |
| createdByUserId | string or null |
{- "name": "string",
- "description": "string",
- "scopes": [
- "string"
], - "claims": [
- {
- "type": "string",
- "value": "string"
}
], - "createdByUserId": "string"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "scopes": [
- "string"
], - "claims": [
- {
- "type": "string",
- "value": "string"
}
], - "createdAtUtc": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "updatedAtUtc": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "isDisabled": true,
- "disabledAtUtc": "2019-08-24T14:15:22Z",
- "disabledBy": "string",
- "isArchived": true,
- "archivedAtUtc": "2019-08-24T14:15:22Z",
- "archivedBy": "string"
}Get an application by it's api key. Intended for internal use by other api services to validate keys.
| apiVersion | string Value: "1.0" The version of the API to use. |
| apiKey | string |
{- "apiKey": "string"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "scopes": [
- "string"
], - "claims": [
- {
- "type": "string",
- "value": "string"
}
], - "createdAtUtc": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "updatedAtUtc": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "isDisabled": true,
- "disabledAtUtc": "2019-08-24T14:15:22Z",
- "disabledBy": "string",
- "isArchived": true,
- "archivedAtUtc": "2019-08-24T14:15:22Z",
- "archivedBy": "string"
}Get an application by its unique identifier.
| applicationId required | string <uuid> The unique identifier of the application. |
| apiVersion | string Value: "1.0" The version of the API to use. |
{- "application": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "scopes": [
- "string"
], - "claims": [
- {
- "type": "string",
- "value": "string"
}
], - "createdAtUtc": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "updatedAtUtc": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "isDisabled": true,
- "disabledAtUtc": "2019-08-24T14:15:22Z",
- "disabledBy": "string",
- "isArchived": true,
- "archivedAtUtc": "2019-08-24T14:15:22Z",
- "archivedBy": "string"
}, - "apiKeys": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "keyPrefix": "string",
- "key": "string",
- "isDisabled": true,
- "disabledAtUtc": "2019-08-24T14:15:22Z",
- "disabledBy": "string",
- "createdAtUtc": "2019-08-24T14:15:22Z",
- "createdBy": "string"
}
]
}Update an application
| applicationId required | string <uuid> The unique identifier of the application. |
| apiVersion | string Value: "1.0" The version of the API to use. |
| name | string |
| description | string or null |
| scopes | Array of strings |
Array of objects (claim) | |
| isDisabled | boolean |
| isArchived | boolean |
| updatedByUserId | string or null |
{- "name": "string",
- "description": "string",
- "scopes": [
- "string"
], - "claims": [
- {
- "type": "string",
- "value": "string"
}
], - "isDisabled": true,
- "isArchived": true,
- "updatedByUserId": "string"
}{- "type": "string",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "errors": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}
}Generate a new API key for the application, or import a predefined key.
| applicationId required | string <uuid> The unique identifier of the application. |
| apiVersion | string Value: "1.0" The version of the API to use. |
| apiKey | string or null |
| createdByUserId | string or null |
{- "apiKey": "string",
- "createdByUserId": "string"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "keyPrefix": "string",
- "key": "string",
- "isDisabled": true,
- "disabledAtUtc": "2019-08-24T14:15:22Z",
- "disabledBy": "string",
- "createdAtUtc": "2019-08-24T14:15:22Z",
- "createdBy": "string"
}Update the state of an existing API key.
| applicationId required | string <uuid> The unique identifier of the application. |
| apiKeyId required | string <uuid> The unique identifier of the API key. |
| apiVersion | string Value: "1.0" The version of the API to use. |
| isDisabled | boolean |
| updatedByUserId | string or null |
{- "isDisabled": true,
- "updatedByUserId": "string"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "keyPrefix": "string",
- "key": "string",
- "isDisabled": true,
- "disabledAtUtc": "2019-08-24T14:15:22Z",
- "disabledBy": "string",
- "createdAtUtc": "2019-08-24T14:15:22Z",
- "createdBy": "string"
}| apiVersion | string Value: "1.0" The version of the API to use. |
| scope | string <= 128 characters |
{- "scope": "string"
}{- "type": "string",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "errors": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}
}| apiVersion | string Value: "1.0" The version of the API to use. |
{- "id": "string",
- "name": "string",
- "userName": "string",
- "email": "user@example.com",
- "phoneNumber": "string",
- "emailConfirmed": true,
- "phoneNumberConfirmed": true,
- "isDisabled": true,
- "registrationDateUtc": "2019-08-24T14:15:22Z",
- "birthday": "2019-08-24",
- "playerTag": "string"
}| userId required | string The unique identifier of the user. |
| apiVersion | string Value: "1.0" The version of the API to use. |
{- "id": "string",
- "name": "string",
- "userName": "string",
- "email": "user@example.com",
- "phoneNumber": "string",
- "emailConfirmed": true,
- "phoneNumberConfirmed": true,
- "isDisabled": true,
- "registrationDateUtc": "2019-08-24T14:15:22Z",
- "birthday": "2019-08-24",
- "playerTag": "string"
}