provider Synthetics PATCH
/api/v2/synthetics/variables/{variable_id}/jsonpatch @utdk/datadog
/api/v2/synthetics/variables/{variable_id}/jsonpatch Patch a global variable
Patch a global variable using JSON Patch (RFC 6902).
This endpoint allows partial updates to a global variable by specifying only the fields to modify.
Common operations include:
- Replace field values: `{"op": "replace", "path": "/name", "value": "new_name"}`
- Update nested values: `{"op": "replace", "path": "/value/value", "value": "new_value"}`
- Add/update tags: `{"op": "add", "path": "/tags/-", "value": "new_tag"}`
- Remove fields: `{"op": "remove", "path": "/description"}`
- variable_id path required
- The ID of the global variable.
- string
Try it
Authentication
Configure credentials for Datadog API V2 Collection
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import datadog from '@utdk/datadog';
await datadog.patchglobalvariable()