User accounts allow login and interaction with VOCUS apps.
The data model for synchronizing an account.
Field | Type | Constraints | Notes | ||||||||||||
accountId | string 50 | Required | This is a Mapped ID. | ||||||||||||
firstName | string 50 | Required | |||||||||||||
middleName | string 50 | ||||||||||||||
lastName | string 50 | ||||||||||||||
string 100 | Required | VOCUS requires every user to have an email address. This value will also be used as the account's login user name. | |||||||||||||
dateOfBirth | date | Date of Birth can make certification/currency calculations in FlightRisk more accurate. | |||||||||||||
designations | array |
An array of designation objects that contain a designation string and a boolean active value.
|
HTTP PUT Service Accounts
Creates a user account if it doesn't exist. If the account already exists, it will not be modified, but a mapping for accountId
will be added.
See Account Properties.
{ "accountId": "callers_ID_12345", "firstName": "Jane", "middleName": "B", "lastName": "Tester", "email": "jane@example.org", "dateOfBirth": "1980-08-01T00:00Z", "designations": [ { "isActive": "true", "designation": "pilot" }, { "isActive": "true", "designation": "flightEngineer" } ] }
HTTP Status | Data | |||||||||
201 |
|
|||||||||
200 |
|
HTTP POST Service Accounts
Deactivates an account.
HTTP POST Service Accounts
Reactivates an account.
HTTP PUT Service Accounts
Creates or maps multiple accounts.
Field | Type | Constraints | Detail |
accounts | Array | Required |
An array of accounts. See Account Properties. |
{ "accounts": [ { "accountId": "callers_ID_12345", "firstName": "Jane", "middleName": "B", "lastName": "Tester", "email": "jane@example.org", "dateOfBirth": "1980-08-01T00:00Z", "designations": [ { "isActive": "true", "designation": "pilot" } ] }, { "accountId": "callers_ID_67890", "firstName": "John", "middleName": "P", "lastName": "Tester", "email": "john@example.org", "dateOfBirth": "1985-09-01T00:00Z", "designations": [ { "isActive": "true", "designation": "pilot" } ] } ] }
Because this is a bulk operation, some accounts may be created, others have a new mapping applied, others have no action taken. It is also possible for one or more accounts to have failed validation.
The response code will still be HTTP 200
even when creation occurs, or validation failures occur.
Field | Type | Detail | |||||||||||||||||||||
operations | Array |
An array containing one entry per account submitted.
|
This example shows 2 valid and 2 invalid operations.
{ "accounts": [ { "accountId": "callers_ID_12345", "firstName": "Jane", "middleName": "B", "lastName": "Tester", "email": "jane@example.org", "dateOfBirth": "1980-08-01T00:00Z" }, { "accountId": "callers_ID_67890", "firstName": "John", "middleName": "P", "lastName": "Tester", // left blank to trigger validation "email": "", "dateOfBirth": "1985-09-01T00:00Z" } ] }
{ "operations": [ { "isValid": true, "operationId": "callers_ID_12345", "accountId": 112345, "wasCreated": false, "newSourceMappingAdded": false }, { "operationId": "callers_ID_67890", "isValid": false, "validation": { "fieldErrors": { "email": [ "Email is required." ] }, "generalErrors": [], "isValid": false, "title": "Error Validating Input Data", "instance": "de8d595d-7a20-4c30-9c33-19ece0d672bb", "type": "http://api.polarisaerodev.com/Help/Home/RestConcepts#validation-errors", "detail": "Email is required." } } ] }
API Version 14.2.9281.28219
Copyright ©2008-2025 Polaris Aero, LLC.