Skip to main content

Comment


Find comments

Get a list of place comments.

const response = await geocore.Comment.find({
placeId: 'string',
});

Prerequisites

Successfully get the IdToken with companyAdmin, groupAdmin or user access level from login API.

Parameters

nametypedata typedescription
placeIdrequiredstringPlace ID to get comments
Create comment

Create a new comment.

const response = await geocore.Comment.create({
placeId: 'string',
content: 'content',
});

Prerequisites

Successfully get the IdToken with companyAdmin, groupAdmin or user access level from login API.

Parameters

nametypedata typedescription
placeIdrequiredstringPlace ID to add comment
contentrequiredstringComment content
Update comment

Update a comment.

const response = await geocore.Comment.update(
commentId,
{
content: 'content',
},
);

Prerequisites

Successfully get the IdToken with companyAdmin, groupAdmin or user access level from login API.

Parameters

nametypedata typedescription
commentIdrequiredstringComment ID
contentrequiredstringComment content to update
Delete comment

Delete a comment.

const response = await geocore.Comment.delete(commentId);

Prerequisites

Successfully get the IdToken with companyAdmin, groupAdmin or user access level from login API.

Parameters

nametypedata typedescription
commentIdrequiredstringComment ID