Delete Location
Deletes a saved location.
Note: You can only delete a saved location if it's not included in any existing work orders.
URLs
| Environment | Method | URL |
|---|---|---|
| Sandbox | https://api-sandbox.fndev.net/api/rest/v2/locations/location_id | |
| Production | https://api.fieldnation.com/api/rest/v2/locations/location_id |
Path Parameters
| Parameter | Type | Example | Notes |
|---|---|---|---|
| location_id | integer | 16267 | Saved Location ID. |
Query Parameters
| Parameter | Type | Example | Notes |
|---|---|---|---|
| access_token | string | abc123defg459hijk786lmn45 | Required. |
Body
Not applicable.
Response
Returns the Saved Location Object by ID. Refer to Saved Locations for parameter details and examples.
Errors
Standard HTTP and OAuth error codes.Examples
401 Unauthorized: Saved location in use.
{
"message": "You may only delete location that are not used by work orders. If you wish to delete this location you must first edit the work orders that are using it.",
"trace": [],
"extra": []
}
