Replace the JSON-LD schema markup attached to a page.
Accepts a JSON object, a raw JSON string, or a string wrapped in a <script type="application/ld+json"> tag.
When the input is a string that contains an opening <script type="application/ld+json"> tag, the string must also contain a matching closing </script> tag or the request returns 400.
Pass null to clear the schema markup for the targeted page or locale.
The keys __proto__, constructor, and prototype are silently stripped before storage.
Validation limits | 60KB raw input, 32 nesting depth, 5000 nodes
Required scope | pages:write
Bearer authentication of the form Bearer <token>, where token is your auth token.
JSON-LD schema markup to attach to the page. Accepts a JSON object, a raw JSON string, or a string wrapped in a <script type="application/ld+json"> tag. Pass null to clear the schema markup for the targeted page or locale.
Validation limits | 60KB raw input, 32 nesting depth, 5000 nodes
Identifier of the locale the request targeted. Resolves to the site’s primary locale when no localeId was provided.
Identifier of the locale that contributed the returned schema markup. Differs from localeId when the requested locale has no override and the primary locale’s schema markup is returned as a fallback. Returns null when no schema markup exists for either the requested locale or the primary locale.
Parsed JSON-LD schema markup for the page. Returns null when the page has no schema markup or when the stored value is a legacy multi-block format that can’t be parsed as a single JSON-LD object.
Raw stored schema markup, including any surrounding <script type="application/ld+json"> tag. Populated only when the stored value can’t be represented as a single JSON-LD object, for example when a page contains multiple <script> blocks set through the Designer.
true when the response represents the primary locale’s schema markup because the requested secondary locale has no override. false when the response is the locale’s own value or when no localeId was requested.