API

CommentThreadComment

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /api/v1/organizations/{organization_id}/artefacts/{artefact_ref}/comment_threads/{anchor}/comments create Reply added

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

created, err := client.CommentThreadComment(nil).Create(map[string]any{"artefact_id": "example", "comment_thread_id": "example", "organization_id": "example", "body": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)

Lua

Construct client as shown in the Lua setup, then call the operations:

local created, err = client:CommentThreadComment():create({ artefact_id = "example", comment_thread_id = "example", organization_id = "example", body = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$created = $client->CommentThreadComment()->create(["artefact_id" => "example", "comment_thread_id" => "example", "organization_id" => "example", "body" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

created = client.CommentThreadComment().create({ "artefact_id": "example", "comment_thread_id": "example", "organization_id": "example", "body": "example" })

Ruby

Construct client as shown in the Ruby setup, then call the operations:

created = client.CommentThreadComment.create({ "artefact_id" => "example", "comment_thread_id" => "example", "organization_id" => "example", "body" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const created = await client.CommentThreadComment().create({ artefact_id: "example", comment_thread_id: "example", organization_id: "example", body: "example" })

Fields

Field Type Required Description
body string Yes Body

create

POST /api/v1/organizations/{organization_id}/artefacts/{artefact_ref}/comment_threads/{anchor}/comments

Operation ID: post_api_v1_organizations_organization_id_artefacts_artefact_ref_comment_threads_anchor_comments.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
artefact_ref path string Yes
anchor path string Yes

Request body

application/json

Property Type Required Description
body string Yes

Responses

201: Reply added

application/json

Property Type Required Description
thread object Yes
thread.comments array of object Yes
thread.comments[].author string Yes
thread.comments[].author_id string Yes
thread.comments[].author_kind enum: person, agent Yes
thread.comments[].body string Yes
thread.comments[].created_at string (date-time) Yes
thread.comments[].id string Yes
thread.id string Yes The anchor key.
thread.quote string Yes
thread.resolved boolean Yes
404: Not found
422: Invalid comment