queryType: getVocations
The getVocations queryType is passed to the API to get a list of vocation information.
Parameters
These parameters should be passed to the functionParameters object regardless of which method you choose from here.
| Parameter | Description | Type | Defined Value Set | Value Required |
|---|---|---|---|---|
| queryType | Must equal "getVocations". | STRING | "getVocations" | Y |
Responses
| Code | Type | Description |
|---|---|---|
| 200 | JSON | The requested data. |
| 401 | JSON | Occurs for various unauthorized tasks, such as not providing credentials in your parameters. |
| 500 | JSON | Occurs if an internal server error occurs. Contact altitudesupport@geotab.com if this occurs. |
Response Schema
| Attribute | Description | Data Type | Defined Value Set |
|---|---|---|---|
| VocationId | Unique identifier for vocation type. | INTEGER | See Vocation descriptions . |
| Vocation | Vocation shortname. | STRING | See Vocation descriptions . |
Sample parameters
{
"queryType": "getVocations"
}