Request

Creates a scoped context for the masterSitecoreContextId within an organization. It defines subset access through the allowedResourceIds.

Security
BearerAuth
Path
masterSitecoreContextIdstringrequired

Sitecore Context ID of the master context

Example:f9c3b17d181640efbbf3ae670311452d
Bodyapplication/json
sitecoreContextIdstring
Example:"f9c3b17d181640efbbf3ae670311452d"
namestring
Example:"Scoped context name"
allowedResourceIdsArray of strings
curl -i -X POST \
  https://edge-platform-context-api.sitecorecloud.io/api/context/user/v1/contexts/f9c3b17d181640efbbf3ae670311452d/filtered \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "sitecoreContextId": "f9c3b17d181640efbbf3ae670311452d",
    "name": "Scoped context name",
    "allowedResourceIds": [
      "sitecoreFormsResource"
    ]
  }'

Responses

Scoped context successfully created

Bodyapplication/json
sitecoreContextIdstringrequired
Example:"fcb58fa476ebcc9df896d8e8608a718b"
masterSitecoreContextIdstringrequired
Example:"5f81f0627a2e9233d71e8e84f2c0b8e2"
namestring
Example:"Scoped context name"
allowedResourceIdsArray of strings
createdAtstring
Example:"2025-09-22T01:00:00Z"
updatedAtstring
Example:"2025-09-22T01:00:00Z"
Response
{ "sitecoreContextId": "fcb58fa476ebcc9df896d8e8608a718b", "name": "Scoped context name", "masterSitecoreContextId": "5f81f0627a2e9233d71e8e84f2c0b8e2", "allowedResourceIds": [ "sitecoreFormsResource" ], "createdAt": "2025-09-22T01:00:00Z", "updatedAt": "2025-09-22T01:00:00Z" }