createCountdownBarInstance
const url = 'https://example.com/api/v1/plugins/countdown-bar/instances';const options = { method: 'POST', headers: {'X-CSRF-Token': 'example', 'Content-Type': 'application/json'}, body: '{"name":"example","message":"example","scheduleType":"weekly","targetTime":"example","daysOfWeek":[1],"oneTimeAt":"2026-04-15T12:00:00Z","timezone":"example","leadTimeSeconds":1,"completionText":"example","showConfetti":false,"displayMode":"overlay","heightPx":1,"progressFill":"none","contentPadding":4,"textScale":100,"urgencyEnabled":false,"startingSoonSeconds":300,"urgentSeconds":60,"pulseSeconds":10,"enabled":true,"priority":1,"targetScope":"all","targetIds":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/plugins/countdown-bar/instances \ --header 'Content-Type: application/json' \ --header 'X-CSRF-Token: example' \ --data '{ "name": "example", "message": "example", "scheduleType": "weekly", "targetTime": "example", "daysOfWeek": [ 1 ], "oneTimeAt": "2026-04-15T12:00:00Z", "timezone": "example", "leadTimeSeconds": 1, "completionText": "example", "showConfetti": false, "displayMode": "overlay", "heightPx": 1, "progressFill": "none", "contentPadding": 4, "textScale": 100, "urgencyEnabled": false, "startingSoonSeconds": 300, "urgentSeconds": 60, "pulseSeconds": 10, "enabled": true, "priority": 1, "targetScope": "all", "targetIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ] }'Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
Show a short confetti fall from the top of the Player when the countdown reaches zero. This does not require completion text.
Background treatment behind the bar text. “drain” starts the bar fully tinted when the lead window opens and retreats the tint leftward as the target approaches, leaving only the bar background at zero. Omitted means “none”.
Share of each side left as a gutter, as a percentage of the bar width. Lowering it gives a long message or a larger type size more room. The default 4 matches the bar’s original gutters.
Percentage applied to the height-derived type size, so a bar can carry larger text without changing its height. 100 is the original appearance.
Enable automatic starting-soon, urgent, and final pulse stages.
Final seconds during which the urgent bar pulses and grows by 25 percent.
Responses
Section titled “ Responses ”Countdown Bar instance created
Typed configuration or targets are invalid
Owner or Administrator required