Retrieves the layouts associated with the specified content.

Use the /layouts/by-content/{contentId} endpoint to retrieve the layouts associated with the specified content. When the 'filter' query string parameter is set to 'selected', only the selected layout (which could be a content override) is returned.
User roles: admin, manager, editor, viewer

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The ID of the content whose associated layouts should be returned.

Query Params
string

Optionally specifies the context for draft overlay. Contains the project id, or special values:
draft for standalone draft overlays none for no project overlay.

When both the 'projectId' query-string parameter AND the 'x-ibm-dx-project-id' header are specified, the 'projectId' query-string parameter will override the 'x-ibm-dx-project-id' header.

string

An optional filter to control the returned results.
Valid options are:
* selected: Indicates that only the selected layout should be returned.

number
Defaults to 0

Use the offset parameter to specify the number of layouts to skip and return the rest.

number
Defaults to 50

Set the limit for the number of layouts that are returned.

string

Only the layout fields that are specified here are returned for each result. Any layout field is a valid value and can be specified as a comma-separated list.

Headers
string

Optionally specifies the context for draft overlay. Contains the project id, or special values:
draft for standalone draft overlays none for no project overlay.

When both the 'projectId' query-string parameter AND the 'x-ibm-dx-project-id' header are specified, the 'projectId' query-string parameter will override the 'x-ibm-dx-project-id' header.

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json