createWidget
const url = 'https://example.com/api/v1/widgets';const options = { method: 'POST', headers: { cookie: 'tilecast_session=<tilecast_session>', 'Content-Type': 'application/json' }, body: '{"provider":"example","presetId":"leaderboard","name":"example","description":"example","configuration":{}}'};
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/widgets \ --header 'Content-Type: application/json' \ --cookie tilecast_session=<tilecast_session> \ --data '{ "provider": "example", "presetId": "leaderboard", "name": "example", "description": "example", "configuration": {} }'Requires an authenticated dashboard session. Creates a reusable Widget or catalog App. An App recipe may atomically provision one hidden managed Data Source while preserving normal dependency and manifest behavior.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Closed renderable Widget or App identifier from the release-owned content-definition catalog.
Provider-specific configuration. Native text Widgets omit textScale for automatic bounds-first sizing or use 25–500 percent; contentPadding defaults to 10 percent per edge and accepts 0–40.
object
Responses
Section titled “ Responses ”Widget created
object
object
object
object
object
Closed renderable Widget or App identifier from the release-owned content-definition catalog.
Author-facing App settings before managed-resource IDs are injected.
object
Explicit ownership link for a catalog App’s hidden managed Data Source.
Provider-specific configuration. Native text Widgets omit textScale for automatic bounds-first sizing or use 25–500 percent; contentPadding defaults to 10 percent per edge and accepts 0–40.
object
object
object
object
object
On the tag list, whether the caller may apply or remove this tag.
object
Example
{ "data": { "type": "image", "processingStatus": "uploading", "variants": [ { "kind": "original" } ], "widget": { "presetId": "leaderboard" }, "website": { "cookiePolicy": "disabled", "reloadPolicy": "load_once", "failureBehavior": "last_success" } }}Provider unknown, Data Source incompatible, or a selected field does not exist