# Save a market review

`POST https://api.cryptohopper.com/v1/market/savereview`

Part of [Marketplace](https://www.cryptohopper.com/api-documentation/api-reference/marketplace.md) in the Cryptohopper API reference.

Meant to post a review for a marketplace item given in the body.

OAuth scope: `read`, `manage`

In the current code this request is always rejected with a 400 error "Incorrect market item type.": the handler passes an item type variable that is never set. The marketplace_item_type field is read but not used.

## Headers

| Name | Type | Required | Description |
|---|---|---|---|
| `access-token` | string | yes | The OAuth access token of the user. |

## Request body

| Field | Type | Required | Description |
|---|---|---|---|
| `marketplace_item_id` | number | yes | Minimum 0. |
| `market_item_type` | string | yes | One of: signal, strategy, template. |
| `review_name` | string | yes |  |
| `review` | string | yes |  |
| `reply_to` | number | yes | Minimum 0. |
| `rating` | number | yes | Minimum 0. |

## Example request

```bash
curl -X POST "https://api.cryptohopper.com/v1/market/savereview" \
  -H "access-token: YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"marketplace_item_id":10512,"marketplace_item_type":"template","review_name":"Steady results","review":"Running it on Binance for two months without issues.","rating":4}'
```

## Response

Status codes: 200. Errors return JSON with `status`, `error` and `message`, plus a numeric `code` when the error comes from the API itself rather than the gateway.
