curl --request POST \
--url https://api.mudstack.com/workspaces/assets/{asset_id}/comments \
--header 'Authorization: Bearer <token>' \
--header 'x-account-id: <x-account-id>' \
--header 'x-workspace-id: <x-workspace-id>'{
"id": "<string>",
"asset_id": "<string>",
"asset_version_id": "<string>",
"user_id": "<string>",
"content": "<string>",
"mentions": [
"<string>"
],
"viewer_metadata": {},
"attachments": [
{
"id": "<string>",
"asset_id": "<string>",
"created_by_user_id": "<string>",
"file_id": "<string>",
"thumbnail_file_id": "<string>",
"review_id": "<string>",
"comment_id": "<string>",
"name": "<string>",
"description": "<string>",
"user": {
"id": "<string>",
"auth0UserID": "<string>",
"username": "<string>",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"avatar_file_id": "<string>",
"defaultAvatar": 123,
"industry": "<string>",
"occupation": "<string>",
"company": "<string>",
"emailVerified": true,
"isActive": true,
"city": "<string>",
"state": "<string>",
"country": "<string>",
"zipCode": "<string>",
"invited_by_user": "<unknown>"
}
}
],
"version": {
"id": "<string>",
"asset_id": "<string>",
"created_by_user_id": "<string>",
"thumbnail_file_id": "<string>",
"name": "<string>",
"description": "<string>",
"key": "<string>",
"size": 123,
"version_number": 123,
"sequence": 123,
"checksum": "<string>",
"commit_parent_id": "<string>",
"user": {
"id": "<string>",
"auth0UserID": "<string>",
"username": "<string>",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"avatar_file_id": "<string>",
"defaultAvatar": 123,
"industry": "<string>",
"occupation": "<string>",
"company": "<string>",
"emailVerified": true,
"isActive": true,
"city": "<string>",
"state": "<string>",
"country": "<string>",
"zipCode": "<string>",
"invited_by_user": "<unknown>"
}
},
"user": {
"id": "<string>",
"auth0UserID": "<string>",
"username": "<string>",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"avatar_file_id": "<string>",
"defaultAvatar": 123,
"industry": "<string>",
"occupation": "<string>",
"company": "<string>",
"emailVerified": true,
"isActive": true,
"city": "<string>",
"state": "<string>",
"country": "<string>",
"zipCode": "<string>",
"invited_by_user": "<unknown>"
}
}Add a new comment to a specific asset.
curl --request POST \
--url https://api.mudstack.com/workspaces/assets/{asset_id}/comments \
--header 'Authorization: Bearer <token>' \
--header 'x-account-id: <x-account-id>' \
--header 'x-workspace-id: <x-workspace-id>'{
"id": "<string>",
"asset_id": "<string>",
"asset_version_id": "<string>",
"user_id": "<string>",
"content": "<string>",
"mentions": [
"<string>"
],
"viewer_metadata": {},
"attachments": [
{
"id": "<string>",
"asset_id": "<string>",
"created_by_user_id": "<string>",
"file_id": "<string>",
"thumbnail_file_id": "<string>",
"review_id": "<string>",
"comment_id": "<string>",
"name": "<string>",
"description": "<string>",
"user": {
"id": "<string>",
"auth0UserID": "<string>",
"username": "<string>",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"avatar_file_id": "<string>",
"defaultAvatar": 123,
"industry": "<string>",
"occupation": "<string>",
"company": "<string>",
"emailVerified": true,
"isActive": true,
"city": "<string>",
"state": "<string>",
"country": "<string>",
"zipCode": "<string>",
"invited_by_user": "<unknown>"
}
}
],
"version": {
"id": "<string>",
"asset_id": "<string>",
"created_by_user_id": "<string>",
"thumbnail_file_id": "<string>",
"name": "<string>",
"description": "<string>",
"key": "<string>",
"size": 123,
"version_number": 123,
"sequence": 123,
"checksum": "<string>",
"commit_parent_id": "<string>",
"user": {
"id": "<string>",
"auth0UserID": "<string>",
"username": "<string>",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"avatar_file_id": "<string>",
"defaultAvatar": 123,
"industry": "<string>",
"occupation": "<string>",
"company": "<string>",
"emailVerified": true,
"isActive": true,
"city": "<string>",
"state": "<string>",
"country": "<string>",
"zipCode": "<string>",
"invited_by_user": "<unknown>"
}
},
"user": {
"id": "<string>",
"auth0UserID": "<string>",
"username": "<string>",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"avatar_file_id": "<string>",
"defaultAvatar": 123,
"industry": "<string>",
"occupation": "<string>",
"company": "<string>",
"emailVerified": true,
"isActive": true,
"city": "<string>",
"state": "<string>",
"country": "<string>",
"zipCode": "<string>",
"invited_by_user": "<unknown>"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The created comment
Represents a comment on an asset.
Unique identifier for the comment.
Identifier of the asset the comment is associated with.
Identifier of the asset version the comment is associated with, if any.
Identifier of the user who made the comment.
The content of the comment.
List of user identifiers mentioned in the comment.
Metadata related to the viewer.
List of attachments associated with the comment.
Show child attributes
Unique identifier for the asset attachment.
Identifier of the associated asset.
Identifier of the user who created the attachment.
Identifier of the file associated with the attachment.
Identifier of the thumbnail file associated with the attachment.
Identifier of the associated review.
Identifier of the associated comment.
Name of the attachment.
Description of the attachment.
User associated with the attachment.
Show child attributes
Unique identifier for the user
Auth0 user ID
Username of the user
Email address of the user
First name of the user
Last name of the user
File ID of the user's avatar
Default avatar identifier
Industry the user works in
Occupation of the user
Company the user works for
Whether the user's email is verified
Whether the user is active
City where the user resides
State where the user resides
Country where the user resides
Zip code of the user's location
User who invited this user
Show child attributes
The version of the asset associated with the comment.
Show child attributes
Unique identifier for the asset version
Identifier of the associated asset
Identifier of the user who created the asset version
Identifier of the thumbnail file
Name of the asset version
Description of the asset version
Key associated with the asset version
Size of the asset version
Version number of the asset
Sequence number of the asset version
Checksum of the asset version
Identifier of the parent commit, if any
User who created the asset version
Show child attributes
Unique identifier for the user
Auth0 user ID
Username of the user
Email address of the user
First name of the user
Last name of the user
File ID of the user's avatar
Default avatar identifier
Industry the user works in
Occupation of the user
Company the user works for
Whether the user's email is verified
Whether the user is active
City where the user resides
State where the user resides
Country where the user resides
Zip code of the user's location
User who invited this user
Show child attributes
The user who made the comment.
Show child attributes
Unique identifier for the user
Auth0 user ID
Username of the user
Email address of the user
First name of the user
Last name of the user
File ID of the user's avatar
Default avatar identifier
Industry the user works in
Occupation of the user
Company the user works for
Whether the user's email is verified
Whether the user is active
City where the user resides
State where the user resides
Country where the user resides
Zip code of the user's location
User who invited this user
Show child attributes
Was this page helpful?