Locations
DELETE Delete Location /locations/delete
Deletes a location. *NOTE that deleting a location will not cascade accross all other resources that use the location, be careful when deleting locations.
Request Body
| Name | Value | Description | Required |
|---|---|---|---|
id | string | Id of Location to delete | true |
Response
| Name | Value | Description |
|---|---|---|
id | string | Id of Location Deleted |
success | boolean | Result of operation |
Authorization Bearer Token
Token API_Key
Headers
Content-Type application/json
Example
import axios from "axios";
const headers = {
"Authorization": `Bearer ${your_api_key}`,
"Content-Type": "application/json"
};
const locationId = "location-id";
const data = {
id: locationId
};
const rootUrl = "https://us-central1-checklist-admin-d0013.cloudfunctions.net/api/v1";
const request = axios(rootUrl+`/locations/delete`, { headers, data });
Body Response JSON
{
"id": "location-id",
"success": true
}