Skip to content

Create a comment on an asset

Request

Create a new Comment for the specified Asset.

Security
bearerToken
Path
idstringrequired

The unique ID of the Asset

Bodyapplication/jsonrequired
contextIdstringrequired

Identifies which context this Comment should be shown in

Example:"collection/a52b5315-15b8-417f-b742-d6902108bac1"
contextTypestring

The type of context the comment is in

Enum:"APPROVAL""COLLECTION"
Example:"APPROVAL"
textstring, <= 4000 charactersrequired

The text content of the Comment

Example:"This is a comment that has been left by a user, how insightful!"
curl -i -X POST \
  'https://api-v2.dash.app/assets/{id}/comments' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "contextId": "collection/a52b5315-15b8-417f-b742-d6902108bac1",
    "contextType": "APPROVAL",
    "text": "This is a comment that has been left by a user, how insightful!"
  }'

Responses

Success

Bodyapplication/json
resultobjectrequired
permittedActionsArray of objectsrequired
Response
{ "result": { "id": "8bc23748-39e0-4dce-a48e-f71845eeeec3", "accountId": "cfb665ca-ce35-4418-b9d5-70ee815db4bd", "userId": "google-oauth2|110955770826801837334", "assetId": "7af90a8b-7ccd-430f-a85d-e8614015bc47", "contextType": "APPROVAL", "contextId": "collection/a52b5315-15b8-417f-b742-d6902108bac1", "text": "This is a comment that has been left by a user, how insightful!", "dateCreated": "2021-02-17T09:24:01.417Z" }, "permittedActions": [ {} ] }