Delete an Object

Delete an object through the API with a DELETE request that uses its ID.

1 min read

Send the request

HTTP URL : https://<your-instance>.yooi.io/api/store/object/id/{objectId}

HTTP method: DELETE

Read the response

{
  "eventId": "{eventId}", // unique event identifier for the update
  "objectId": "{deletedObjectId}", // id of the deleted object
  "key": "{deletedObjectId}"
}

Delete a country

  1. Send the request with the following command.
    curl -X 'DELETE' \
      'https://<your-instance>.yooi.io/api/store/object/id/936793b5-ca4a-481d-8dcd-756221937e95' \
      -H 'Authorization: Bearer {integrationToken}'
  1. The result of the API call contains the event ID. Object ID and key are the same as in the request.
    {
      "eventId": "1632753588659-0",
      "objectId": [
        "936793b5-ca4a-481d-8dcd-756221937e95"
      ],
      "key": "936793b5-ca4a-481d-8dcd-756221937e95"
    }

Read more

Related articles

Was this page helpful?