Analytics detail query wrapupcode null even with correct groupby?

Does anyone know why wrapupcode is coming back as null in the analytics detail query response? i’m trying to pull detailed interaction data for a specific queue and the documentation says wrapupcode should be available if included in the groupBy array. but every record returns null for that field.

here is the request body i’m sending to POST /api/v2/analytics/details/interactions/query

{
 "groupBy": ["wrapupcode", "routingQueue.name"],
 "interval": "P7D",
 "metrics": ["handleTime", "talkTime"],
 "view": "interaction",
 "dateFrom": "2024-01-01T00:00:00.000Z",
 "dateTo": "2024-01-08T00:00:00.000Z",
 "select": ["wrapupcode.name", "wrapupcode.description", "routingQueue.id"]
}

the response structure looks valid but the data is missing. i’ve tried removing the routingQueue from groupBy to isolate the issue but wrapupcode is still null. i’ve also verified that the interactions in that time frame definitely have wrap-up codes assigned in the UI.

is this a known limitation of the detail query endpoint where wrapupcode requires a specific metric to be present? i see some forum posts mentioning that certain attributes are only populated in aggregate queries but the docs for details imply otherwise.

i’m using the python SDK wrapper but the underlying JSON is identical to curl. the HTTP status is 200 so no validation error.

response = client.analytics_api.post_analytics_details_interactions_query(body=payload)
# response body shows wrapupcode: null for all entities

anyone else hit this wall? feels like the API is ignoring the wrapupcode groupBy clause entirely or the view type ‘interaction’ doesn’t support it. trying to avoid switching to aggregate if i can because i need individual record granularity.