Triplit · Example Payload

Triplit Delete Example

Example: Delete a single entity from the todos collection

DatabaseReal-timeSyncLocal-firstDeveloper ToolsTypeScriptOpen Source

Triplit Delete Example is an example object payload from Triplit, with 3 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

descriptionrequestresponse

Example Payload

triplit-delete-example.json Raw ↑
{
  "description": "Example: Delete a single entity from the todos collection",
  "request": {
    "method": "POST",
    "url": "https://your-project-id.triplit.io/delete",
    "headers": {
      "Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
      "Content-Type": "application/json"
    },
    "body": {
      "collectionName": "todos",
      "entityId": "abc123"
    }
  },
  "response": {
    "status": 200,
    "body": {}
  }
}