DELETE /locations/{id}

Delete a Location

This endpoint allows you to delete a specific Location.Default behaviour will delete locations without dependencies.

You can send force=true so that locations that have dependencies will be deleted.

Note that Locations that contain lower level active Failure or Planned Job Orders running cannot be deleted.

Operation ID: deleteLocation
lock This endpoint requires a Bearer token in the Authorization header.

Path Parameters

Name Type Description
id required
path
string

The Location ID

Query Parameters

Name Type Description
force
query
boolean

Delete location with active dependencies

Responses

data array
status string
error
error object
properties object

Only present when related to property validation error

dev_message string

Example: Property validation error. Check the "properties" section in the response.

http_code integer
400
message string

Example: Property validation error.

more_info string
status string
error
error object
http_code integer
401
message string

Example: Authentication token invalid.

more_info string
status string
error
error object
http_code integer
403
message string

Example: Action unauthorized

more_info string
status string
error
error object
http_code integer
404
message string

Example: Resource not found

more_info string | null
status string
error
error object
http_code integer
429
message string

Example: Too Many Requests.

more_info string
status string
error
error object
http_code integer
500
message string

Example: An error has occurred during the request.

more_info string