## Update a valuation `PUT https://getkollek.com/api/copies/{copy}/valuations/{valuation}` Update a valuation, for correcting a figure that was entered wrong. Every field is replaced, so send the ones you want to keep along with the ones you are changing. **Permissions:** Owners and editors. Viewers get a 404 response. ### Path parameters - `copy` (integer, required): The ID of the copy the valuation belongs to. - `valuation` (integer, required): The ID of the valuation. ### Body parameters - `type` (string, required): Where the valuation came from. One of user_estimate, professional_appraisal, market_estimate, insurance_value, auction_estimate, automated_estimate or other. - `amount` (integer, required): What the copy was reckoned to be worth, in the smallest currency unit (e.g. cents). - `valued_at` (string, required): The date the copy was valued, in YYYY-MM-DD format. This is what orders the valuations, so the latest date is read as the current estimated value. - `currency_code` (string, optional): The three letter currency code the amount is expressed in. Defaults to the currency of the collection. - `confidence` (string, optional): How much weight the valuation carries. One of low, medium, high or unknown. Defaults to unknown. - `valuer` (string, optional): Who or what produced the valuation, such as the appraiser or the marketplace. - `method` (string, optional): How the figure was arrived at, such as comparable sales. - `source_url` (string, optional): A link to where the valuation can be checked, such as the appraisal report or the listing. - `reference_number` (string, optional): An appraisal or report reference for the valuation. - `note` (string, optional): A free form note about the valuation. **Returns:** The updated valuation object. ### Example request ```bash curl https://getkollek.com/api/copies/1/valuations/1 \ -X PUT \ -H "Authorization: Bearer $API_KEY" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "type": "professional_appraisal", "amount": "25000", "valued_at": "2024-01-15", "currency_code": "USD", "confidence": "high", "valuer": "Central Perk Appraisals", "method": "Comparable sales", "source_url": "https://example.com/appraisals/1994", "reference_number": "CP-1994", "note": "Valued after the Central Perk auction." }' ``` ### Example response `Status: 200` ```json { "data": { "type": "valuation", "id": "1", "attributes": { "copy_id": "1", "type": "professional_appraisal", "amount": 25000, "currency_code": "USD", "valued_at": 1752537600, "confidence": "high", "valuer": null, "method": null, "source_url": null, "reference_number": null, "note": null, "created_at": 1752537600, "updated_at": 1752537600 }, "links": { "self": "https://getkollek.com/api/copies/1/valuations/1" } } } ```