PUT
/{orgId}/{itemId}/jobs/{jobId}/locationSet 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:
| Parameter | Description | Data Type |
|---|---|---|
| geometryType | Optional. 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 |
| geometry | Optional. Coordinates and spatial reference for the location. | String |
Query parameters
| Name | Type | Required |
|---|---|---|
token | string¦null |
Body parameters
Supported content types: application/json
Type: LocationBody
Location of the job
| Name | Type | Required |
|---|---|---|
location | Location |
Path parameters
| Name | Type | Required |
|---|---|---|
job | string | |
org | string | |
item | string |
Response status
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | success | Success |
| 400 | Bad Request | error | WorkflowJsonExceptionDTO |
Examples
Request
# 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
{
"success": true
}