Add product resources to a context

Request

Adds product-based resources to a specific context.

Security
BearerAuth
Path
sitecoreContextIdstringrequired

Sitecore Context Id

Example:f9c3b17d181640efbbf3ae670311452d
Bodyapplication/json
productCodestringrequired

Available values: "XMCloud" | "Personalize" | "CDP" | "contenthub"

Example:"XMCloud"
tenantIdstringrequired
Example:"g6c3b17d-1816-40ef-bbf3-ae670311452c"
environmentstring

Only for XMCloud product. Available values: "Live" | "Preview"

Example:"Live"
curl -i -X POST \
  https://edge-platform-context-api.sitecorecloud.io/api/context/user/v1/contexts/f9c3b17d181640efbbf3ae670311452d/products \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "productCode": "XMCloud",
    "tenantId": "g6c3b17d-1816-40ef-bbf3-ae670311452c",
    "environment": "Live"
  }'

Responses

Created

Bodyapplication/json
Array [
idstringrequired
Example:"SitecoreSearchResource"
namestringrequired
Example:"My Sitecore search resource"
typestringrequired
Example:"search"
tenantIdstringrequired
Example:"g6c3b17d-1816-40ef-bbf3-ae670311452c"
propertiesArray of objectsrequired
]
Response
[ { "id": "SitecoreSearchResource", "name": "My Sitecore search resource", "type": "search", "tenantId": "g6c3b17d-1816-40ef-bbf3-ae670311452c", "properties": [ … ] } ]