Skip to main content

Arguments

supplyPointInternalIds : [Int]

List of internal IDs of supply points relevant to the job. If this is provided, supplyPointsToMarketNamesMapping cannot be provided.

supplyPointsToMarketNamesMapping : [SupplyPointIdentifierToMarketNameMappingInput]

A list of supply point identifiers relevant to the job. If this is provided, supplyPointInternalIds cannot be provided.

workCategory : OnSiteJobsWorkCategory

Work category to filter job types by. If it's left as blank, all job types will be returned.

Returns

[OnSiteJobsJobTypeType]

Represents a job type available for on-site jobs requests.

Allowed Viewers

Customer Partner User Third party

Query Complexity

1

Examples

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

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" } ] } }