Skip to Content
Release Management API

Catalog Copy Changes

What changed in the Catalog Copy inside the Cabinet Boundary after a Copy Version: the Keys of changed Releases and Drafts and, with them, the weeks of their Schedule Events, their Cabinets (old and new) and their Artists. A Release that left a Cabinet of the Cabinet Boundary comes too, so that its Windows are refreshed. Use the response to refresh your Windows: send the copyVersion of the previous response as since, read the rows of the returned Keys again with releases and keys, and send the copyVersion of this response as since in the next call. Without since, the response has only the current Copy Version. overflow: true means that the Cabinet Boundary has more than 200 changes or that since is already forgotten: refresh everything.

Request

GET /api/v1/changes
ParameterTypeDefaultDescription
x-cabinetsstringThis header is required. The Cabinet Boundary: Cabinet slugs or Cabinet Keys cabinet:<slug> separated by commas, at most 250. * means the whole catalog. A response contains only data of these Cabinets. The Consumer decides the list and never sends an empty one. Example: label-one,label-two.
traceparentstringThis is a header. Tracing of the call (W3C Trace Context). The API writes the trace-id to its log, and the response returns the same header. The API drops an invalid header without an error. Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01.
Accept-LanguagestringThis is a header. The language of the labels for people in the response (RFC 9110): en or ru. The API picks the supported language with the highest q weight, ignoring case, and ru-RU counts as ru. If the header is missing or names no supported language, the labels are in en: this is not an error. Example: ru.
sincestringThe copyVersion from a previous response: the response shows what changed after it. Without since, the response has only the current Copy Version; start with it. Example: 100.

Response

The response of changes: what changed in the Catalog Copy after a Copy Version. Make the next call with since set to the copyVersion of this response.

FieldTypeDescription
copyVersionstringThe Copy Version that the response was read from. Example: 100.
ruleVersionstringThe version of the rules that the API applies to build Windows. When it changes, the meaning of saved Windows changes: discard the Windows you saved, including a persisted cache, and read them again. Example: 7372a7633e60b7b5.
dataAsOfstring (date-time)The time at which the Catalog Copy is correct, in ISO 8601 UTC. Example: 2026-09-29T07:00:00.000Z.
releasesstring[]The Keys of Releases and Drafts that changed after since, at most 200, in the order of Keys. Some of them may be deleted: for such a Key, release returns not_found.
weeks(string (date))[]The weeks in which the changed Releases now have days with Schedule Events, as Mondays in Moscow time, in order: refresh releases with a period that covers them. To find the week that a Release left, look it up in your cache by its Key from releases.
cabinetsstring[]The Keys of the Cabinets of the changed Releases, in order: refresh what you read by these Cabinets.
artistsstring[]The Keys of the Artists, which are the cards that perform on the changed Releases, their Tracks and videos, in order: refresh artists, tracks and releases by these Keys.
overflowbooleantrue means that more than 200 Releases changed after since, that the change log has already forgotten since, or that since is newer than the Catalog Copy: refresh everything. Then releases, weeks, cabinets and artists are empty.

Errors

CodeWhenWhat to do
invalid_inputThe input failed validation (HTTP 422).Fix the fields listed in errors and send the request again.
unauthorizedThe token was not accepted (HTTP 401).Get a new M2M token for the machine and send the request again.
forbiddenThe machine is not allowed (HTTP 403).Do not retry the request. The machine is not listed in MACHINES, or the scopes of its token do not include the API machine.
not_foundThe path or the Key was not found (HTTP 404).If the response has details.key, the Catalog Copy has no item with that Key: find the item again with search. Otherwise the path does not exist: Operations are available at /api/v1/<name>, and /api/v1/openapi.json lists them.
method_not_allowedThe method is not allowed (HTTP 405).Send the request again with GET or HEAD: the API only reads, and the Allow header lists these methods.
rate_limitedThe machine made too many calls (HTTP 429).Wait for the number of seconds in Retry-After, which is the time until the machine's next allowed call, and send the request again.
timeoutThe request did not finish in time (HTTP 504).The API did not retry the request. Narrow it with a shorter period, a smaller limit or fewer Parts in include, and send it again: the same request will most likely exceed 5 s again.
unavailableThe Catalog Copy is unavailable (HTTP 503).Wait for the number of seconds in Retry-After and retry the request once. The connection to the Catalog Copy was lost, or the database is overloaded or starting after a pause, and the API has already retried once.
internalThe API failed with an internal error (HTTP 500).Do not retry the request: the API did not retry it, and the same request will fail the same way. Report the requestId.

Example

curl -s "https://rm-api.ovkch.com/api/v1/changes" \
  -H "Authorization: Bearer $TOKEN" \
  -H "x-cabinets: label-one"