v1

latestOpenAPI 3.0.02026-07-141,4077,1665.2 MB
Test Optimization

Update Test Optimization service settings

Partially update Test Optimization settings for a specific service identified by repository, service name, and environment. Only provided fields are updated; setting a field to null is a no-op. To reset a setting to inherit from the repository level, use the corresponding <setting>_inherit field. The pr_comments_enabled field is ignored as it cannot be overridden at the service level.

patch/api/v2/ci/test-optimization/settings/service

Request body

Example request

{
  "data": {
    "attributes": {
      "env": "prod",
      "repository_id": "github.com/datadog/shopist",
      "service_name": "shopist",
      "test_impact_analysis_enabled": true,
      "test_impact_analysis_enabled_inherit": true
    },
    "type": "test_optimization_update_service_settings_request"
  }
}

Response

OK

Example response

{
  "data": {
    "attributes": {
      "env": "prod",
      "repository_id": "github.com/datadog/shopist",
      "service_name": "shopist",
      "test_impact_analysis_enabled": true,
      "test_impact_analysis_enabled_is_overridden": true
    },
    "id": "9b8a7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d",
    "type": "test_optimization_service_settings"
  }
}