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.

ParameterDescriptionTypeDefined Value SetValue Required
queryTypeMust equal "getVocations".STRING"getVocations"Y

Responses

CodeTypeDescription
200JSONThe requested data.
401JSONOccurs for various unauthorized tasks, such as not providing credentials in your parameters.
500JSONOccurs if an internal server error occurs. Contact Altitude Support if this occurs.

Response Schema

AttributeDescriptionData TypeDefined Value Set
VocationIdUnique identifier for vocation type.INTEGERSee Vocation descriptions .
VocationVocation shortname.STRINGSee Vocation descriptions .

Sample parameters


{
"queryType": "getVocations"
}
            

POI Location Specific Insights usage

Use getVocations to retrieve vocation IDs for filtering POI Location Specific Insights results. The vocation IDs returned here are the same values accepted by the vocations parameter in getPOIAnalytics.

The REST proxy also exposes vocations at GET /api/v2/filters/vocations, which returns the same vocation list in the new REST response format.