GamebeastDocs
Dashboard
Project APIMarker sinks

Preview a marker sink

POST
/application/{applicationId}/marker-sinks/preview

Renders the payload against a recent marker and estimates the share that would be dropped at the rate. Stores and sends nothing.

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/marker-sinks/preview" \  -H "environment_id: 0" \  -H "Content-Type: application/json" \  -d '{    "markerTypes": [      "string"    ],    "destination": {      "type": "contact_point",      "contactPointId": "cf5dfe85-f4ff-4283-a8be-b72a98cc01a9"    },    "ratePerSec": 1  }'
{  "sample": {    "markerType": "string",    "timestamp": "2019-08-24T14:15:22Z"  },  "rendered": {    "kind": "json",    "body": null,    "bytes": -9007199254740991  },  "tooLarge": true,  "volume": {    "peakPerSec": 0,    "droppedShare": 0,    "wouldSuspend": true  },  "maxRatePerSec": -9007199254740991}