Skip to content

One catalogue update

GET
/v1/catalog/updates/{update_id}
curl --request GET \
--url https://api.avtopodatki.si/v1/catalog/updates/1 \
--header 'Authorization: Bearer <token>'

One update, its neighbours, and its counts per brand.

Requires the catalog.changes permission.

update_id
required
Update Id

Update id.

integer
>= 1

Update id.

Successful Response

Media typeapplication/json
UpdateDetail
object
id
required
Id
integer
status
required
ScrapeJobStatus

The pass’s own status: queued, running, succeeded, failed or cancelled. Only a succeeded pass retires what it did not see.

string
Allowed values: queued running succeeded partial failed cancelled
trigger
required
JobTrigger
string
Allowed values: scheduled manual retry
queued_at
required
Queued At
string format: date-time
started_at
Started At
Any of:
string format: date-time
finished_at
Finished At
Any of:
string format: date-time
brands_done
required
Brands Done

Brands whose model list was read.

integer
brands_total
required
Brands Total

Brands the pass set out to read.

integer
counts
UpdateCounts

What one update changed, counted from the change log.

object
added
Added

Variants that went on sale: new ones and ones back on sale.

integer
0
withdrawn
Withdrawn

Variants no longer on sale.

integer
0
price_up
Price Up

Price rises.

integer
0
price_down
Price Down

Price reductions.

integer
0
previous_id
Previous Id

The update before this one.

Any of:
integer
next_id
Next Id

The update after this one.

Any of:
integer
brands
Brands

Counts per brand, the brand with most changes first.

Array<object>
BrandCounts
object
added
Added

Variants that went on sale: new ones and ones back on sale.

integer
0
withdrawn
Withdrawn

Variants no longer on sale.

integer
0
price_up
Price Up

Price rises.

integer
0
price_down
Price Down

Price reductions.

integer
0
brand_id
required
Brand Id
integer
brand_name
required
Brand Name
string

Example

{
"status": "queued",
"trigger": "scheduled",
"counts": {
"added": 0,
"withdrawn": 0,
"price_up": 0,
"price_down": 0
},
"brands": [
{
"added": 0,
"withdrawn": 0,
"price_up": 0,
"price_down": 0
}
]
}

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": {}
}
]
}