Request

Update a context by specifying a sitecoreContextId. Updating a context, you update the context definition without creating a new context (for example, you can adjust the access time.

Security
BearerAuth
Path
sitecoreContextIdstringrequired

Sitecore Context ID

Example:f9c3b17d181640efbbf3ae670311452d
Bodyapplication/json
namestring
Example:"My Context"
descriptionstring
Example:"This is my context"
curl -i -X PATCH \
  https://edge-platform-context-api.sitecorecloud.io/api/context/user/v1/contexts/f9c3b17d181640efbbf3ae670311452d \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "My Context",
    "description": "This is my context"
  }'

Responses

Successful operation

Bodyapplication/json
organizationIdstringrequired
Example:"org_123ABC"
sitecoreContextIdstringrequired
Example:"f9c3b17d181640efbbf3ae670311452d"
allowTracingstringrequired
Example:"false"
typestringrequired
Example:"custom"
accountIdstringrequired
Example:"account001"
resourcesArray of items
namestring
Example:"My Context"
descriptionstring
Example:"This is my context"
createdAtstring
Example:"2025-09-22T01:00:00Z"
updatedAtstring
Example:"2025-09-22T01:00:00Z"
Response
{ "organizationId": "org_123ABC", "sitecoreContextId": "f9c3b17d181640efbbf3ae670311452d", "allowTracing": "false", "type": "custom", "accountId": "account001", "resources": [ [ … ] ], "name": "My Context", "description": "This is my context", "createdAt": "2025-09-22T01:00:00Z", "updatedAt": "2025-09-22T01:00:00Z" }