GamebeastDocs
Dashboard
Project APIAnnotations

Delete annotations in bulk

POST
/application/{applicationId}/analytics/v1/annotations/bulk-delete

Delete up to 500 annotations by ids, or every annotation a filter matches (up to 5,000). With filter, send expectedCount: if the filter now matches a different number the call answers 409 and deletes nothing. dryRun deletes nothing and answers the count by type. Locked annotations (experiments) are refused by id and skipped by filter. Undo within an hour with bulk-restore.

Authorization

personalAccessTokenAuth
AuthorizationBearer <token>

Personal access token (prefixed gb_pat_). Acts on behalf of its owner and can never exceed the owner's own permissions. Send it as Authorization: Bearer <token>.

In: header

Path Parameters

applicationId*number

Gamebeast project ID

Header Parameters

environment_id*number

Gamebeast environment ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/application/0/analytics/v1/annotations/bulk-delete" \  -H "environment_id: 0" \  -H "Content-Type: application/json" \  -d '{}'
{  "dryRun": true,  "count": 0,  "byType": [    {      "typeId": "caab7c42-4ce7-4bd5-bbab-6017cec730b7",      "name": "string",      "count": 0    }  ],  "skippedLocked": 0,  "span": {    "from": "2019-08-24T14:15:22Z",    "to": "2019-08-24T14:15:22Z"  },  "ids": [    "6e0346a3-e54d-40e3-9779-4ba1e707e35b"  ],  "deletedAt": "2019-08-24T14:15:22Z"}