Create or replace configuration variables for a given scope. If no scopeType/scopeId is provided, sets company-level variables. Every variable created, updated or deleted is recorded in the audit log under the acting user: the token's subject (the client id of a service account), or when that is blank, the X-Hy-Meta-User-Id header.
Security
OAuth2(Required scopes: context-vars.write)
Hypatos user id of the acting user, recorded as the audit log actor and stored as the scope's created_by/updated_by so both agree. The token's subject takes precedence, so with a service account token the client id is recorded and this header is read only when the subject is blank. It in turn takes precedence over the body's deprecated updatedBy.
- API EUhttps://api.cloud.hypatos.ai/v2/context-vars/configurations
- API UShttps://api.cloud.hypatos.com/v2/context-vars/configurations
- Mock serverhttps://hypatos.redocly.app/_mock/openapi/context-vars/configurations
curl -i -X PUT \
https://api.cloud.hypatos.ai/v2/context-vars/configurations \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'X-Hy-Meta-Internal-Company-Id: string' \
-H 'X-Hy-Meta-User-Id: string' \
-d '{
"variables": [
{
"name": "emailSender",
"value": "noreply",
"description": "Default email sender address"
},
{
"name": "notifyEnabled",
"value": "true",
"description": "Toggle system notifications"
}
]
}'Response
{ "scopeType": "PROJECT", "scopeId": "string", "variables": [ { … } ] }