addTag

suspend fun addTag(module: ZuperModule, tagName: String): AddTagResult

Add a new company tag to a specific module.

This method creates a new tag with the provided name in the specified module. All other fields (color, description) are set to null. The method validates that the tag name is unique within the module before creating.

Return

AddTagResult containing the created ZyncTag or error

Parameters

module

The module to create the tag in (e.g., ZuperModule.JOB, ZuperModule.ASSETS)

tagName

The name of the tag to create

Samples