Create a comment on a portout request
POST/portouts/:id/comments
Creates a comment on a portout request.
Request
Path Parameters
id uuidrequired
Portout id
- application/json
Body
required
body string
Comment to post on this portout request
Responses
201: Portout Comment Response
- application/json
401: Unauthorized
404: Resource not found
422: Unprocessable entity. Check message field in response for details.
Request samples
curl -L 'https://api.telnyx.com/v2/portouts/:id/comments' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"body": "string"
}'
Response samples
{
"data": {
"id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
"record_type": "portout",
"body": "This is a comment",
"portout_id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
"user_id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
"created_at": "2018-02-02T22:25:27.521Z"
}
}