Skip to main content

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​

NameValueDescriptionRequired
idstringId of Location to deletetrue

Response​

NameValueDescription
idstringId of Location Deleted
successbooleanResult 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
}