Skip to main content

TAG API Reference

Module Information

Service Files:

  • Private: service/private/tag.js
  • Public: service/tag.js

Available Services: 4 Documented Services: 4


tag.list

List tags paginated by language. Reads the language from the Xlang input or falls back to the session language. Only 'zh', 'fr', and 'en' are accepted; any other value defaults to 'en'. Calls tag_list_by_lang stored procedure.

PropertyValue
ScopeHub (requires hub context)
PermissionAnonymous (0)

Endpoint:

https://hostname/-/svc/tag.list

Parameters

ParameterTypeRequiredDefaultDescription
pageintegerNo1-
XlangstringNo--

Returns

FieldTypeDescription
typeany-
descriptionany-

Possible Errors

Error codes not documented


tag.get_by_name

Search for tags by name with pagination. Calls tag_get_by_name stored procedure with the provided name and page number.

PropertyValue
ScopeHub (requires hub context)
PermissionAnonymous (0)

Endpoint:

https://hostname/-/svc/tag.get_by_name

Parameters

ParameterTypeRequiredDefaultDescription
namestringYes--
pageintegerNo1-

Returns

FieldTypeDescription
typeany-
descriptionany-

Possible Errors

Error codes not documented


tag.store

Create or update a tag record. Resolves the tag identifier from hashtag input or falls back to id. Calls tag_save stored procedure with sys_id, tag id, lang_code array, type, and name. Returns the saved tag data on success. Throws INVALID_DATA if the tag ID is not found, or INTERNAL_ERROR for other failures.

PropertyValue
ScopeHub (requires hub context)
PermissionAnonymous (0)

Endpoint:

https://hostname/-/svc/tag.store

Parameters

ParameterTypeRequiredDefaultDescription
serialintegerNo0-
hashtagstringNo--
idstringNo--
lang_codestringNo"[]"-
typestringYes--
namestringYes--

Returns

FieldTypeDescription
typeany-
descriptionany-

Possible Errors

Error CodeHTTP StatusDescription
INVALID_DATA-Tag ID was not found in the system
INTERNAL_ERROR-An internal server error occurred during tag save

tag.delete

Delete a tag by its system serial ID. Calls tag_delete stored procedure with the serial number.

PropertyValue
ScopeHub (requires hub context)
PermissionAnonymous (0)

Endpoint:

https://hostname/-/svc/tag.delete

Parameters

ParameterTypeRequiredDefaultDescription
serialintegerYes--

Returns

FieldTypeDescription
typeany-
descriptionany-

Possible Errors

Error codes not documented


  • ACL System - Permission model
  • Service Routing - URL patterns
  • Error Handling - Error codes