# Changelog

## V5.1.4 (November 2026)

### Action may be required — all clients (V3, V4 and V5)

* **A car or transport vehicle with no stored mileage ignores mileage 0 on update, and the ad log says so.** Such an ad is published as used, and mileage 0 cannot make it new. A `PUT`, `PATCH` or `migrate` that sends mileage 0 saves the rest of the update without the mileage. It also leaves out `number_of_owners: 0` (V4 and V5), and `is_new_vehicle: true` when no `is_new_vehicle` is stored. If the ad stores `is_new_vehicle: true`, mileage 0 is only ignored when the payload sends `is_new_vehicle: true` as well. The request's `update` log entry also lists what was ignored, for example "Updating. Ignored condition.mileage, condition.is_new_vehicle: this car/van (transport) has no stored mileage and is published as used.". Unless the ad stores `is_new_vehicle: true`, `is_new_vehicle: false` together with mileage 0 gets `400` with "Used vehicles cannot have zero mileage". `is_new_vehicle: true` together with mileage 0 on an ad that stores `is_new_vehicle: false` gets `400` with "Cannot change is_new_vehicle on cars/vans (transports) - this value is permanently locked at creation and determined by mileage.".
* **`is_new_vehicle: true` on a car or transport vehicle with no stored mileage gets `400`, unless it comes with mileage 0.** The message is "Cannot change is_new_vehicle on cars/vans (transports) - this value is permanently locked at creation and determined by mileage.". It used to be accepted when no `is_new_vehicle` was stored either, but the ad stayed used on the marketplaces. Sending `true` to an ad that already stores `true` is still accepted, except together with a mileage above 0, which gets "New vehicles cannot have mileage greater than zero".
* **The `400` for mileage 0 on a car or transport vehicle with no stored mileage has a new message.** It now reads "Cannot change mileage to zero - this car/van (transport) has no stored mileage and is locked as a used vehicle.". It only occurs when the ad stores `is_new_vehicle: true` and no mileage, and the payload sends mileage 0 and no `is_new_vehicle`. With `is_new_vehicle: false`, the lock answers first with "Cannot change is_new_vehicle on cars/vans (transports) - this value is permanently locked at creation and determined by mileage.".
* **A mileage under 1 mil (9.95 km or less) on a car or transport vehicle counts as zero on update.** The marketplaces get mileage in whole mil, so 5 km reached them as 0. Mileage is stored in mil rounded to two decimals, so 9.95 km or less counts as under 1 mil. On an ad with a stored mileage of 1 mil or more it now gets `400` with "Cannot change mileage to under 1 mil (9.95 km or less) - the marketplaces get whole mil, so it counts as zero, and cars/vans (transports) created with mileage > 0 are permanently locked as a used vehicle.", where it used to get `200`. An ad whose stored mileage is itself under 1 mil can still be sent one. On an ad with no stored mileage, a mileage above 0 km and under 1 mil is ignored like mileage 0 in the first item above. The request's `update` log entry says why, for example "Updating. Ignored condition.mileage: a mileage under 1 mil (9.95 km or less) counts as zero, and this car/van (transport) has no stored mileage and is published as used.". `is_new_vehicle` is left as it is sent or stored, so `is_new_vehicle: false` sent with it is saved unless the ad stores `true`, and a stored `is_new_vehicle: true` is no longer set to `false`. A V5 `migrate` replaces `category_fields`, so there a stored `is_new_vehicle` that the payload leaves out is not kept. `number_of_owners: 0` sent with `is_new_vehicle: false` and such a mileage gets `400` with "Number of owners must be at least 1 for used vehicles.", as it does with a mileage of 1 mil or more. `is_new_vehicle: true` sent with such a mileage gets `400`: "Cannot change is_new_vehicle on cars/vans (transports) - this value is permanently locked at creation and determined by mileage." when no `is_new_vehicle` is stored, and "New vehicles cannot have mileage greater than zero" when the ad stores `true`. On an ad with zero stored mileage, any mileage above 0 km still gets `400`, as before.

### Fixed — all clients (V3, V4 and V5)

* **An update to a vehicle whose stored mileage or condition is `null` got `500`.** On V3 for car, transport vehicle, motorcycle, ATV and snowmobile, and on V4 and V5 also for moped and camper, a `PUT`, `PATCH` or `migrate` that sent `condition` on such an ad failed with `500`. It is now validated as usual. For car and transport vehicle, see the first item under "Action may be required" above. On the other vehicle types, mileage 0 is saved and the ad is published as new, and a mileage above 0 km and under 1 mil is saved and the ad is published as used, with 0 mil on the marketplaces.

## V5.1.3 (November 2026)

### Fixed — all clients (V3, V4 and V5)

* **An ad that took over an existing listing with `visible: false` had no `blocket_ad_id`.** For registered vehicles, when a create matches a listing the dealer already has, the ad takes it over. If the ad was not visible, `blocket_ad_id` stayed `null` until the ad was made visible. It is now set as soon as the takeover finishes.
* **Blocket's answer was lost without a trace for ads that share a Bytbil listing (`offer_id`) with another ad.** The `publish` entry (or `unpublish`, `bump`, `boost`) stayed in `processing` and `blocket_ad_id` stayed `null`. Every ad that shares the `offer_id` now gets an entry with state `error` for that action, with "Blocket.se's answer for this ad could not be saved because more than one ad uses offer_id …". This happens again for each later answer about the listing, renewals included. Contact Blocket support for these ads.

## V5.1.1 (October 2026)

### Action may be required — all clients (V3, V4 and V5)

* **A deleted registered vehicle ad can no longer be brought back with `PUT` or `PATCH`.** On V3 for car, transport vehicle, motorcycle, ATV and snowmobile, on V4 and V5 also for moped, camper and caravan, and on V4 for trailer, a `PUT` or `PATCH` on a deleted ad returns `400` with `Ad has been deleted, cannot update`. Previously it could create the ad again if it had never been published. A `source_id` cannot be reused, so create a new ad with a new `source_id`. The V5.1 advice to send the `PUT` or `PATCH` again only applies to the other categories, as the client documentation says under `PUT /v4/{vehicle_type}/{source_id}`.

### Fixed — all clients (V3, V4 and V5)

* **A `DELETE` sent right after a create could be lost.** If the `DELETE` was handled before the ad had reached the marketplaces, the `delete` entry ended with `error` and the ad was published anyway. A `DELETE` now always takes effect. An ad that has not reached a marketplace ends `delete | done` with "Ad deleted." and is not published. An ad that reaches Blocket after the `DELETE` is removed again, and its `publish` entry ends with `done` and "Not published: the ad had been deleted when … confirmed it.". Ads whose create never reached a marketplace can now be deleted; previously their `DELETE` always ended with `error`.
* **An update sent shortly before a `DELETE` could put the ad back on Blocket.** For boats, trucks, buses, machinery and the other categories in the first V5.1 item above, the ad is now removed again as soon as Blocket confirms the update, and the `publish` entry says "Not published: …".
* **A `PUT`, `PATCH` or renewal could undo a `DELETE`.** If a `DELETE` finished while one of them was being handled, the ad could end up as `created` again. Now the `DELETE` stays in effect.
* **A dealer-group token got `500` for a `source_id` that two of its dealers use.** It now gets `400` with `error: ambiguous_source_id` and the dealers in `details.dealer_codes`. Add `?dealer_code=<dealer_code>` to choose one; a write from a group token uses the `dealer_code` in its body. `GET /v{3,4,5}/ad/{source_id}/log` now takes `?dealer_code=` too.

### New — all clients (V3, V4 and V5)

* **Find ads that never reached a marketplace.** `GET /v3/ad`, `GET /v4/ad` and `GET /v5/ad` take `offer_id`, `offer_id__isnull` and `blocket_ad_id__isnull`. `GET /v4/ad?state=created&offer_id__isnull=true&blocket_ad_id__isnull=true` lists the ads that are on no marketplace; use both filters, since one alone also matches published ads in other categories.

## V5.1 (October 2026)

### Action may be required — all clients (V3, V4 and V5)

* **New log messages.** If your integration reads `external_message` or waits for particular log entries:
    * For boats, A-tractors, trucks, buses, construction machinery, material handling, and agricultural, forestry and ground care machinery (on V3 also caravans, motorhomes, mopeds and trailers), the `create` or `update` entry ends with `done` once the API has taken the ad on, with "Ad created." or "Ad updated." (on an ad with `visible: false`, "…, but not published because of visible=False."). The `publish` entry shows whether the ad reached Blocket, as before. Previously `create` and `update` stayed in `processing` when the ad was published, and ended with `error` when it was not.
    * For those ads, a failed publish ends only the `publish` entry with `error`. Wait for `publish | done` before treating the ad as live, see [The workflow](client-documentation#the-workflow).
    * An ad that Blocket rejects gets a message on its `publish` entry saying why, or "Failed to publish ad, the ad was rejected.". Previously the `create` or `update` entry carried the raw answer from the publishing service.
    * On an ad with `visible: false`, the `publish` confirmation now ends with ", but not visible because of visible=False.". Previously it said the ad was "created and published".

### Fixed — all clients (V3, V4 and V5)

* **`retry` could publish a deleted ad again.** `GET /v3/ad/{source_id}/retry`, `GET /v4/ad/{source_id}/retry` and `GET /v5/ad/{source_id}/retry` on a deleted ad returned `200` and sent the ad to the marketplaces while it stayed deleted in the API. They now return `400` with `Ad has been deleted - Can't retry ad`. To bring back a deleted ad, send a `PUT` or `PATCH`.
* **An update handled after a DELETE could publish the ad again.** When a `PUT` or `PATCH` and a `DELETE` were sent close together and the update was handled last, the ad was sent to the marketplaces while it stayed deleted in the API. The `update` entry now ends with `error` and "Ad has been deleted, nothing was sent to the marketplaces". To bring the ad back, send the `PUT` or `PATCH` again.
* **A repeat DELETE stayed in `processing`.** A `DELETE` on an ad that is already deleted ends its `delete` entry with `done` and "Ad deleted". Previously it stayed in `processing`.
* **The documentation did not say how much of `model_type` blocket.se shows.** On car and transport ads, blocket.se shows at most 55 characters of `model_type`, on a line of its own below brand and model. Up to 64 characters are still accepted. Keep it to 55 there: drop the last words that do not fit, and do not add `...` to mark the cut. See [Category reference](category-reference).
* **The documentation did not say which id identifies an ad.** Every ad response starts with `id`, the API's internal id for the ad. Ads are addressed by `source_id`, the id you set when creating the ad; `id` is only accepted as the `?id=` filter on lists. The OpenAPI schema now says so on `id`, on the `?id=` filter and on every `{source_id}` path parameter. With a dealer-group token, keep `source_id` unique across the group. See [Ad fields](client-documentation#ad-fields).

## V5.0 (October 2026)

V5 is a new API version for the eight registered vehicle types: Car, Transport, Motorcycle, Moped, Snowmobile, ATV, Camper and Caravan. This release also changes a few things for V3 and V4 clients, so read the first two sections even if you stay where you are. Moving to V5? Start with [Migrating V3/V4 ads to V5](client-documentation#migrating-v3v4-ads-to-v5).

### Action may be required — all clients (V3, V4 and V5)

* **`registration_number` must be a Swedish plate:** three letters, two digits, then a digit or letter (`ABC123`, `ABC12A`), matched case-insensitively and stored in upper case. Checked when an ad is created and on any update that sends `registration_number`; other values return `400`, unless the ad takes over an existing listing of yours. Previously only the length and the forbidden letters were checked.
* **Upper limits on measured values:** Fields sent as `{"unit": …, "value": …}` have an upper limit, for example 3 000 kW for power, 100 t for weights and 200 000 hours for engine runtime. A larger value returns `400`, and the error states the limit in the unit you sent.
* **`category_fields` is required when creating a registered vehicle ad:** On V3 for car, transport vehicle, motorcycle, ATV and snowmobile, and on V4 also for moped, camper and caravan. Without it the request returns `400`; previously the ad was stored with no brand or model.
* **`POST /v4/{moped,camper,caravan,trailer}/{source_id}/migrate` requires `category_fields` (V4):** Without it the request returns `400` with `error: category_fields_required` and the ad is left as it was.
* **`image_refs` is `[]`, not `null`,** on an ad without images, as the schema always said.
* **Code generated from the V4 schema:** The components `CategoryFields`, `CarCondition`, `TransportCondition`, `ATV`, `ATVCondition`, `Motorcycle`, `MotorcycleCondition`, `Snowmobile` and `SnowmobileCondition` are gone. V4 responses now refer to the V4 components (`CategoryFieldsV4`, `CarConditionSerializerV4`, `TransportConditionSerializerV4`, `ATVSerializerV4`, `MotorcycleSerializerV4`, `SnowmobileSerializerV4`), which the request bodies already used. Regenerate your client. See Fixed below.
* **New log messages.** If your integration reads `external_message` or waits for particular log entries:
    * A registered vehicle ad created for a vehicle you already have listed takes that listing over, and the log now says so: "Migrating ad from existing marketplace listing.", "Ad takeover in progress." and "Ad created by taking over an existing marketplace listing." (or "Ad updated by …").
    * An update of an ad that has no listing yet, which creates the listing, is logged under its own `update` entry and ends it with `done` or `error`. Previously it was logged under a separate `create` entry and `update` stayed in `processing`.
    * Publishing or unpublishing a registered vehicle ad that gets no answer ends the `publish` or `unpublish` entry with `error` and "Publishing could not be confirmed. Check the ad later or send it again." (or "Unpublishing …"). Previously it stayed in `processing`.
    * Publishing a boat, truck, bus, agricultural or construction ad (on V3 also a caravan, camper, moped or trailer) that fails ends the `publish` entry with `error` and a message saying why. Previously it stayed in `processing`.
    * `POST /v4/{vehicle_type}/{source_id}/migrate` writes its `update` entry, "Migrated from V3 to V4 schema", as `processing`, and it ends with `done` or `error` once the ad is updated, as after `PUT` and `PATCH`. Previously it was `done` at once.

### V3 and V4: how V5 ads appear

These only affect you once some of your ads are on V5.

* **A V5 ad is shown in a short form:** On the eight registered vehicle types, `/v3/ad`, `/v4/ad` and `/v4/{vehicle_type}` list a V5 ad with the fields the V3 and V4 schemas require but no `category_fields`, plus `error: incompatible_api_version`, a `message` and the V5 endpoint in `migration_options`. `DELETE`, `bump` and `pole_position` work and answer with the same short form. A single `GET` returns `400` with that `error`.
* **A V5 ad cannot be written through V3 or V4:** `PUT` and `PATCH`, and `POST /v4/{vehicle_type}/{source_id}/migrate`, on a V5 ad of the eight types return `400` with `error: incompatible_api_version`. An ad never moves back from V5.

See [V5 Backward Compatibility](client-documentation#v5-backward-compatibility).

### New in V5

* **V5 endpoints:** `/v5/{vehicle_type}` for the eight registered vehicle types. V5 also serves boats, agriculture, bus, truck and construction, with exactly the same fields and values as V4. Trailer has no V5 endpoint: through `/v5/ad/{source_id}` an existing trailer ad can be read and deleted, while `PUT`, `PATCH`, `bump`, `pole_position` and `retry` return `400` with `error: trailer_patch_not_supported`.
* **The same fields as V4, with three exceptions:** `powertrain.fuel`, a single string, replaces the `powertrain.fuels` list; Motorcycle, Moped, Snowmobile and ATV no longer take `powertrain.transmission`; Moped gains `powertrain.displacement`.
* **New values for some fields:** `body_type` on all eight types, `powertrain.drive_type` (`front-wheel-drive` for `fwd` and so on), the fuel values, and a few brands. Values are slugs and are matched exactly. List them with `GET /v5/vehicles/{vehicle_type}/{attribute}`; the V4-to-V5 tables are in [What blocks a migration](client-documentation#what-blocks-a-migration-and-what-the-preview-does-about-it).
* **`model` is checked for Car and Transport:** against the model list of the brand, on the slug (`"xc90"`, not `"XC90"`); look them up with `GET /v5/vehicles/car/models?brand={brand}`. The list names variants where V4 named series (`118d` and `118i` rather than `118`), so a model V4 accepted may be refused. An unknown model returns `400` on create, update and migrate alike. If a model is missing from the list, tell us. See [What usually blocks a migration: `model`](client-documentation#what-usually-blocks-a-migration-model).
* **No conversion:** No V5 endpoint translates a V4 value. A value that is not valid on V5 is refused, and the preview tells you what to send instead.
* **`POST /v5/{vehicle_type}/{source_id}/migrate`:** Moves an existing V3 or V4 ad to V5 in place, keeping its id, `source_id` and history. Send the complete V5 ad: `category_fields` is replaced, not merged. It is validated as an update: a `reduced` price is accepted, neither `registration_number` nor `vin` is required, and a `registration_number` you leave out is kept.
* **Updating a V3 or V4 ad through V5:** On the eight registered vehicle types `PUT` and `PATCH` return `400` with `error: migration_required`; migrate the ad first. Other vehicle types can be written through V5 directly.
* **V3 caravans, campers and mopeds migrate on V4 first:** On V5 they return `400` with `error: migrate_on_v4_first`, and lists show them in a short form. See [V3 caravans, campers and mopeds](client-documentation#v3-caravans-campers-and-mopeds-migrate-on-v4-first).
* **`GET /v5/migration-preview`:** A dry run over your own ads that says, per ad, whether migrate would accept it as it stands and which fields stand in the way, with the value to send where there is one. Nothing is written. The summary counts `ready`, `blocked`, `unavailable`, `nothing_to_migrate` and `migrate_on_v4_first`, which add up to `total`. See [Step 1](client-documentation#step-1-see-what-you-are-in-for).
* **Reading through V5:** `GET` and `DELETE` on `/v5/{vehicle_type}` return an ad not yet migrated in the V4 shape; check `api_version` before reading `category_fields`. The schema describes this as a `oneOf` on `api_version`. Typed responses carry no `contact` or `title`. See [Reading V3/V4 ads through V5](client-documentation#reading-v3v4-ads-through-v5).
* **Lookups:** `GET /v5/vehicles/{vehicle_type}/attributes` and `GET /v5/vehicles/{vehicle_type}/{attribute}` for every vehicle type V5 serves. For boat, bus, truck, construction and the three agriculture types they return the same lists as V4.

### Fixed (V3 and V4)

* **`/validate` accepted payloads that `POST` refuses.** It now applies the trailer and recommerce creation blocks, as `POST` does.
* **One failed image held back a general ad regardless of `dont_publish_on_failed_images`.** For boats, A-tractors, trucks, buses, construction machinery, material handling, and agricultural, forestry and ground care machinery (on V3 also caravans, motorhomes, mopeds and trailers), the ad is now published with the images that worked. Set `dont_publish_on_failed_images: true` to keep the old behaviour.
* **The V4 schema described Car and Transport responses with the V3 fields.** Every V4 response now uses the V4 components; see the component names above. The API's behaviour is unchanged.
* **Malformed values returned `500`.** A `price` that is not a list of price objects, a nested object sent as something else, or a `category_id` that is not a number now gets an ordinary `400`.
* **Units had to match exactly.** `"KM"` and `"kwh/100km"` are now accepted and stored as `"km"` and `"kWh/100km"`.

## V4.5 (October 2026)

* **Fixed: Bump returned 200 when the dealer lacked the bump product.** For ads without an `offer_id`, `GET /v4/ad/{source_id}/bump` and `GET /v3/ad/{source_id}/bump` returned 200 and the failure showed up later as an error in `/log`. The API now returns `400` right away, with the reason in the error message.
* **Fixed: Bump returned 200 for an ad that was never published.** If an ad's create failed, `GET /v4/ad/{source_id}/bump` and `GET /v3/ad/{source_id}/bump` returned 200 and the bump then failed in `/log`. The API now returns `400` with `Ad is not published - Can't renew ad`.

## V4.4 (July 2026)

* **Trailer creation disabled:** Creating new trailer ads (`category_id` `1045`) is no longer supported on **either V3 or V4**. `POST /v4/trailer`, `POST /v4/ad`, and `POST /v3/ad` with `category_id` `1045` return `400` with `error: trailer_create_disabled`. Existing trailer ads can still be updated (`PUT`/`PATCH`) and deleted (`DELETE`) on both versions. See [Category Reference](category-reference#trailer-1045).
* **New V4 Car fields:** Car now supports `physics.gross_weight`, `physics.curb_weight`, and `leasing_details` (`mileage_remaining` in Swedish *mil*, `remaining_months`, `initial_payment`). All optional. See [Category Reference](category-reference).
* **New `physics.curb_weight`:** Now available for Moped, Snowmobile, and ATV on V4 endpoints.
* **New Camper field:** Camper now supports `condition.has_warranty`.
* **`condition.number_of_owners` validation:** `0` (or null) is now only accepted for new vehicles. Used vehicles (mileage > 0, or `is_new_vehicle` false for caravan/trailer) must have at least 1 owner — sending `0` returns a validation error instead of failing later in sync.

## V4.3 (June 2026)

* **New V4 Car fields:** Car now supports additional fields on V4 endpoints only: physics (seats, doors, boot size, trailer weight), environmental data (fuel/energy consumption, CO2, driving range, battery capacity), exterior/interior color, vehicle history (damages, repairs, tuning, liabilities), EU inspection dates, and `condition.number_of_owners`. V3 endpoints reject these fields with a validation error. See [Category Reference](category-reference).
* **New V4 Transport fields:** Transport now supports the same extended field set as Car on V4 endpoints: environmental data, physics extensions (seats, doors, boot size, trailer weight), color, vehicle history, and EU inspection dates. See [Category Reference](category-reference).
* **New Camper fields:** Camper now supports `bed_type`, `chassis_type`, `powertrain.drive_type`, `powertrain.displacement`, `physics.number_of_seats`, `physics.width`, and `condition.number_of_owners`. See [Category Reference](category-reference).
* **New Caravan fields:** Caravan now supports `condition.has_warranty`, `physics.interior_length`, `physics.width`, and `condition.number_of_owners`. See [Category Reference](category-reference).
* **`condition.number_of_owners`:** Available on V4 endpoints for all registered vehicle categories (Car, Transport, Motorcycle, Moped, Snowmobile, ATV, Camper, Caravan, Trailer). V3 endpoints reject this field.

## V4.2 (Late May 2026)

* **Enum value lookup endpoints:** New generic endpoints for discovering which enum attributes a vehicle type supports and retrieving their valid values. See [Vehicle field values](client-documentation#vehicle-field-values) in the client documentation.
* **VIN length validation removed:** The 17–19 character length constraint on the `vin` field (added in V4.1) has been removed. Any length is now accepted again.
* **Client documentation rewritten:** Endpoints section updated to use V4 paths, expanded error responses, improved field descriptions, and added missing list filters.
* **Physics weight field renames:** Weight fields in `physics` have been renamed across categories to use a consistent naming convention: `weight_cargo` → `cargo_weight` and `weight_main` → `gross_weight` for Bus and Truck; `weight` → `gross_weight` for Agriculture and Construction.
* **Fixed: Updates accepted on externally deleted ads.** When an ad was deleted outside of import-api (e.g. via Blocket Admin), subsequent update requests incorrectly returned 200 OK instead of an error. The API now correctly responds with an error message explaining that the ad has been deleted.

## V4.1 (Mid-May 2026)

New `category_fields` support for additional categories:

| Category | category_id | Fields |
|----------|-------------|--------|
| Boat | `1060` | brand, model, powertrain, physics, equipment |
| Agriculture Tractor | `1228` | brand, model, powertrain, condition, physics, tyres, equipment |
| Agriculture Thresher | `1227` | brand, model, powertrain, condition, physics, equipment |
| Agriculture Tools | `1229` | brand, model, weight, tools_category |
| Bus | `1321` | brand, body_type, model, model_year, registration_number, vin, condition, powertrain, physics, equipments |
| Truck | `1322` | brand, body_type, model, model_year, registration_number, vin, condition, powertrain, physics, equipments |
| Construction | `1323` | brand, body_type, model_year, vin, service_contract, condition, powertrain, physics |

See the [Category Reference](category-reference) for full field specifications and examples.

Typed ad endpoints:

* Each category now has its own endpoint (e.g. `/v4/car`, `/v4/boat`, `/v4/bus`) that automatically infers the `category_id`. The `category_id` field is no longer required when using typed endpoints.
* The generic `/v4/ad` endpoint continues to work with explicit `category_id` but is now discouraged in favor of typed endpoints.

Breaking changes:

* **Generic migrate endpoint removed:** `POST /v4/ad/{source_id}/migrate` no longer exists. Use the typed migrate endpoints instead (e.g. `POST /v4/boat/{source_id}/migrate`, `POST /v4/truck/{source_id}/migrate`). The typed endpoints infer the target category from the URL — do not include `category_id` in the request body.

Other changes:

* **Timestamp format change:** `created` and `updated` fields now include a UTC timezone suffix (`Z`) and always include microsecond precision, as required by RFC 3339. Example: `2026-05-08T12:00:00.000000Z` (previously `2026-05-08T12:00:00`). Standard datetime parsers handle both formats — clients using string comparison against timestamps may need to update.
* **source_id format validation:** `source_id` now only accepts letters, digits, hyphens, underscores, and dots. Characters like `/`, `?`, and `#` are rejected with a 400 error.
* Bumping ads with an active Pole Position is now allowed
* Validated enum values now visible in Swagger schema
* Improved error handling for database outages (returns 503 instead of 500)

## V4.0 (February 2026)

Full registered vehicle support for four categories previously limited to simple ads:

| Category | category_id |
|----------|-------------|
| Moped | `1121` |
| Camper / Motorhome | `1102` |
| Caravan | `1101` |
| Trailer | `1045` |

These categories now support detailed vehicle data (brand, model, mileage, powertrain, physics, equipment, etc.) — the same level of detail as Cars and Motorcycles.

* New migration endpoint: `POST /v4/{type}/{source_id}/migrate` — converts V3 ads to V4 in-place (the generic `/v4/ad/{source_id}/migrate` variant was removed in V4.1 — use typed endpoints)
* V4 endpoints are backward compatible: GET and DELETE work for both V3 and V4 ads

## V3.1

* Support for registered vehicle categories previously only managed via Blocket Admin
* Improved state on Ad and improved action and state on LogMessages
* New fields: `warranty`, `return_policy`, `service_history`, `product_declaration`, `home_delivery`

## V3.0

* API now represents Ads instead of "APIMessages"
* All dates/times stored and returned in UTC
* Renamed and restructured fields for creating ads
* New hosting location and database — separate history from earlier versions
* New authentication system — new tokens required
