# Replace location Fully replaces an existing Location. All fields must be provided. Endpoint: PUT /site/{siteId}/ahds/v1/location/{locationId} Version: 1.0 Security: bearer ## Path parameters: - `siteId` (number, required) Site identifier - `locationId` (string, required) Location unique identifier (UUID) ## Request fields (application/json): - `name` (string, required) Human-readable name of the location. - `locationType` (object, required) Type of location (farm, barn, paddock, room, kennel). - `locationType.code` (string, required) Code value - `locationType.system` (string, required) Code system URI - `locationType.display` (string) Human-readable display - `parentLocationId` (string, required) Reference to parent location for hierarchical structures. Example: "123e4567-e89b-12d3-a456-426614174000" - `facilityId` (string, required) Reference to the facility this location belongs to. Example: "123e4567-e89b-12d3-a456-426614174000" - `address` (object, required) Physical address if applicable. - `coordinates` (object, required) GPS coordinates. - `isActive` (boolean, required) Whether the location is currently active. - `extensions` (object, required) Vendor- or practice-specific extensions. ## Response 200 fields (application/json): - `locationId` (string, required) Canonical unique identifier for the location. Example: "123e4567-e89b-12d3-a456-426614174000" - `name` (string, required) Human-readable name of the location. - `locationType` (object, required) Type of location (farm, barn, paddock, room, kennel). - `locationType.code` (string, required) Code value - `locationType.system` (string, required) Code system URI - `locationType.display` (string) Human-readable display - `parentLocationId` (string, required) Reference to parent location for hierarchical structures. Example: "123e4567-e89b-12d3-a456-426614174000" - `facilityId` (string, required) Reference to the facility this location belongs to. Example: "123e4567-e89b-12d3-a456-426614174000" - `address` (object, required) Physical address if applicable. - `coordinates` (object, required) GPS coordinates. - `isActive` (boolean, required) Whether the location is currently active. - `createdAt` (string, required) Timestamp when the location record was created. Example: "2025-01-01T00:00:00.000Z" - `updatedAt` (string, required) Timestamp when the location record was last updated. Example: "2025-01-01T00:00:00.000Z" - `extensions` (object, required) Vendor- or practice-specific extensions. ## Response 400 fields ## Response 401 fields ## Response 404 fields