Skip to main content

Tag Management

Tags are reusable labels (for example VIP, Banned, Employee) that can be applied to people. This page covers the Tags controller — creating, reading, updating, and deleting the tag definitions themselves. To apply a tag to a specific person, see Person Management.

API Endpoints​

  • Base URL (Cloud): https://customername.econnectcloud.com/identities
  • Base URL (On-prem): https://<server-host-or-ip>:5009
MethodEndpointDescriptionPermission
GET/api/v1/TagsList all tags (optional ?tagName= exact-match filter).Read Tags
GET/api/v1/Tags/{tagId}Get a single tag.Read Tags
POST/api/v1/TagsCreate a tag.Add Tags
PUT/api/v1/Tags/{tagId}Update a tag.Edit Tags
DELETE/api/v1/Tags/{tagId}Delete a tag.Delete Tags

Authentication​

Requires a JWT bearer token. See Authentication.

Permissions​

The permission names and category below are what you'll see in the Identities web app under System → System settings → Roles.

OperationPermissionCategory
List / getRead TagsTags
CreateAdd TagsTags
UpdateEdit TagsTags
DeleteDelete TagsTags

Tag Object​

Content-Type: application/json.

FieldTypeDescription
tagIdstring (GUID)Server-assigned identifier. Omit when creating; required in the URL for update/delete.
tagNamestringThe tag's display name.
disabledboolWhether the tag is disabled (hidden from normal use).
descriptionstringFree-text description.
defaultExpirePeriodstring (duration)Default expiry applied when this tag is added to a person, as days.hh:mm:ss (e.g. 30.00:00:00 = 30 days). Use 00:00:00 for no default expiry.

Code Examples​

Bash
API_URL="https://customername.econnectcloud.com/identities"
TOKEN="your_jwt"

# Create a tag
curl -sk -X POST "$API_URL/api/v1/Tags" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"tagName": "VIP",
"disabled": false,
"description": "Very important person",
"defaultExpirePeriod": "30.00:00:00"
}' | jq

# List all tags
curl -sk -X GET "$API_URL/api/v1/Tags" \
-H "Authorization: Bearer $TOKEN" | jq

# Update a tag
curl -sk -X PUT "$API_URL/api/v1/Tags/<tagId>" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ "tagName": "VIP", "disabled": false, "description": "Top-tier guest", "defaultExpirePeriod": "60.00:00:00" }'

# Delete a tag
curl -sk -X DELETE "$API_URL/api/v1/Tags/<tagId>" \
-H "Authorization: Bearer $TOKEN"

Raw Sample​

Create — Request​

HTTP
POST https://customername.econnectcloud.com/identities/api/v1/Tags
Authorization: Bearer <your_jwt_token>
Content-Type: application/json
JSON
{
"tagName": "VIP",
"disabled": false,
"description": "Very important person",
"defaultExpirePeriod": "30.00:00:00"
}

Create — Response​

200 OK — the created tag, now with its server-assigned tagId:

JSON
{
"tagId": "4c5d6e7f-8091-2345-6789-abcdef012345",
"tagName": "VIP",
"disabled": false,
"description": "Very important person",
"defaultExpirePeriod": "30.00:00:00"
}

GET /api/v1/Tags returns an array of these objects. DELETE returns true on success.

Response Codes​

CodeMeaning
200 OKThe operation succeeded.
404 Not FoundNo tag exists with that tagId (get).
401 UnauthorizedMissing or invalid JWT.
403 ForbiddenThe user lacks the required Tags permission.