Delete a Single Object
This function deletes a single existing object of the given type and with the given ID.
Relative URL | HTTP Request Method |
---|---|
/api/v4/ backend-deployment-id /objects/ model / object-id .json | DELETE |
- Replace
model
with the type of object that you wish to delete (as defined in your app's Data Model) - Replace
object-id
with the ID of the specific object.
This function does not take any parameters.
This function does not provide a response. The response body will simply be empty (and a
200
response code indicates success as usual).BASE-URL
The below examples contain a
BASE-URL
placeholder. Please refer to the HTTP Endpoints section to get the base URL relevant to your deployment.HTTP
curl
ruby
DELETE BASE-URL/api/v4/533bda53027894f69b001055/objects/tasks/eacb4836-f1b9-11e1-9750-001cc01904e3.json
curl "BASE-URL/api/v4/533bda53027894f69b001055/objects/tasks/eacb4836-f1b9-11e1-9750-001cc01904e3.json" \
-u "533bda53027894f69b001055:7Ajj5htRY1uzw7b4w23V" \
-X DELETE
require 'rest-client'
journey = RestClient::Resource.new "BASE-URL/api/v4", "533bda53027894f69b001055", "7Ajj5htRY1uzw7b4w23V"
journey["533bda53027894f69b001055/objects/tasks/eacb4836-f1b9-11e1-9750-001cc01904e3.json"].delete
Last modified 10mo ago