Skip to content

Create Comment Tier 4

POST/api/versions/:id/commentsCopied!

Creates a comment or a reply to an existing comment.

Request

Path

idstringrequired
Version ID

Body

contentstringrequired

1–1000 characters

Comment text
parentIdstring
ID of the parent comment

WARNING

Replies to replies are not allowed. parentId must point to a top-level comment.

Response

Returns 201 Created.

dataobject
Created comment
data.idstring
ID of the created comment

Example: 2fb4e60b-0d9a-46f3-a4dc-cb9fe8ad9be6

Example

bash
curl -X POST 'https://api.youvico.com/api/versions/8fe89e5a-1d8f-4302-8437-fb0390ecf8eb/comments' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{ "content": "Please tighten the logo safe area." }'
json
{
  "data": {
    "id": "2fb4e60b-0d9a-46f3-a4dc-cb9fe8ad9be6"
  }
}