create new entry
POST /api/rest/admin/comments
Parameters
| Name |
Description |
|
data[type]
|
Resource type (comments)
|
|
data[attributes][body]
|
Body
|
|
data[attributes][resource-type]
|
Resource type
|
|
data[attributes][resource-id]
|
Resource id
|
Request
Headers
Route
POST /api/rest/admin/comments
Body
{"data":{"type":"comments","attributes":{"body":"Rate lowered after vendor renegotiation","resource-type":"Dialpeer","resource-id":"1376786"}}}
Response
Headers
Status
201 Created
Body
{
"data": {
"id": "4",
"type": "comments",
"links": {
"self": "http://example.org/api/rest/admin/comments/4"
},
"attributes": {
"body": "Rate lowered after vendor renegotiation",
"resource-type": "Dialpeer",
"resource-id": "1376786",
"author-id": 62,
"created-at": "2026-10-21T21:46:42.769Z"
}
}
}