StatsHub Docs
APIEndpoint referenceTipster

/tipster/preview

The preview is created as a draft.

POST
/api/tipster/preview

The preview is created as a draft.

Authorization

AuthorizationBearer <token>

Supabase access token.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/tipster/preview" \  -H "Content-Type: application/json" \  -d '{    "description": "string",    "tags": [      "string"    ],    "tips": [      {        "bettingTips": "string",        "content": "string",        "fixture": {          "awayTeam": {            "id": null,            "name": "string",            "slug": "string"          },          "homeTeam": {            "id": null,            "name": "string",            "slug": "string"          },          "id": null,          "slug": "string",          "startTimestamp": null,          "tournament": {            "name": "string",            "slug": "string"          }        }      }    ],    "title": "string"  }'
{  "preview": null,  "slug": "string"}