18+ Only  |  Gambling can be addictive — please gamble responsibly  |  Gambling Help: 1800 858 858  |  GambleAware

API reference / Account

PATCH /v1/widgets/{widget_id}

Change a widget's label or config

`config` is a FULL replacement, validated the same way as on create — a merge would make it impossible to remove an allowed origin or a per-book override, and "send it back with your change in it" is the only rule that has one meaning. The widget id and the embed snippets do not change, so nothing on the customer's page needs redeploying.

Requires X-API-Key 0 credits

Request

curl -X PATCH 'https://api.puntersedge.online/v1/widgets/YOUR_WIDGET_ID' \
  -H 'X-API-Key: YOUR_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"label": "LABEL", "config": {}}'

Parameters

NameIn TypeRequired Description
widget_id path string yes wgt_… from POST /v1/widgets.
label body string no
config body object no FULL replacement after validation, not a merge — send the whole config back with your change in it, or omit the field to leave the stored one alone.

Responses

Status codes: 200, 401, 402, 422, 429, 500. Response bodies are JSON; the full schema is in /openapi.json.

Example response

200 application/json — this call costs 0 credits. Field names and types are as the API returns them; values are a real sample, trimmed to a few items.

{
  "widget_id": "wgt_3f9a1c74e20b6d58",
  "label": "Form guide sidebar",
  "active": true,
  "created_at": "2026-09-11T05:22:40Z",
  "last_served_at": "2026-09-25T00:03:12Z",
  "fills_total": 48211,
  "config": {
    "bookmakers": [
      "sportsbet",
      "tab",
      "ladbrokes_au"
    ],
    "defaults": {
      "country": "AU",
      "sports": [
        "afl",
        "nrl"
      ]
    },
    "theme": "light"
  },
  "embed": {
    "racing": "<iframe src=\"https://puntersedge.online/widget/v1/wgt_3f9a1c74e20b6d58/racing\" width=\"100%\" height=\"500\" frameborder=\"0\" loading=\"lazy\" title=\"Next to go\"></iframe>",
    "sports": {
      "afl": "<iframe src=\"https://puntersedge.online/widget/v1/wgt_3f9a1c74e20b6d58/afl\" width=\"100%\" height=\"500\" frameborder=\"0\" loading=\"lazy\" title=\"afl\"></iframe>",
      "nrl": "<iframe src=\"https://puntersedge.online/widget/v1/wgt_3f9a1c74e20b6d58/nrl\" width=\"100%\" height=\"500\" frameborder=\"0\" loading=\"lazy\" title=\"nrl\"></iframe>"
    }
  },
  "csp": "frame-src https://puntersedge.online"
}

Related endpoints

Try it against live data

The free tier needs no credit card, and the sandbox endpoints need no key at all.

Get a free API key Quickstart
This site contains wagering-related analysis and is intended for Australian users aged 18+. Gambling involves risk. Please gamble responsibly.