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
- https://edge-platform-context-api.sitecorecloud.iohttps://edge-platform-context-api.sitecorecloud.io/api/context/user/v1/contexts/{sitecoreContextId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
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"
}'Successful operation
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" }