Create a response
This endpoint creates a response.
Request
POST https://api.nicereply.com/responses
Request body
Field Name | Data Type | Is Nullable | Description |
---|---|---|---|
survey_id | Survey ID | No | |
feedback_object_id | Feedback Object ID | No | |
customer_id | Customer ID | Yes | |
ticket_id | String | Yes | |
from | String | Yes | |
ip_address | String | Yes | |
answers | Array of Answer objects | No |
Answer object
Field Name | Data Type | Is Nullable |
---|---|---|
question_id | Question ID | No |
scale | Scale Object | Yes |
open_ended | Open Ended Object | Yes |
Scale object
Field Name | Data Type | Is Nullable | Description |
---|---|---|---|
value | Integer | No | Score |
Open Ended object
Field Name | Data Type | Is Nullable |
---|---|---|
value | String | No |
Example body
{
"survey_id": "9df60603-9453-41a2-a938-436fd603820d",
"feedback_object_id": "4f4d2bc5-a75f-4c42-b240-7f4a70da9a0b",
"customer_id": "09c58845-b8e9-4aa5-8ca8-0ca2a7caaebb",
"ticket_id": "some_ticket_id",
"from": "John Doe",
"ip_address": "10.76.23.211",
"answers": [
{
"question_id": "dedff21d-c4a7-431d-b734-c8a5ad15985f",
"scale": {
"value": 5
},
"open_ended": null
}
]
}
Example response
200 OK
{
"data": {
"id": "bc4284a0-23fe-4d6e-92f8-323d50de8690",
"feedback_object_id": "4f4d2bc5-a75f-4c42-b240-7f4a70da9a0b",
"survey_id": "9df60603-9453-41a2-a938-436fd603820d",
"customer_id": "09c58845-b8e9-4aa5-8ca8-0ca2a7caaebb",
"from": "John Doe",
"ticket_id": "some_ticket_id",
"location": "",
"ip_address": "10.76.23.211",
"is_instant": false,
"status": "CLOSED",
"created_at": "2023-09-12T12:32:05+02:00",
"updated_at": "2023-09-26T10:16:40+02:00",
"answers": [
{
"id": "09afa565-04ad-4184-9c96-a89dfa5ad9f4",
"question_id": "dedff21d-c4a7-431d-b734-c8a5ad15985f",
"question_type": "SCALE",
"scale": {
"value": 5
},
"open_ended": null,
"created_at": "2023-09-12T12:32:05+02:00",
"updated_at": "2023-09-20T15:43:05+02:00"
},
],
"tags": []
}
}