mcp

PUT /api/v1/environments/{environment_api_key}/experiment-metrics/{id}/

(Beta) Updates a metric's properties.

Request

  • Base URL
    https://api.flagsmith.com
  • Auth
    • API key in header Authorization
    • or API key in header Authorization

Path parameters

environment_api_keystring required
idinteger required

A unique integer value identifying this metric.

Request body

idinteger
namestring required
descriptionstring
aggregation'count' | 'sum' | 'mean' | 'occurrence'
  • count - Count
  • sum - Sum
  • mean - Mean
  • occurrence - Occurrence (event happened at least once)
direction'up' | 'down' | 'informational'
  • up - Higher is better
  • down - Lower is better
  • informational - Informational only
created_atstring date-time
updated_atstring date-time

Response

idinteger
namestring required
descriptionstring
aggregation'count' | 'sum' | 'mean' | 'occurrence'
  • count - Count
  • sum - Sum
  • mean - Mean
  • occurrence - Occurrence (event happened at least once)
direction'up' | 'down' | 'informational'
  • up - Higher is better
  • down - Lower is better
  • informational - Informational only
created_atstring date-time
updated_atstring date-time

Changes

No recorded changes to this operation across all 21 revisions of this API.