Download OpenAPI specification:
A mock up of a simple account management API for sample purposes.
Creates a new account.
| username required | string The account's username. |
| email required | string <email> The account holder's email address. |
| active required | boolean If true, the account is activated on creation. |
| accountType required | string Enum: "personal" "corporate" The type of account:
|
| licenseId | Array of strings <uid> [ items <uid > ] A list of the licenses assigned to the account. |
object Information about the account holder. |
{- "username": "alex.lee",
- "email": "user@example.com",
- "active": true,
- "accountType": "personal",
- "licenseId": [
- "7d56bd9d-a642-4fee-9700-0c5c60c98e26"
], - "userInfo": {
- "firstName": "Alex",
- "lastName": "Lee",
- "phone": "555-123-4567",
- "address": {
- "street": "1234 Lexington Way",
- "city": "Lansing",
- "state": "MI",
- "zipCode": 55555
}
}
}{- "data": {
- "username": "alex.lee",
- "id": 89021278386,
- "active": true,
- "accountType": "personal",
- "licenseId": [
- {
- "licenseId": "7d56bd9d-a642-4fee-9700-0c5c60c98e26",
- "licenseType": "personal",
- "licenseName": "basic"
}
]
}
}Gets information about an account.
| accountId required | integer (accountId) Example: 89021278386 The account ID. |
{- "username": "alex.lee",
- "email": "user@example.com",
- "active": true,
- "accountType": "personal",
- "licenseId": [
- "7d56bd9d-a642-4fee-9700-0c5c60c98e26"
], - "userInfo": {
- "firstName": "Alex",
- "lastName": "Lee",
- "phone": "555-123-4567",
- "address": {
- "street": "1234 Lexington Way",
- "city": "Lansing",
- "state": "MI",
- "zipCode": 55555
}
}
}Updates an account's information.
| accountId required | integer (accountId) Example: 89021278386 The account ID. |
| username required | string The account's username. |
| email required | string <email> The account holder's email address. |
| active required | boolean If true, the account is activated on creation. |
| accountType required | string Enum: "personal" "corporate" The type of account:
|
| licenseId | Array of strings <uid> [ items <uid > ] A list of the licenses assigned to the account. |
object Information about the account holder. |
{- "username": "alex.lee",
- "email": "user@example.com",
- "active": true,
- "accountType": "personal",
- "licenseId": [
- "7d56bd9d-a642-4fee-9700-0c5c60c98e26"
], - "userInfo": {
- "firstName": "Alex",
- "lastName": "Lee",
- "phone": "555-123-4567",
- "address": {
- "street": "1234 Lexington Way",
- "city": "Lansing",
- "state": "MI",
- "zipCode": 55555
}
}
}{- "data": {
- "username": "alex.lee",
- "id": 89021278386,
- "active": true,
- "accountType": "personal",
- "licenseId": [
- {
- "licenseId": "7d56bd9d-a642-4fee-9700-0c5c60c98e26",
- "licenseType": "personal",
- "licenseName": "basic"
}
]
}
}Removes an account from the active accounts database.
Note:
This endpoint soft deletes the account. It does not permanently delete the account from the accounts database.
| accountId required | integer (accountId) Example: 89021278386 The account ID. |
Returns information about all licenses assigned to the given account ID.
| accountId required | integer (accountId) Example: 89021278386 The account ID. |
{- "data": [
- {
- "id": "7d56bd9d-a642-4fee-9700-0c5c60c98e26",
- "licenseType": "personal",
- "licenseName": "Basic Annual",
- "licenseState": "active",
- "notes": "Upgraded from trial license."
}
]
}Returns an account's product license information.
| accountId required | integer (accountId) Example: 89021278386 The account ID. |
| licenseId required | string <uid> (licenseId) Example: 7d56bd9d-a642-4fee-9700-0c5c60c98e26 The license's unique ID. |
{- "data": {
- "username": "alex.lee",
- "accountId": 89021278386,
- "id": "7d56bd9d-a642-4fee-9700-0c5c60c98e26",
- "type": "personal",
- "licenseState": "active",
- "notes": "Upgraded from trial license."
}
}Updates the status of an account's product license.
| accountId required | integer (accountId) Example: 89021278386 The account ID. |
| licenseId required | string <uid> (licenseId) Example: 7d56bd9d-a642-4fee-9700-0c5c60c98e26 The license's unique ID. |
| licenseId required | string <uid> The account's license ID. |
| licenseState | string Enum: "activate" "softHold" "suspend" The license state:
|
| notes | string An optional note about the license. |
{- "licenseId": "7d56bd9d-a642-4fee-9700-0c5c60c98e26",
- "licenseState": "suspend",
- "notes": "Account license suspended due to non-payment."
}{- "licenseStatus": "removed",
- "message": "Removed license '7d56bd9d-a642-4fee-9700-0c5c60c98e26' from account 89021278386",
- "license": {
- "id": "7d56bd9d-a642-4fee-9700-0c5c60c98e26",
- "type": "personal",
- "accountId": 89021278386
}, - "notes": "removed due to license violation"
}