Pisano External API - Feedback - Create a New Feedback
Create a new Feedback
Create a new Feedback
POST
/external/v1/feedbacks Request
Headers
| Header | Required | Description | Example |
|---|---|---|---|
Accept |
application/json |
Request Body
{
"node_id": "cf49427b-f5c2-4125-b047-3507f3cd7b49",
"flow_id": "b1917993-0fea-4b23-8442-a64430ae38a9",
"language_id": "6daa1c22-3ee5-43af-9b2a-630dda4bfc4e",
"created_at": 1661366320854,
"customer": {
"name": "string",
"phone_number": "+905333334455",
"email": "john@email.com",
"external_id": "12345"
},
"responses": [
{
"question_key": "question_1",
"body": "test"
},
{
"question_key": "question_1",
"option_key": "option_1"
}
]
}
Request Body Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
node_id |
cf49427b-f5c2-4125-b047-3507f3cd7b49 |
|||
flow_id |
b1917993-0fea-4b23-8442-a64430ae38a9 |
|||
language_id |
6daa1c22-3ee5-43af-9b2a-630dda4bfc4e |
|||
created_at |
1661366320854 |
|||
customer.name |
string |
|||
customer.phone_number |
+905333334455 |
|||
customer.email |
john@email.com |
|||
customer.external_id |
12345 |
|||
responses[].question_key |
question_1 |
|||
responses[].body |
test |
|||
responses[].option_key |
option_1 |
Responses
201
Feedback Created
Response Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
id |
b1917993-0fea-4b23-8442-a64430ae38a9 |
Response Example
JSON
Response Example
{
"id": "b1917993-0fea-4b23-8442-a64430ae38a9"
}
400
error payload
- Error Code
13028- Error Message
- Invalid parameters
401
Error: Unauthorized
- Error Code
13001- Error Message
- Wrong authentication token
{"error_message":"Wrong authentication token","data":"Wrong authentication token","code":13001,"errors":null}
404
error payload
- Error Code
13002- Error Message
- Requested resource not found!
{"error_message":"Requested resource not found!","data":"Requested resource not found!","code":13002,"errors":{"question_id":null}}