Variant specification and equipment changes
const url = 'https://api.avtopodatki.si/v1/catalog/variants/1/changes?offset=0&with_total=true';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.avtopodatki.si/v1/catalog/variants/1/changes?offset=0&with_total=true' \ --header 'Authorization: Bearer <token>'Every value that changed on one variant other than its price, newest
first: a field such as power_kw, one specification entry, or one
equipment item added or removed. Price changes are in …/history.
Only real changes are recorded — a variant’s first reading is not one, so a new variant has none.
Requires the catalog.changes permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Variant id.
Variant id.
Query Parameters
Section titled “Query Parameters”Only field, specs or equipment changes.
Where a non-price value changed: field, specs or equipment.
Only field, specs or equipment changes.
Results to skip.
Results to skip.
Include the total count. Set false for faster responses.
Include the total count. Set false for faster responses.
Responses
Section titled “Responses”Successful Response
object
One value that changed on a variant: a field, a specification entry, or an equipment item.
object
field (a column such as power_kw), specs (one specification entry) or equipment (one equipment item added or removed).
Field name, specification label, or equipment item.
The value before. For equipment, true when the item was there; null when it was added.
The value after. For equipment, true when added; null when removed.
Example
{ "items": [ { "section": "field" } ]}Validation Error
object
object
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}