updateBrandBugInstance
PUT
/api/v1/plugins/brand-bug/instances/{id}
const url = 'https://example.com/api/v1/plugins/brand-bug/instances/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PUT', headers: {'X-CSRF-Token': 'example', 'Content-Type': 'application/json'}, body: '{"name":"example","corner":"top_left","imageAssetId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","text":"example","widthPercent":1,"textSizePercent":1,"opacityPercent":1,"marginPercent":1,"textColor":"example","backgroundStyle":"none","startsAt":"2026-04-15T12:00:00Z","endsAt":"2026-04-15T12:00:00Z","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 PUT \ --url https://example.com/api/v1/plugins/brand-bug/instances/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Content-Type: application/json' \ --header 'X-CSRF-Token: example' \ --data '{ "name": "example", "corner": "top_left", "imageAssetId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "text": "example", "widthPercent": 1, "textSizePercent": 1, "opacityPercent": 1, "marginPercent": 1, "textColor": "example", "backgroundStyle": "none", "startsAt": "2026-04-15T12:00:00Z", "endsAt": "2026-04-15T12:00:00Z", "enabled": true, "priority": 1, "targetScope": "all", "targetIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ] }'Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Header Parameters
Section titled “Header Parameters”X-CSRF-Token
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
A mark needs a logo image, text, or both. Sizes are percentages of the screen so one instance reads the same at any panel resolution.
object
name
required
string
corner
required
imageAssetId
A ready image in the Media library.
string | null format: uuid
text
required
string
widthPercent
required
integer
textSizePercent
required
integer
opacityPercent
required
integer
marginPercent
required
integer
textColor
required
string
backgroundStyle
required
startsAt
string | null format: date-time
endsAt
string | null format: date-time
enabled
required
boolean
priority
required
integer
targetScope
required
targetIds
required
Array<string>
Responses
Section titled “ Responses ”Brand Bug instance replaced
Typed configuration, logo image, or targets are invalid
Owner or Administrator required
Instance not found