setJobLocation

Click to copy

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

Body parameter

Use dark colors for code blocksCopy
1
2
3
4
5
6
{
  "location": {
    "geometryType": "Multipoint",
    "geometry": "string"
  }
}

Query parameters

NameTypeRequired

token

string

Path parameters

NameTypeRequired

jobId

string

orgId

string

itemId

string

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 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

Response

200 Response

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

200

OK

success

Success

400

Bad Request

error

WorkflowJsonExceptionDTO

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