Adds a new comment to a specified team resource. The request body must include the content field, with optional fields for context, page_id, or card_id.
curl --request POST \
--url https://api.superthread.com/v1/{team_id}/comments \
--header 'Content-Type: application/json' \
--data '
{
"content": "Good point!",
"schema": 1,
"card_id": "431",
"page_id": "5",
"context": "highlighted text"
}
'{
"comment": {
"id": "42",
"type": "comment",
"content": "Good point!",
"schema": 1,
"page_id": "431",
"card_id": "433",
"user_id": "u-dsu0j19",
"user": {
"user_id": "uDsu0j19",
"type": "user",
"source": {
"type": "oauth",
"client_id": "oczapier",
"import_id": "bf1b9f76-3f95-42fc-bd7f-050b2f5f4197",
"agent_id": "bf1b9f76-3f95-42fc-bd7f-050b2f5f4197",
"email_addr": "[email protected]",
"email_verified": false
}
},
"user_updated": {
"user_id": "uDsu0j19",
"type": "user",
"source": {
"type": "oauth",
"client_id": "oczapier",
"import_id": "bf1b9f76-3f95-42fc-bd7f-050b2f5f4197",
"agent_id": "bf1b9f76-3f95-42fc-bd7f-050b2f5f4197",
"email_addr": "[email protected]",
"email_verified": false
}
},
"team_id": "u-dsu0j19",
"time_created": 1608742037016,
"time_updated": 1608742037016,
"reactions": [
{
"id": "sweat_smile",
"unicode": "<string>",
"members": [
{
"user_id": "<string>",
"time_created": 1608742037016,
"variation": "<string>"
}
]
}
],
"context": "attach context to a comment",
"status": "resolved",
"participants": [
"<string>"
],
"children": {
"cursor": "dmsjqh9d8w1hdjosjaasda",
"count": 14,
"child_comments": [
{
"id": "42",
"type": "comment",
"content": "Good point!",
"schema": 1,
"page_id": "431",
"card_id": "433",
"user_id": "u-dsu0j19",
"user": {
"user_id": "uDsu0j19",
"type": "user",
"source": {
"type": "oauth",
"client_id": "oczapier",
"import_id": "bf1b9f76-3f95-42fc-bd7f-050b2f5f4197",
"agent_id": "bf1b9f76-3f95-42fc-bd7f-050b2f5f4197",
"email_addr": "[email protected]",
"email_verified": false
}
},
"user_updated": {
"user_id": "uDsu0j19",
"type": "user",
"source": {
"type": "oauth",
"client_id": "oczapier",
"import_id": "bf1b9f76-3f95-42fc-bd7f-050b2f5f4197",
"agent_id": "bf1b9f76-3f95-42fc-bd7f-050b2f5f4197",
"email_addr": "[email protected]",
"email_verified": false
}
},
"team_id": "u-dsu0j19",
"time_created": 1608742037016,
"time_updated": 1608742037016,
"reactions": [
{
"id": "sweat_smile",
"unicode": "<string>",
"members": [
{
"user_id": "<string>",
"time_created": 1608742037016,
"variation": "<string>"
}
]
}
],
"parent_id": "1"
}
]
}
}
}Team ID is an alphanumerical string that identifies a Team. This is externally referred to as a "Workspace".
Comment object that needs to be created
comment created
Show child attributes
"42"
comment, child_comment 102400"Good point!"
1
"431"
"433"
"u-dsu0j19"
describes a user or robot that created or updated a resource
Show child attributes
"uDsu0j19"
user, robot, system "user"
describes the source of an actor
Show child attributes
oauth, import, email, agent "oauth"
client ID if the resource was created via oauth2 app
"oczapier"
import ID if the resource was created by an import
"bf1b9f76-3f95-42fc-bd7f-050b2f5f4197"
agent ID if the resource was created by an agent
"bf1b9f76-3f95-42fc-bd7f-050b2f5f4197"
email address if the resource was created via an email
whether the email sender was verified
false
describes a user or robot that created or updated a resource
Show child attributes
"uDsu0j19"
user, robot, system "user"
describes the source of an actor
Show child attributes
oauth, import, email, agent "oauth"
client ID if the resource was created via oauth2 app
"oczapier"
import ID if the resource was created by an import
"bf1b9f76-3f95-42fc-bd7f-050b2f5f4197"
agent ID if the resource was created by an agent
"bf1b9f76-3f95-42fc-bd7f-050b2f5f4197"
email address if the resource was created via an email
whether the email sender was verified
false
"u-dsu0j19"
unix timestamp in seconds
1608742037016
unix timestamp in seconds
1608742037016
Show child attributes
"sweat_smile"
Reaction UTF-8 unicode value
"attach context to a comment"
resolved, open, orphaned Show child attributes
"dmsjqh9d8w1hdjosjaasda"
14
Show child attributes
"42"
comment, child_comment 102400"Good point!"
1
"431"
"433"
"u-dsu0j19"
describes a user or robot that created or updated a resource
Show child attributes
"uDsu0j19"
user, robot, system "user"
describes the source of an actor
Show child attributes
oauth, import, email, agent "oauth"
client ID if the resource was created via oauth2 app
"oczapier"
import ID if the resource was created by an import
"bf1b9f76-3f95-42fc-bd7f-050b2f5f4197"
agent ID if the resource was created by an agent
"bf1b9f76-3f95-42fc-bd7f-050b2f5f4197"
email address if the resource was created via an email
whether the email sender was verified
false
describes a user or robot that created or updated a resource
Show child attributes
"uDsu0j19"
user, robot, system "user"
describes the source of an actor
Show child attributes
oauth, import, email, agent "oauth"
client ID if the resource was created via oauth2 app
"oczapier"
import ID if the resource was created by an import
"bf1b9f76-3f95-42fc-bd7f-050b2f5f4197"
agent ID if the resource was created by an agent
"bf1b9f76-3f95-42fc-bd7f-050b2f5f4197"
email address if the resource was created via an email
whether the email sender was verified
false
"u-dsu0j19"
unix timestamp in seconds
1608742037016
unix timestamp in seconds
1608742037016
Show child attributes
"sweat_smile"
Reaction UTF-8 unicode value
Show child attributes
"1"
curl --request POST \
--url https://api.superthread.com/v1/{team_id}/comments \
--header 'Content-Type: application/json' \
--data '
{
"content": "Good point!",
"schema": 1,
"card_id": "431",
"page_id": "5",
"context": "highlighted text"
}
'{
"comment": {
"id": "42",
"type": "comment",
"content": "Good point!",
"schema": 1,
"page_id": "431",
"card_id": "433",
"user_id": "u-dsu0j19",
"user": {
"user_id": "uDsu0j19",
"type": "user",
"source": {
"type": "oauth",
"client_id": "oczapier",
"import_id": "bf1b9f76-3f95-42fc-bd7f-050b2f5f4197",
"agent_id": "bf1b9f76-3f95-42fc-bd7f-050b2f5f4197",
"email_addr": "[email protected]",
"email_verified": false
}
},
"user_updated": {
"user_id": "uDsu0j19",
"type": "user",
"source": {
"type": "oauth",
"client_id": "oczapier",
"import_id": "bf1b9f76-3f95-42fc-bd7f-050b2f5f4197",
"agent_id": "bf1b9f76-3f95-42fc-bd7f-050b2f5f4197",
"email_addr": "[email protected]",
"email_verified": false
}
},
"team_id": "u-dsu0j19",
"time_created": 1608742037016,
"time_updated": 1608742037016,
"reactions": [
{
"id": "sweat_smile",
"unicode": "<string>",
"members": [
{
"user_id": "<string>",
"time_created": 1608742037016,
"variation": "<string>"
}
]
}
],
"context": "attach context to a comment",
"status": "resolved",
"participants": [
"<string>"
],
"children": {
"cursor": "dmsjqh9d8w1hdjosjaasda",
"count": 14,
"child_comments": [
{
"id": "42",
"type": "comment",
"content": "Good point!",
"schema": 1,
"page_id": "431",
"card_id": "433",
"user_id": "u-dsu0j19",
"user": {
"user_id": "uDsu0j19",
"type": "user",
"source": {
"type": "oauth",
"client_id": "oczapier",
"import_id": "bf1b9f76-3f95-42fc-bd7f-050b2f5f4197",
"agent_id": "bf1b9f76-3f95-42fc-bd7f-050b2f5f4197",
"email_addr": "[email protected]",
"email_verified": false
}
},
"user_updated": {
"user_id": "uDsu0j19",
"type": "user",
"source": {
"type": "oauth",
"client_id": "oczapier",
"import_id": "bf1b9f76-3f95-42fc-bd7f-050b2f5f4197",
"agent_id": "bf1b9f76-3f95-42fc-bd7f-050b2f5f4197",
"email_addr": "[email protected]",
"email_verified": false
}
},
"team_id": "u-dsu0j19",
"time_created": 1608742037016,
"time_updated": 1608742037016,
"reactions": [
{
"id": "sweat_smile",
"unicode": "<string>",
"members": [
{
"user_id": "<string>",
"time_created": 1608742037016,
"variation": "<string>"
}
]
}
],
"parent_id": "1"
}
]
}
}
}