LLM Observability

Create or update a patterns configuration

Create a new patterns configuration, or update an existing one when a configuration ID is provided.

put/api/v2/llm-obs/v1/topic-discovery-configs

Request

  • Base URL
    https://api.datadoghq.com
  • URL
    https://api.datadoghq.com/api/v2/llm-obs/v1/topic-discovery-configs
  • Auth
    API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY

Request body

Example request

{
  "data": {
    "attributes": {
      "account_id": "1000000001",
      "config_id": "a7c8d9e0-1234-5678-9abc-def012345678",
      "evp_query": "@ml_app:support-bot",
      "hierarchy_depth": 2,
      "integration_provider": "openai",
      "model_name": "gpt-4o",
      "name": "Support chatbot topics",
      "num_records": 1000,
      "sampling_ratio": 0.1
    },
    "type": "topic_discovery_configs"
  }
}

Response

OK

Example response

{
  "data": {
    "attributes": {
      "account_id": "1000000001",
      "created_at": "2024-01-15T10:30:00Z",
      "evp_query": "@ml_app:support-bot",
      "hierarchy_depth": 2,
      "integration_provider": "openai",
      "model_name": "gpt-4o",
      "name": "Support chatbot topics",
      "num_records": 1000,
      "sampling_ratio": 0.1,
      "updated_at": "2024-01-15T10:30:00Z"
    },
    "id": "a7c8d9e0-1234-5678-9abc-def012345678",
    "type": "topic_discovery_configs"
  }
}

Changes

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