Public API – DELETE Fence

The fences end point allows you to delete a fence. Deleting a fence does not have an impact on the Actions and Conditions associated with the Zone.

URL to call

https://api.bluedotinnovation.com/1/fences

Parameters

Name Required Data Type Description Format
customerApiKey String API key for customer (rather than the app).
apiKey String API key for the app
zoneId String The identifier of the zone containing the action.
fenceId String The identifier of the fence being deleted. This can be retrieved via the zones end point.

 

Example: Using test keys

https://api.bluedotinnovation.com/1/fences?customerApiKey=6ab02370-97c4-11e4-b3f3-00155d53317c&apiKey=91a6e730-d507-11e5-9635-06a56cd124c5&zoneId=4f134aaa-3382-49bb-b7c7-a0bf72e56238&fenceId=916988ef-f0c1-45b8-a719-6dc4b401025e

Example: JSON response to request

{
    "message":"Fence with id :b3fca136-0335-47a9-b828-0bff606e4753 has been deleted successfully.",
    "messageCode":200
}

Source code examples

Created by Bluedot DevOps on March 5, 2018

Start the discussion