Sitecore API catalog/Pages API//
- Retrieve insert options
Retrieve a page
Update field values
Delete a page
Retrieve a page state
Search for pages
Retrieve page versions
Add a version to a page
List live variant identifiers for a page
Check if a page is published to Edge
Create a page
Create a page from blueprint
Save a page layout
Save page fields
Duplicate a page
Rename a page
Add a page version
Translate a page
Delete a version of a page
Retrieve insert options
Fetches the list of possible templates which are compatible insert options for a page.
Security
Bearer
- Production serverhttps://xmapps-api.sitecorecloud.io/api/v1/pages/{pageId}/insertoptions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
const query = new URLSearchParams({
site: '3875AC96-8ECF-44AE-8E25-851068B373CE',
language: 'en-US',
insertOptionKind: 'Page',
environmentId: 'main'
}).toString();
const pageId = '8f0b81bc-7388-46be-b109-6e73d1114470';
const resp = await fetch(
`https://xmapps-api.sitecorecloud.io/api/v1/pages/${pageId}/insertoptions?${query}`,
{
method: 'GET',
headers: {
Authorization: 'Bearer <YOUR_TOKEN_HERE>'
}
}
);
const data = await resp.text();
console.log(data);Success
Array []
Template ID Example value: 6fe7d655-1e3d-4c27-8010-5777f06c6c4f
Example:"6fe7d655-1e3d-4c27-8010-5777f06c6c4f"
Response
[ { "id": "6fe7d655-1e3d-4c27-8010-5777f06c6c4f", "displayName": "Page", "templateType": "ItemTemplate" } ]