A 400 Bad Request error occurs when attempting to modify a metric objective via PUT /api/v2/gamification/profiles/{profileId}/metrics/{metricId}. This is preventing the update of performance targets for the current agent engagement cycle.
The objective is to align these metrics with new HR KPIs to maintain agent motivation across the leaderboard. Current configurations in the admin UI appear correct, but the API call fails to commit the changes.
{
"metricId": "metric-123-abc",
"objective": 15.5,
"metricDefinitionId": "def-456-xyz"
}
Our team tried to resolve this by deleting the metric and recreating it using POST /api/v2/gamification/profiles/{profileId}/metrics. This workaround allows the metric to reappear, but it resets the historical data for the agents, which negatively impacts the contest standings.
The issue persists across different profiles in the production environment. The response body for the PUT request doesn’t provide a specific reason for the validation failure.