---
title: "Close a recommendation"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.cloudraker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Close a recommendation

Path: CloudRaker Workspace API › My assistant

`POST /me/assistant/home/close`

## Authentication

- `bearerAuth`, http, header `Authorization`

## Request body

_Required._

- `issueKey` (`closeMyAssistantRecommendation.issueKey`; string, required)
  - minLength 1; maxLength 256; pattern `^[^\s<>]+$`
- `reason` (`closeMyAssistantRecommendation.reason`; string, required)
  - one of `"handled"`, `"not_relevant"`, `"less_like_this"`, `"accepted"`

## Example request

```json
{
  "issueKey": "string",
  "reason": "handled"
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url https://api.cloudraker.com/me/assistant/home/close \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "issueKey": "string",
  "reason": "handled"
}
'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/me/assistant/home/close';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({issueKey: 'string', reason: 'handled'})
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/me/assistant/home/close"

payload = {
    "issueKey": "string",
    "reason": "handled"
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 204

Close a recommendation

### 400

Validation Error

#### Example

```json
{
  "success": false,
  "error": [
    null
  ],
  "data": null
}
```

- `success` (`closeMyAssistantRecommendation.response.400.success`; boolean, required)
  - one of `false`
- `error` (`closeMyAssistantRecommendation.response.400.error`; array<unknown>, required)
- `data` (`closeMyAssistantRecommendation.response.400.data`; unknown, required)

### 403

An active personal account is required.

### 404

`issue_not_found`.

#### Example

```json
{
  "error": "string",
  "error_code": "string",
  "issues": [
    {
      "path": "string",
      "code": "string",
      "message": "string"
    }
  ]
}
```

- `error` (`closeMyAssistantRecommendation.response.404.error`; string, required) — The sentence a human reads.
- `error_code` (`closeMyAssistantRecommendation.response.404.error_code`; string, required) — The stable snake_case branch key.
- `issues` (`closeMyAssistantRecommendation.response.404.issues`; array<object>, optional) — Per-field detail, present only on a validation failure.
  - `path` (`closeMyAssistantRecommendation.response.404.issues.path`; string, required)
  - `code` (`closeMyAssistantRecommendation.response.404.issues.code`; string, required)
  - `message` (`closeMyAssistantRecommendation.response.404.issues.message`; string, required)


Source: https://docs.cloudraker.com/workspace/api/my-assistant/close-my-assistant-recommendation/index.md
