---
title: "POST /v1/metric/strategy/{strategyUID}"
method: POST
path: "/v1/metric/strategy/{strategyUID}"
tags: ["StrategyMetric"]
---

# POST /v1/metric/strategy/{strategyUID}

`POST /v1/metric/strategy/{strategyUID}`

## Request

- The document declares no server URL.
- Auth: none declared

## Path parameters

- `strategyUID` string, required

## Request body

- MarksmanApiV1SaveStrategyMetricRequest
  - `strategyUID` string
  - `expr` string
  - `labels` object
  - `datasourceFilter` MarksmanApiV1DatasourceFilter: DatasourceFilter scopes which datasources a strategy metric evaluates. Exclude rules apply first; include rules restrict the remaining set (OR between include dimensions).
    - `datasourceUids` string[]
    - `excludeDatasourceUids` string[]
    - `datasourceLabels` object
    - `excludeDatasourceLabels` object
  - `summary` string
  - `description` string

## Response `200`

OK

- MarksmanApiV1SaveStrategyMetricReply

## Changes

- **2026-07-17** `26ae221fccba`: 1 warning, 1 info
  - removed the request property `datasourceUIDs`
  - added the new optional request property `datasourceFilter`
- **2026-03-12** `00fc22ea8b5a`: 1 warning
  - removed the request property `status`
- **2026-02-28** `f5912329bb01`: 1 warning, 2 info
  - removed the request property `datasourceFilter`
  - added the new optional request property `datasourceUIDs`
  - added the new optional request property `status`

[Operation history](https://skmtc.dev/aide-family/apis/aide-family-marksman-api/changes/v1/metric/strategy/:strategyUID/post.md)

---

[API](https://skmtc.dev/aide-family/apis/aide-family-marksman-api.md) - [All operations](https://skmtc.dev/aide-family/apis/aide-family-marksman-api/llms.txt) - [OpenAPI document](https://skmtc.dev/aide-family/apis/aide-family-marksman-api/revisions/26ae221fccba?raw)
