Skip to main content
POST
/
api
/
v1
/
config
/
trace-behavior-config
cURL
curl --request POST \
  --url https://tenant.chronosphere.io/api/v1/config/trace-behavior-config \
  --header 'API-Token: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "dry_run": true,
  "trace_behavior_config": {
    "baseline_behavior_slug": "<string>",
    "dataset_priorities": [
      "<string>"
    ],
    "main_behavior_assignments": [
      {
        "behavior_slug": "<string>",
        "created_at": "2023-11-07T05:31:56Z",
        "created_by": "<string>",
        "dataset_slug": "<string>",
        "description": "<string>",
        "updated_at": "2023-11-07T05:31:56Z"
      }
    ],
    "override_behavior_assignments": [
      {
        "behavior_slug": "<string>",
        "created_at": "2023-11-07T05:31:56Z",
        "created_by": "<string>",
        "dataset_slug": "<string>",
        "description": "<string>",
        "end_time": "2023-11-07T05:31:56Z",
        "start_time": "2023-11-07T05:31:56Z",
        "updated_at": "2023-11-07T05:31:56Z"
      }
    ],
    "preview_behavior_assignments": [
      {
        "behavior_slug": "<string>",
        "created_at": "2023-11-07T05:31:56Z",
        "created_by": "<string>",
        "dataset_slug": "<string>",
        "description": "<string>",
        "end_time": "2023-11-07T05:31:56Z",
        "start_time": "2023-11-07T05:31:56Z",
        "updated_at": "2023-11-07T05:31:56Z"
      }
    ]
  }
}
'
{
  "trace_behavior_config": {
    "baseline_behavior_slug": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "dataset_priorities": [
      "<string>"
    ],
    "main_behavior_assignments": [
      {
        "behavior_slug": "<string>",
        "created_at": "2023-11-07T05:31:56Z",
        "created_by": "<string>",
        "dataset_slug": "<string>",
        "description": "<string>",
        "updated_at": "2023-11-07T05:31:56Z"
      }
    ],
    "override_behavior_assignments": [
      {
        "behavior_slug": "<string>",
        "created_at": "2023-11-07T05:31:56Z",
        "created_by": "<string>",
        "dataset_slug": "<string>",
        "description": "<string>",
        "end_time": "2023-11-07T05:31:56Z",
        "start_time": "2023-11-07T05:31:56Z",
        "updated_at": "2023-11-07T05:31:56Z"
      }
    ],
    "preview_behavior_assignments": [
      {
        "behavior_slug": "<string>",
        "created_at": "2023-11-07T05:31:56Z",
        "created_by": "<string>",
        "dataset_slug": "<string>",
        "description": "<string>",
        "end_time": "2023-11-07T05:31:56Z",
        "start_time": "2023-11-07T05:31:56Z",
        "updated_at": "2023-11-07T05:31:56Z"
      }
    ],
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

API-Token
string
header
required

Chronosphere API token

Body

application/json
dry_run
boolean

If true, validates the specified configuration without creating the TraceBehaviorConfig. If the specified configuration is valid, the endpoint returns a partial response without the TraceBehaviorConfig. If the specified configuration is invalid, the endpoint returns an error.

trace_behavior_config
object

The TraceBehaviorConfig to create.

Response

A successful response containing the created TraceBehaviorConfig.

trace_behavior_config
object

TraceBehaviorConfig is a singleton configuration object that specifies the configuration for trace behaviors.