contentDefinitions
const url = 'https://example.com/api/v1/content-definitions';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/content-definitionsContent definitions. Requires an authenticated dashboard user.
Responses
Section titled “ Responses ”Authoritative release-owned Widget and Data Source definitions, schemas, templates, adapters, and capability requirements
object
object
object
Version of the persisted Widget configuration; omission means version 1.
object
object
object
A Studio translation key in the definitions namespace for label. Optional; label is the literal fallback and stays the English source.
A Studio translation key in the definitions namespace for description. Optional; description is the literal fallback.
The authoring control. New definitions and plugins can introduce control types, so clients must tolerate values they do not know.
Release-owned default value of any JSON type.
object
A Studio translation key in the definitions namespace for label. Optional; label is the fallback.
object
Release-owned authoring hints of any JSON shape.
object
Release-owned default Widget configuration.
object
Release-owned presentation template.
object
object
object
object
object
Release-owned Data Source configuration template.
object
object
object
Studio authoring capabilities. They never change validation, projection, or playback.
object
object
The rendered result depends on the current instant, so Studio offers preview-time controls.
A pixel geometry. Studio opens the preview at a Widget’s recommended frame, renders library thumbnails at it, and gives a new Layout placement its aspect ratio. It is an authoring hint only; it never reaches the Player and never changes validation or playback.
object
object
Release-owned component configuration template.
object
object
object
object
object
A Studio translation key in the definitions namespace for label. Optional; label is the literal fallback and stays the English source.
A Studio translation key in the definitions namespace for description. Optional; description is the literal fallback.
The authoring control. New definitions and plugins can introduce control types, so clients must tolerate values they do not know.
Release-owned default value of any JSON type.
object
A Studio translation key in the definitions namespace for label. Optional; label is the fallback.
object
Release-owned authoring hints of any JSON shape.
object
Release-owned default Data Source configuration.
object
object
object
object
object
object
Example
{ "data": { "widgets": [ { "source": { "kind": "core" }, "kind": "widget", "runtime": "native", "component": { "empty": "render" }, "compatibility": { "fallback": "legacy" } } ], "dataSources": [ { "source": { "kind": "core" }, "outputSchema": { "kind": "scalar" }, "fetch": { "format": "json" } } ] }}