Page

Links template and page

Changed on

Takes a saved template and links it to an HTML page.

Any pages with a template already linked will update with the new link.

Otherwise a new template will be created without making any changes to previous templates.

Returns the rendered page.

post/api/v1/page/{pageId}/layout

Request

Path parameters

pageIdstring required

ID for the page will link to

Query parameters

variantNamestring

Request body

themeIdstring

Theme folder identifier (not a path) supplying the template's CSS/JS and VTL fragments. Resolve from a path via GET /api/v1/folder/sitename/{site}/uri/{uri}.

titlestring

Title for the resulting template. Omit to create an anonymous, page-scoped template (a generated name is assigned automatically).

siteIdstring

Identifier of the site (host) the template belongs to. Sent as the JSON property 'hostId'. Defaults to the site resolved from the current HTTP request context when omitted.

anonymousLayoutboolean

Response

Page template linked to HTML and saved successfully

i18nMessagesMapobject
permissionsstring[]

Changes

    • breaking

      the request property became required

    • info

      added the new optional request property //////

    • info

      added the new optional request property ////

    • info

      added the new optional request property /////

    • info

      added the new optional request property ///

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status