Creates a new compliance document tag for the organisation. Tag names must be unique within an organisation (matched case-insensitively). The tag is immediately available for use on document uploads once created.
https://api.employmenthero.com/api/v1/organisations/:organisation_id/compliance_document_tagsPath Parameters
The ID of the organisation.
Request Body
The name of the compliance document tag. Must be unique within the organisation (case-insensitive).
Response Body
Returns HTTP 201 Created with the newly created compliance document tag.
The unique identifier of the compliance document tag.
The display name of the compliance document tag.
The timestamp when the tag was archived. Null when the tag is active.
The timestamp when the tag was created.
The timestamp when the tag was last updated.
Example
curl -X POST \ "https://api.employmenthero.com/api/v1/organisations/:organisation_id/compliance_document_tags" \ -H "Authorization: Bearer AUXJ3123xyrj123fdsjkl124aAJKQ" \ -H "Content-Type: application/json" \ -d '{ "name": "Right to Work" }'Response
{ "data": { "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "name": "Privacy Policy", "archived_at": null, "created_at": "2025-05-01T09:00:00.000Z", "updated_at": "2025-05-01T09:00:00.000Z" }}Renames an existing compliance document tag. The new name must be unique within the organisation (case-insensitive). Archived tags cannot be renamed; attempting to do so returns 422 Unprocessable Entity.
https://api.employmenthero.com/api/v1/organisations/:organisation_id/compliance_document_tags/:tag_idPath Parameters
The ID of the organisation.
The ID of the compliance document tag to rename.
Request Body
The new name for the compliance document tag. Must be unique within the organisation (case-insensitive).
Response Body
Returns HTTP 200 OK with the updated compliance document tag.
The unique identifier of the compliance document tag.
The display name of the compliance document tag.
The timestamp when the tag was archived. Null when the tag is active.
The timestamp when the tag was created.
The timestamp when the tag was last updated.
Example
curl -X PATCH \ "https://api.employmenthero.com/api/v1/organisations/:organisation_id/compliance_document_tags/:tag_id" \ -H "Authorization: Bearer AUXJ3123xyrj123fdsjkl124aAJKQ" \ -H "Content-Type: application/json" \ -d '{ "name": "Safety Certificate" }'Response
{ "data": { "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "name": "Privacy Policy", "archived_at": null, "created_at": "2025-05-01T09:00:00.000Z", "updated_at": "2025-05-01T09:00:00.000Z" }}Archives a compliance document tag, excluding it from future document tagging operations. Existing document associations are preserved. Archiving is permanent in v1 — there is no unarchive endpoint. Calling this endpoint on an already-archived tag is idempotent.
https://api.employmenthero.com/api/v1/organisations/:organisation_id/compliance_document_tags/:tag_id/archivePath Parameters
The ID of the organisation.
The ID of the compliance document tag to archive.
Response Body
Returns HTTP 204 No Content on success. No response body is included. Archiving an already-archived tag is idempotent and also returns 204.
Example
curl -X POST \ "https://api.employmenthero.com/api/v1/organisations/:organisation_id/compliance_document_tags/:tag_id/archive" \ -H "Authorization: Bearer AUXJ3123xyrj123fdsjkl124aAJKQ"Response
This endpoint does not return a response body.