Skip to content

Variant specification and equipment changes

GET
/v1/catalog/variants/{variant_id}/changes
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.

variant_id
required
Variant Id

Variant id.

integer
>= 1

Variant id.

section
Section

Only field, specs or equipment changes.

Any of:
CatalogChangeSection

Where a non-price value changed: field, specs or equipment.

string
Allowed values: field specs equipment

Only field, specs or equipment changes.

limit
Limit

Results per page.

Any of:
integer
>= 1

Results per page.

offset
Offset

Results to skip.

integer
0

Results to skip.

with_total
With Total

Include the total count. Set false for faster responses.

boolean
default: true

Include the total count. Set false for faster responses.

Successful Response

Media typeapplication/json
Page[VariantChangeOut]
object
items
required
Items
Array<object>
VariantChangeOut

One value that changed on a variant: a field, a specification entry, or an equipment item.

object
id
required
Id
integer
variant_id
required
Variant Id
integer
section
required
CatalogChangeSection

field (a column such as power_kw), specs (one specification entry) or equipment (one equipment item added or removed).

string
Allowed values: field specs equipment
group
Group

Specification group or equipment category. Null for field.

Any of:
string
key
required
Key

Field name, specification label, or equipment item.

string
old_value
Old Value

The value before. For equipment, true when the item was there; null when it was added.

new_value
New Value

The value after. For equipment, true when added; null when removed.

recorded_at
required
Recorded At
string format: date-time
total
Total

Total number of results, or null when with_total=false.

Any of:
integer
limit
required
Limit
integer
offset
required
Offset
integer

Example

{
"items": [
{
"section": "field"
}
]
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}