getOnSiteJobsJobTypes
Get available job types for an on-site jobs request.
Arguments
List of internal IDs of supply points relevant to the job. If this is provided, supplyPointsToMarketNamesMapping cannot be provided.
A list of supply point identifiers relevant to the job. If this is provided, supplyPointInternalIds cannot be provided.
Work category to filter job types by. If it's left as blank, all job types will be returned.
Possible Errors
Allowed Viewers
Query Complexity
1Examples
The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.
query GetOnSiteJobsJobTypes(
$supplyPointInternalIds: [Int],
$supplyPointsToMarketNamesMapping: [SupplyPointIdentifierToMarketNameMappingInput],
$workCategory: OnSiteJobsWorkCategory
) {
getOnSiteJobsJobTypes(
supplyPointInternalIds: $supplyPointInternalIds,
supplyPointsToMarketNamesMapping: $supplyPointsToMarketNamesMapping,
workCategory: $workCategory
) {
id
name
}
}
Variables
{
"supplyPointInternalIds": 91,
"supplyPointsToMarketNamesMapping": SupplyPointIdentifierToMarketNameMappingInput,
"workCategory": "ACCURACY_TEST"
}
Response
{
"data": {
"getOnSiteJobsJobTypes": [
{
"id": "42779653",
"name": "such-air-tonight-performance-first"
}
]
}
}