Skip to main content
POST
/
portouts
/
{id}
/
comments
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx({
  apiKey: 'My API Key',
});

const comment = await client.portouts.comments.create('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');

console.log(comment.data);
{
  "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"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

Portout id

Body

application/json
body
string

Comment to post on this portout request

Response

Portout Comment Response

data
object
Example:
{
  "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"
}