POSTapi.synup.com/api/v4/locations/reviews/respond/edit
Edit Response for Interaction
Edit the existing response provided any Interaction
Requires an API key. Send it as
Authorization: API <your-key> — see Getting started.Parameters
Body
| Name | Type | Required | Description |
|---|---|---|---|
reviewId | string | required | ID of the interaction |
responseContent | string | required | Response text content |
responseId | string | required | Response ID |
Request
Request
curl -X POST 'https://api.synup.com/api/v4/locations/reviews/respond/edit' \
-H 'Authorization: API YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"reviewId": "2090753a-ece6-4837-8336-8494ad308523",
"responseContent": "This is a edited sample response",
"responseId": "2090753a-ece6-4837-8336-8494ad308523"
}'const res = await fetch('https://api.synup.com/api/v4/locations/reviews/respond/edit', {
method: 'POST',
headers: {
Authorization: 'API YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"reviewId": "2090753a-ece6-4837-8336-8494ad308523",
"responseContent": "This is a edited sample response",
"responseId": "2090753a-ece6-4837-8336-8494ad308523"
}),
});
const data = await res.json();import requests
res = requests.post(
"https://api.synup.com/api/v4/locations/reviews/respond/edit",
headers={
"Authorization": "API YOUR_API_KEY",
"Content-Type": "application/json",
},
json={
"reviewId": "2090753a-ece6-4837-8336-8494ad308523",
"responseContent": "This is a edited sample response",
"responseId": "2090753a-ece6-4837-8336-8494ad308523"
},
)
data = res.json()req, _ := http.NewRequest("POST", "https://api.synup.com/api/v4/locations/reviews/respond/edit", bytes.NewBufferString(payload))
req.Header.Set("Authorization", "API YOUR_API_KEY")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)Responses
| Status | Description |
|---|---|
200 | Response successfully posted |
Example response
{
"data": {
"editResponse": {
"status": "true",
"reviewId": "2090753a-ece6-4837-8336-8494ad308523",
"responseId": "2090753a-ece6-4837-8336-8494ad308524"
}
}
}Response body
| Name | Type | Required | Description |
|---|---|---|---|
data | object | optional | |
data.editResponse | object | optional | |
data.editResponse.status | boolean | optional | |
data.editResponse.reviewId | string | required | |
data.editResponse.responseId | string | required |