Skip to main content
PUT
/
comments
/
{id}
Update comment by ID
curl --request PUT \
  --url https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/comments/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "text": "some string",
  "commentable_id": 1,
  "commentable_type": "customer"
}
'
import requests

url = "https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/comments/{id}"

payload = {
"text": "some string",
"commentable_id": 1,
"commentable_type": "customer"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}

response = requests.put(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({text: 'some string', commentable_id: 1, commentable_type: 'customer'})
};

fetch('https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/comments/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));

Authorizations

x-api-key
string
header
required

Path Parameters

id
string
required

Body

application/json

The body is of type object.

Response

200 - application/json

Successful response