Skip to main content

Tag


List tags

Get a list of tags.

const response = await geocore.Tag.tagList({
name: "name",
defaultName: "defaultName",
description: "description",
page: 1,
limit: 10,
});

Prerequisites

Successfully get the IdToken from login API.

Parameters

nametypedata typedescription
nameoptionalstringSearch by tag name
defaultNameoptionalstringSearch by tag default name
descriptionoptionalstringSearch by tag description
pageoptionalnumberPage ordinal number
limitoptionalnumberNumber of records per page
Create tag

Create a new tag.

const response = await geocore.Tag.createTag({
defaultName: "string",
name: "string",
description: "string",
color: "string",
groupId: "string"
});

Prerequisites

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

Parameters

nametypedata typedescription
defaultNamerequiredstringTag default name
namerequiredstringTag name
descriptionrequiredstringTag description
colorrequiredstringTag color in hexa format (e.g: #123456)
groupIdrequiredstringID of group
Order tags

Change the display order of tags.

const response = await geocore.Tag.orderTag({
tagIds: ["tagId"],
});

Prerequisites

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

Parameters

nametypedata typedescription
tagIdsrequiredarray<string>Array of tag IDs in order
Update tag

Update a tag.

const response = await geocore.Tag.updateTag(
tagId,
{
defaultName: "string",
name: "string",
description: "string",
color: "string"
}
);

Prerequisites

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

Parameters

nametypedata typedescription
tagIdrequiredstringID of tag
defaultNamerequiredstringTag default name
namerequiredstringTag name
descriptionrequiredstringTag description
colorrequiredstringTag color in hexa format (e.g: #123456)
Delete tag

Delete a tag.

const response = await geocore.Tag.deleteTag(tagId);

Prerequisites

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

Parameters

nametypedata typedescription
tagIdrequiredstringTag ID