# 5.1-Feedback Operation Openapi

## 1. Overview

* **Interface name**: Like the interface
* **Version number**: v1.0.0

## 2. Information

* **Request method**: POST
* **Request URL**: https\://*DOMAIN*/openapi/v1/conversation/feedback\_operation/
* **Domain**: *Refer to "Service address description"*

## 3. Request parameters

Request header http header field:

| Parameter name        | Type   | Required | Description             |
| --------------------- | ------ | -------- | ----------------------- |
| Content-Type          | string | Yes      | Fixed`application/json` |
| cybertron-robot-key   | string | Yes      | Robot key               |
| cybertron-robot-token | string | Yes      | Robot token             |

Request body field:

| Parameter name | Type   | Required | Description                                         |
| -------------- | ------ | -------- | --------------------------------------------------- |
| user\_code     | string | Yes      | User account                                        |
| message\_id    | string | Yes      | Message id, id field returned in the dialog message |
| feedback       | int    | Yes      | Feedback 1: Like 2: Don't like                      |

## 4. Response field description

HTTP status code: 200 OK

Response field description:

| Field Name | Type   | Description                          |
| ---------- | ------ | ------------------------------------ |
| code       | string | "000000" is normal, other exceptions |
| message    | string | Status description                   |
| data       | object | message body                         |

## 5. Example

Request Example:

```bash
curl 'https://_DOMAIN_/openapi/v1/conversation/feedback_operation/' \
-H 'Content-Type: application/json' \
-H 'cybertron-robot-key: l8ia2IOc************Z724%2BU%3D' \
-H 'cybertron-robot-token: MTc0Mzk5************************************************cGRCUTg9' \
-X POST -d '{
    "user_code": "cybertron-ws-test1",
    "message_id": "123",
    "feedback": 2
}'
```

Response example:

```json
{
    "code": "000000",
    "message": "ok",
    "data": null
}
```
