queryType: getCustomZoneTypes

The getCustomZoneTypes queryType is passed to the API to get the list of zone types that you have already created via the queryType: createCustomZoneType.

Parameters

These parameters should be passed to the functionParameters object regardless of which method you choose to make an API request.
ParameterDescriptionTypeDefined Value SetValue Required
queryTypeMust equal getCustomZoneTypes.STRINGgetCustomZoneTypesY
customZoneTypeStatusesOptional array of zone type status IDs, where 0 = deleted and 1 = active. If you want all active zone types only, for example, pass [1]. Pass an empty array to get all zone types. ARRAY[0,1]N

Responses

CodeTypeDescription
200JSONThe requested data.
401JSONOccurs for various unauthorized tasks e.g. if you didn’t provide credentials in your parameters.
500JSONOccurs if an internal server error occurs. Contact altitudesupport@geotab.com if this occurs.

Response Schema

AttributeDescriptionData TypeDefined Value Set
CommentsThe comments related to the zone type. STRING-
CreatedByThe user ID of the person who originally created the zone type. STRING-
CreatedTimestampThe date and time the zone type was created wrapped inside an object with a value attribute. OBJECT-
CustomZoneTypeIdThe unique ID of the zone type. STRING-
CustomZoneTypeDescriptionThe name of the zone type. STRING-
CustomZoneTypeStatusThe status of the custom zone type. 0 for “Deleted” and 1 for “Active”STRING0 for “Deleted” and 1 for “Active”
DatabaseThe database in which the zone type was created. STRING-
ModifiedByThe user ID of the person who last modified the zone type. STRING-
ModifiedByTimestampThe date and time the zone type was last modified wrapped inside an object with a value attribute. OBJECT-

Sample parameters

{
"customZoneTypeStatuses":[1],
"queryType":"getCustomZoneTypes"

}