Security
bearerToken
The unique ID of the Asset
- Productionhttps://api-v2.dash.app/assets/{id}/comments
- Staginghttps://api-v2.dashstaging.app/assets/{id}/comments
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!"
}'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": [ { … } ] }