Skip to main content

Create a comment on a port request

POST 
/origination/porting/port_requests/:port_request_id/comments

Creates a comment on a port request.

Request

Path Parameters

    port_request_id stringrequired

    Port Request id

Body

required

Comment to post on this port request

    body stringrequired

    Body of comment

    sub_request_id string

    Id of associated sub request. Send null to post a comment on the overall port request

Responses

201: Comment Response

401: Unauthorized

422: Unprocessable entity. Check message field in response for details.

Request samples


curl -L 'https://api.telnyx.com/origination/porting/port_requests/:port_request_id/comments' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"body": "string",
"sub_request_id": "string"
}'

Response samples


{
"id": "string",
"body": "string",
"sub_request_id": "string",
"user_id": "string",
"created_at": "string"
}