# Create tag Creates a new Tag record. Tag resource in the Animal Health Data Store Endpoint: POST /site/{siteId}/ahds/v1/tag Version: 1.0 Security: bearer ## Path parameters: - `siteId` (number, required) Site identifier ## Request fields (application/json): - `associatedResourceId` (string) Identifier of the resource this tag is associated with. Example: "123e4567-e89b-12d3-a456-426614174000" - `associatedResourceType` (string) Type of resource this tag is associated with (e.g., animal, contact, invoice). - `categoryId` (string) Identifier of the tag category, if applicable. Example: "123e4567-e89b-12d3-a456-426614174000" - `extensions` (object) Vendor- or practice-specific extensions. - `isActive` (boolean, required) Whether the tag is currently active and can be used. - `name` (string, required) Human-readable tag label. - `tagId` (string, required) Canonical unique identifier for the tag. Example: "123e4567-e89b-12d3-a456-426614174000" ## Response 201 fields (application/json): - `associatedResourceId` (string, required) Identifier of the resource this tag is associated with. Example: "123e4567-e89b-12d3-a456-426614174000" - `associatedResourceType` (string, required) Type of resource this tag is associated with (e.g., animal, contact, invoice). - `categoryId` (string, required) Identifier of the tag category, if applicable. Example: "123e4567-e89b-12d3-a456-426614174000" - `createdAt` (string, required) Timestamp when the tag was created. Example: "2025-01-01T00:00:00.000Z" - `extensions` (object, required) Vendor- or practice-specific extensions. - `isActive` (boolean, required) Whether the tag is currently active and can be used. - `name` (string, required) Human-readable tag label. - `tagId` (string, required) Canonical unique identifier for the tag. Example: "123e4567-e89b-12d3-a456-426614174000" - `updatedAt` (string, required) Timestamp when the tag was last updated. Example: "2025-01-01T00:00:00.000Z" ## Response 400 fields ## Response 401 fields ## Response 409 fields