- General
- Endpoints
Create New Comment
POST
/collection/{collection_id}/comment
Comment
For integrations that are not user specific, customers are advised to create a separate user specifically for this integration.
Request
Path Params
collection_id
string
required
Query Params
show
string
optional
Example:
id,updated_at
hide
string
optional
Example:
created_at,updated_at
Header Params
x-api-key
string
required
Default:
{{api_key}}
x-api-env
string
required
Default:
{{api_env}}
Body Params application/json
text
string
optional
user_mentions
array [object {7}]
optional
id
string <uuid>
required
user_id
string <uuid>
required
name
string
required
tag
string
required
indices
array[integer]
required
created_at
string <date-time>
required
updated_at
string <date-time>
required
collection_id
string <uuid>
required
user_id
string <uuid>
required
Example
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.vplan.com/v1/collection//comment' \
--header 'x-api-key;' \
--header 'x-api-env;' \
--header 'Content-Type: application/json' \
--data-raw ''
Responses
🟢201Created
application/json
Body
id
string <uuid>
read-onlyoptional
text
string
optional
user_mentions
array [object {7}]
optional
id
string <uuid>
required
user_id
string <uuid>
required
name
string
required
tag
string
required
indices
array[integer]
required
created_at
string <date-time>
required
updated_at
string <date-time>
required
collection_id
string <uuid>
required
user_id
string <uuid>
required
created_at
string <date-time>
read-onlyoptional
Example:
2024-04-11T10:22:15Z
updated_at
string <date-time>
read-onlyoptional
Example:
2024-04-11T10:22:15Z
Example
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"text": "string",
"user_mentions": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
"name": "string",
"tag": "string",
"indices": [
0
],
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
],
"collection_id": "4bdef85c-3f50-4006-a713-2350da665f80",
"user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
"created_at": "2024-04-11T10:22:15Z",
"updated_at": "2024-04-11T10:22:15Z"
}
🟠412412
🟠422Unprocessable Content
🟠404Not Found
🟠401Not Logged In
Modified at 2024-10-14 12:07:08