# Create modality Creates a new Modality record. Modality resource in the Animal Health Data Store Endpoint: POST /site/{siteId}/ahds/v1/modality Version: 1.0 Security: bearer ## Path parameters: - `siteId` (number, required) Site identifier ## Request fields (application/json): - `code` (string, required) Practice- or system-specific code for the modality (e.g., 'XR', 'US'). - `description` (string,null) Optional description of the modality. - `extensions` (object) Vendor- or practice-specific extension fields. - `isActive` (boolean) Indicates whether this modality is active and can be used. - `modalityId` (string, required) Canonical unique identifier for the modality. Example: "123e4567-e89b-12d3-a456-426614174000" - `name` (string, required) Human-readable name of the modality. ## Response 201 fields (application/json): - `code` (string, required) Practice- or system-specific code for the modality (e.g., 'XR', 'US'). - `description` (string,null, required) Optional description of the modality. - `extensions` (object, required) Vendor- or practice-specific extension fields. - `isActive` (boolean, required) Indicates whether this modality is active and can be used. - `modalityId` (string, required) Canonical unique identifier for the modality. Example: "123e4567-e89b-12d3-a456-426614174000" - `name` (string, required) Human-readable name of the modality. ## Response 400 fields ## Response 401 fields ## Response 409 fields