Sitecore API catalog/Components API//
- Retrieve component metadata
Retrieve a component draft
Update a component draft
Update a component draft
Delete a component draft
List component drafts
Create a component draft
List components
Create a component
List component summaries
Retrieve a component
Update a component
Retrieve component variant metadata by ID
Get sites where specified component is allowed
Generate a draft content type suggestion
Activate a component draft
Generate a component draft suggestion
Retrieve component metada...
Fetches the metadata of a component.
Security
Bearer
- Production serverhttps://edge-platform.sitecorecloud.io/authoring/api/v1/components/{componentId}/metadata
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
curl -i -X GET \
'https://edge-platform.sitecorecloud.io/authoring/api/v1/components/2492bac4-da07-4c86-87f0-9873d40e2276/metadata?siteId=497f6eca-6276-4993-bfeb-53cbbbba6f08&contextItemId=2f34355e-c52d-450e-b1b9-d4e9cbe64af2&componentName=Promo&renderingHostName=nextjs-production&environmentId=main' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Successful operation
Response
{ "id": "2492bac4-da07-4c86-87f0-9873d40e2276", "name": "Promo", "displayName": "Promo", "code": "const Greeting = () => <h1>Hello!</h1>;", "renderingParameters": [ { … } ], "settings": { "property1": null, "property2": null }, "availability": { "sites": [ … ], "pageModels": [ … ] } }