Manage Sampling Rules

Update or create a sampling rule by origin or ID

Updates an existing sampling rule or creates a new one if it doesn't exist. Useful for Infrastructure-as-Code workflows.

put/api/sampling-rules/{originOrId}

Request

  • Base URL: https://api.eu-west-1.aws.dash0.com
  • URL: https://api.eu-west-1.aws.dash0.com/api/sampling-rules/{originOrId}
  • Auth: none declared

Path parameters

originOrIdstring required

Sampling rule origin or UUID

Query parameters

datasetstring

Optional dataset to query across. Defaults to whatever is configured to be the default dataset for the organization.

Request body

kind'Dash0Sampling' required

Response

The updated or created sampling rule

kind'Dash0Sampling' required

Changes

No recorded changes to this operation across all 1 revision of this API.