Skip to main content

Admin Comment


Find admin comments

Get a list of admin comments.

const response = await geocore.AdminComment.find({
area: {
north: 1,
south: 2,
west: 3,
east: 4,
};
});

Prerequisites

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

Parameters

nametypedata typedescription
area[north]requirednumberLongitude of north west point
area[south]requirednumberLatitude of north west point
area[west]requirednumberLongitude of north east point
area[east]requirednumberLatitude of north east point
Create admin comment

Create a new admin comment.

const response = await geocore.AdminComment.create({
title: 'title',
comment: 'comment',
location: {
type: 'Point',
coordinates: [12, 34],
},
});

Prerequisites

Successfully get the IdToken with companyAdmin access level from login API.

Parameters

nametypedata typedescription
titlerequiredstringAdmin comment title
commentrequiredstringComment content
location[type]requiredstringValue must be "Point"
location[coordinates]requiredarray<number>Location of comment
Update admin comment

Update a admin comment.

const response = await geocore.AdminComment.update(
adminCommentId,
{
title: 'title',
comment: 'comment',
location: {
type: 'Point',
coordinates: [12, 34],
},
},
);

Prerequisites

Successfully get the IdToken with companyAdmin access level from login API.

Parameters

nametypedata typedescription
adminCommentIdrequiredstringAdmin comment ID
titlerequiredstringAdmin comment title
commentrequiredstringComment content
location[type]requiredstringValue must be "Point"
location[coordinates]requiredarray<number>Location of comment
Delete admin comment

Delete a admin comment.

const response = await geocore.AdminComment.delete(adminCommentId);

Prerequisites

Successfully get the IdToken with companyAdmin access level from login API.

Parameters

nametypedata typedescription
adminCommentIdrequiredstringAdmin comment ID
Import admin comments

Import admin comments from a CSV file.

const formData = new FormData();
formData.append('csv', csvFile);

const response = await geocore.AdminComment.import(formData);

Prerequisites

Successfully get the IdToken with companyAdmin access level from login API.

Parameters

nametypedata typedescription
csvrequiredstringCSV file with admin comment information
Export admin comments

Export admin comments to a CSV file.

const response = await geocore.AdminComment.export(query);

Prerequisites

Successfully get the IdToken with companyAdmin access level from login API.

Parameters

nametypedata typedescription
queryrequiredstringSame as get admin comment query params