---
updatedAt: 2025-04-15T10:51:53.000Z
agentTools:
  projectIndex: https://docs.umbrellacost.io/llms.txt
---

# Set user status

Set the user status according to the action in the request

### Exclude Parameters

| Name         | Located in | Description                                                                                 | Required    | Type        |
| :----------- | :--------- | :------------------------------------------------------------------------------------------ | :---------- | :---------- |
| actionParams | body       | Additional information in case the action is "exclude"                                      | Conditional | object      |
| data         | body       | Additional information within actionParams                                                  | Conditional | object      |
| comment      | body       | when the action is "exclude" - add a comment to explain it                                  | Conditional | String      |
| until        | body       | when the action is "exclude" - set the until date field. Example: 2025-03-30T11:23:56+03:00 | Conditional | data string |

<br />

### labels Parameters

| Name          | Located in | Description                                                                     | Required    | Type   |
| :------------ | :--------- | :------------------------------------------------------------------------------ | :---------- | :----- |
| actionParams  | body       | Additional information in case the action is "label"                            | Conditional | object |
| data          | body       | Additional information within actionParams                                      | Conditional | object |
| label\_add    | body       | Comma separated list of labels to add to the recommendation                     | Conditional | String |
| label\_delete | body       | Comma separated list of labels to remove from the recommendation, if they exist | Conditional | String |

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Cost & Usage",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.umbrellacost.io"
    }
  ],
  "x-readme": {
    "explorer-enabled": false
  },
  "paths": {
    "/api/v2/recommendationsNew/user-action": {
      "post": {
        "description": "Set the user status according to the action in the request",
        "summary": "Set recommendation history types",
        "tags": [
          "Recommendations"
        ],
        "operationId": "get_apiv2recommendationsNewuser-action",
        "responses": {
          "200": {
            "description": ""
          }
        },
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "description": "",
            "schema": {
              "type": "string",
              "default": ""
            }
          },
          {
            "name": "apikey",
            "in": "header",
            "required": true,
            "description": "",
            "schema": {
              "type": "string",
              "default": ""
            }
          }
        ],
        "x-readme": {
          "code-samples": [
            {
              "code": "curl --location --request POST 'https://api.umbrellacost.io/api/v2/recommendationsNew/user-action' \\\n--header 'apikey: {{account-api-key}}' \\\n--header 'Authorization: {{bearer-token}}' \\\n--header 'commonParams: {\"isPpApplied\":false}'\\\n--data '{\n    \"action\" : \"done\",\n    \"recId\" : \"{recommendationId}\"\n}'",
              "language": "shell",
              "name": "Example: Mark recommendation as done"
            },
            {
              "code": "curl --location --request POST 'https://api.umbrellacost.io/api/v2/recommendationsNew/user-action' \\\n--header 'apikey: {{account-api-key}}' \\\n--header 'Authorization: {{bearer-token}}' \\\n--header 'commonParams: {\"isPpApplied\":false}'\\\n--data '{\n    \"action\" : \"exclude\",\n    \"recId\" : \"{recommendationId}\",\n    \"actionParams\" : {\n        \"data\" : {\n            \"comment\" : “Your comment here”, \n            \"until\" : “2025-03-30T11:23:56+03:00”\n        }\n    }\n}'",
              "language": "shell",
              "name": "Example: Exclude recommendation"
            },
            {
              "code": "curl --location --request POST 'https://api.umbrellacost.io/api/v2/recommendationsNew/user-action' \\\n--header 'apikey: {{account-api-key}}' \\\n--header 'Authorization: {{bearer-token}}' \\\n--header 'commonParams: {\"isPpApplied\":false}'\\\n--data '{\n    \"action\" : \"exclude\",\n    \"recId\" : \"{recommendationId}\",\n    \"actionParams\" : {\n        \"data\" : {\n            \"label_add\" : “label 1, label 2, label 3”, \n            \"label_delete\" : “label a, label b”\n        }\n    }\n}'",
              "language": "shell",
              "name": "Example: Add and Remove labels from recommendation"
            }
          ],
          "samples-languages": [
            "shell"
          ]
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "action": {
                    "type": "string",
                    "description": "Values: - done / undone - exclude / include - star / unstar - label",
                    "x-readme-id": "0.0"
                  },
                  "recId": {
                    "type": "string",
                    "description": "Recommendation Id to be updated with the relevant action\t",
                    "x-readme-id": "0.1"
                  }
                },
                "type": "object",
                "required": [
                  "action",
                  "recId"
                ]
              }
            }
          }
        }
      }
    }
  }
}
```