Sitecore API catalog/Agent API//
- Move a component on a page
Create a page
Add a language version to a page
Add a component to a page
Retrieve components on a page
Set the component datasource
Search for pages on a site
Retrieve the page by live URL
Retrieve the screenshot of a page
Retrieve the page HTML
Retrieve the page preview URL
Retrieve the page template by ID
Retrieve the page details
List allowed components for a placeholder
Remove component on page
Move a component on a pag...
Moves a component instance before or after another component instance on the base page layout. Components can move between compatible editable placeholders. Use targetPlaceholderPath when moving into an empty placeholder.
Security
HTTPBearer
The unique identifier of the page. To get this ID, use List pages of a site.
Example:550e8400-e29b-41d4-a716-446655440000
Example:"/headless-main/column-1-1"
Any of:
The destination placeholder path for the moved component.
string
Example:"af4edf9c-aa98-4cd9-9807-88e0a411a7d4"
Any of:
The ID of the page-component instance before which to move the component.
string (uuid)
Example:"3a6f45e9-9459-42d1-981f-0f2c97404bbd"
Any of:
The page-component instance ID after which to move the component.
string (uuid)
- Production serverhttps://edge-platform.sitecorecloud.io/stream/ai-agent-api/api/v1/pages/{pageId}/components/{componentInstanceId}/position
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
https://edge-platform.sitecorecloud.io/stream/ai-agent-api/api/v1/pages/550e8400-e29b-41d4-a716-446655440000/components/550e8400-e29b-41d4-a716-446655440001/position \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-H 'x-sc-job-id: job-1234' \
-d '{
"targetPlaceholderPath": "/headless-main/column-1-1",
"insertBeforeComponentId": "af4edf9c-aa98-4cd9-9807-88e0a411a7d4",
"insertAfterComponentId": "3a6f45e9-9459-42d1-981f-0f2c97404bbd",
"language": "en"
}'Successful response
The unique identifier of the page containing the moved component.
Example:"6c7d6514-9660-4599-b310-240bdff5cb1b"
The instance ID of the moved component.
Example:"3a6f45e9-9459-42d1-981f-0f2c97404bbd"
Example:"/headless-main/column-1-1"
Any of:
The placeholder from which the component was moved.
string
Response
{ "success": true, "pageId": "6c7d6514-9660-4599-b310-240bdff5cb1b", "componentInstanceId": "3a6f45e9-9459-42d1-981f-0f2c97404bbd", "sourcePlaceholderPath": "/headless-main/column-1-1", "targetPlaceholderPath": "/headless-main/column-2-1/container-seventy-3" }