---
title: "Set recommendation history types"
method: POST
path: "/api/v2/recommendationsNew/user-action"
tags: ["Recommendations"]
---

# Set recommendation history types

`POST /api/v2/recommendationsNew/user-action`

## Request

- Base URL: `https://api.umbrellacost.io`
- URL: `https://api.umbrellacost.io/api/v2/recommendationsNew/user-action`
- Auth: none declared. Required headers: `Authorization`, `apikey`

Set the user status according to the action in the request

## Headers

- `Authorization` string, required
- `apikey` string, required

## Request body

- object
  - `action` string, required: Values: - done / undone - exclude / include - star / unstar - label
  - `recId` string, required: Recommendation Id to be updated with the relevant action

## Response `200`

---

[API](https://skmtc.dev/umbrellacost/apis/cost-usage.md) - [All operations](https://skmtc.dev/umbrellacost/apis/cost-usage/llms.txt) - [OpenAPI document](https://skmtc.dev/umbrellacost/apis/cost-usage/revisions/c5ae311d18ae?raw)
