Skip to content

Create Project Comment Tier 4

POST/api/projects/:id/commentsCopied!

Creates a project comment or a reply to an existing project comment.

Example

ts
const comment = await client.comments.createForProject("bdbff5de-96d7-468f-9db0-85fe28bd6b62", {
  content: "Project brief is ready for review.",
});
bash
youvico comment create \
  --project bdbff5de-96d7-468f-9db0-85fe28bd6b62 \
  --content "Project brief is ready for review."
bash
curl -X POST 'https://api.youvico.com/api/projects/bdbff5de-96d7-468f-9db0-85fe28bd6b62/comments' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{ "content": "Project brief is ready for review." }'
json
{
  "data": {
    "id": "2fb4e60b-0d9a-46f3-a4dc-cb9fe8ad9be6"
  }
}

Request

Path

idstringrequired
Project ID

Body

contentstring

Maximum 1000 characters

Comment text
parentobject
Parent comment object
parent.idstringrequired
Parent comment ID

Example: 0efee6f8-5829-41c9-bb4d-90dd7e72cc58

attachmentsarray

1-10 items

Uploaded project comment attachments to attach to the comment
attachments[].idstringrequired
Comment attachment ID

Example: CA1234567890ABCD

INFO

Provide at least one of content or attachments.

INFO

Each attachment ID must be unique and refer to a completed, unattached upload started by the same user for this project.

WARNING

Replies to replies are not allowed. parent.id must point to a top-level project comment.

Response

Returns 201 Created.

dataobject
Created comment
data.idstring
ID of the created comment

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