Skip to content

setJobLocation

PUT
Use dark colors for code blocksCopy
1
/{orgId}/{itemId}/jobs/{jobId}/location
Set the job's location

Set a location of work for an existing job. The geometry for the job location must be in the ArcGIS REST API geometry JSON format. The jobUpdateLocation privilege is required to set a location on a job.

Location Parameters:

ParameterDescriptionData Type
geometryTypeOptional. Type of location defined. Parameter geometryType is required if a geometry is specified. Supported geometry types are Multipoint, Polyline, and Polygon. Multipoint geometry type supports both Point and Multipoint geometries. Curve geometries are not supported.String
geometryOptional. Coordinates and spatial reference for the location.String

Query parameters

NameTypeRequired
tokenstring¦null

Body parameters

Supported content types: application/json

Type: LocationBody

Location of the job

NameTypeRequired
locationLocation

Path parameters

NameTypeRequired
jobIdstring
orgIdstring
itemIdstring

Response status

StatusMeaningDescriptionSchema
200OK

success

Success
400Bad Request

error

WorkflowJsonExceptionDTO

Examples

Request

Use dark colors for code blocksCopy
1
2
3
4
5
# You can also use wget
curl -X PUT /{orgId}/{itemId}/jobs/{jobId}/location \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <YOUR_TOKEN>' \
  --data '{"location":{"geometryType":"Multipoint","geometry":"string"}}'

Response

Use dark colors for code blocksCopy
1
2
3
{
  "success": true
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.