Comments API

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

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjYyLCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzkyNjE5ODAyfQ.9zZnuvTdX4LLGoYA8z695Pkfy0JcKidjV_PWjsaMy40
Host: example.org
Cookie: 

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

x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/vnd.api+json
location: http://example.org/api/rest/admin/comments/4
vary: Accept
etag: W/"d45286ce8f4870ebded1c758dfec1f60"
cache-control: max-age=0, private, must-revalidate
x-request-id: 79acaf5b-35fb-4ee1-a2af-8d4b552bf793
x-runtime: 0.015709
content-length: 271

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"
    }
  }
}