# Reversions

## GET /reversions/revisions/

> This method retrieves details about specific revisions, tracking changes made to objects over time. This is useful for auditing purposes and ensures traceability of modifications. Each revision includes an ID, creation date, an optional comment explaining the change, and the user who made the revision.

```json
{"openapi":"3.0.3","info":{"title":"Data Warehouse","version":"1.0.0"},"servers":[{"description":"Server base URL with dynamic channel_id.","url":"https://{omnitron_url}/api/v1/remote/{channel_id}/data-warehouse","variables":{"channel_id":{"default":"1","description":"Unique identifier for the sales channel."},"omnitron_url":{"default":"sandbox.akinon.com"}}},{"description":"Server base URL with Commerce URL.","url":"https://{commerce_url}/api/v1/data-warehouse","variables":{"commerce_url":{"default":"sandbox.commerce.akinon.com"}}}],"security":[{"tokenAuth":[]}],"components":{"securitySchemes":{"tokenAuth":{"description":"Token-based authentication with required prefix \"Token\"","in":"header","name":"Authorization","type":"apiKey"}},"schemas":{"PaginatedRevisionList":{"properties":{"count":{"description":"Numerical value representing quantity or total amount.","type":"integer"},"next":{"description":"This field defines the URL of the next page.","format":"uri","nullable":true,"type":"string"},"previous":{"description":"This field defines the URL of the previous page.","format":"uri","nullable":true,"type":"string"},"results":{"description":"This field returns a list of results.","items":{"$ref":"#/components/schemas/Revision"},"type":"array"}},"type":"object"},"Revision":{"properties":{"comment":{"description":"A text comment on this revision.","type":"string"},"date_created":{"description":"Timestamp indicating when the record was created.","format":"date-time","type":"string"},"id":{"description":"Unique identifier for the record.","type":"integer"},"user":{"description":"The user who created this revision.","nullable":true,"type":"integer"}},"type":"object"}}},"paths":{"/reversions/revisions/":{"get":{"description":"This method retrieves details about specific revisions, tracking changes made to objects over time. This is useful for auditing purposes and ensures traceability of modifications. Each revision includes an ID, creation date, an optional comment explaining the change, and the user who made the revision.","operationId":"reversions_revisions_list","parameters":[{"description":"Query parameter `comment` used to filter results based on specific conditions.","in":"query","name":"comment","schema":{"type":"string"}},{"description":"Query parameter `date_created` used to filter results based on specific conditions.","in":"query","name":"date_created","schema":{"format":"date-time","type":"string"}},{"description":"Filters records where `date_created` is greater than the given value.","in":"query","name":"date_created__gt","schema":{"format":"date-time","type":"string"}},{"description":"Filters records where `date_created` is greater than or equal to the given value.","in":"query","name":"date_created__gte","schema":{"format":"date-time","type":"string"}},{"description":"Filters records where `date_created` is less than the given value.","in":"query","name":"date_created__lt","schema":{"format":"date-time","type":"string"}},{"description":"Filters records where `date_created` is less than or equal to the given value.","in":"query","name":"date_created__lte","schema":{"format":"date-time","type":"string"}},{"description":"Query parameter `id` used to filter results based on specific conditions.","in":"query","name":"id","schema":{"type":"integer"}},{"description":"Filters records where `id` is greater than the given value.","in":"query","name":"id__gt","schema":{"type":"integer"}},{"description":"Filters records where `id` is greater than or equal to the given value.","in":"query","name":"id__gte","schema":{"type":"integer"}},{"description":"Filters records where `id` is less than the given value.","in":"query","name":"id__lt","schema":{"type":"integer"}},{"description":"Filters records where `id` is less than or equal to the given value.","in":"query","name":"id__lte","schema":{"type":"integer"}},{"description":"Limits the number of results returned in the response.","in":"query","name":"limit","required":false,"schema":{"type":"integer"}},{"description":"Filters records where `modified_date` is greater than the given value.","in":"query","name":"modified_date__gt","schema":{"format":"date-time","type":"string"}},{"description":"Filters records where `modified_date` is greater than or equal to the given value.","in":"query","name":"modified_date__gte","schema":{"format":"date-time","type":"string"}},{"description":"Filters records where `modified_date` is less than the given value.","in":"query","name":"modified_date__lt","schema":{"format":"date-time","type":"string"}},{"description":"Filters records where `modified_date` is less than or equal to the given value.","in":"query","name":"modified_date__lte","schema":{"format":"date-time","type":"string"}},{"description":"Query parameter `page` used to filter results based on specific conditions.","in":"query","name":"page","required":false,"schema":{"type":"integer"}},{"description":"Query parameter `sort` used to filter results based on specific conditions.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Query parameter `user` used to filter results based on specific conditions.","in":"query","name":"user","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedRevisionList"}}},"description":"Successful response for status code 200."}},"tags":["reversions"]}}}}
```

## GET /reversions/revisions/{id}/

> This method retrieves details about specific revisions, tracking changes made to objects over time. This is useful for auditing purposes and ensures traceability of modifications. Each revision includes an ID, creation date, an optional comment explaining the change, and the user who made the revision. This endpoint retrieves a specific record by its unique identifier.

```json
{"openapi":"3.0.3","info":{"title":"Data Warehouse","version":"1.0.0"},"servers":[{"description":"Server base URL with dynamic channel_id.","url":"https://{omnitron_url}/api/v1/remote/{channel_id}/data-warehouse","variables":{"channel_id":{"default":"1","description":"Unique identifier for the sales channel."},"omnitron_url":{"default":"sandbox.akinon.com"}}},{"description":"Server base URL with Commerce URL.","url":"https://{commerce_url}/api/v1/data-warehouse","variables":{"commerce_url":{"default":"sandbox.commerce.akinon.com"}}}],"security":[{"tokenAuth":[]}],"components":{"securitySchemes":{"tokenAuth":{"description":"Token-based authentication with required prefix \"Token\"","in":"header","name":"Authorization","type":"apiKey"}},"schemas":{"Revision":{"properties":{"comment":{"description":"A text comment on this revision.","type":"string"},"date_created":{"description":"Timestamp indicating when the record was created.","format":"date-time","type":"string"},"id":{"description":"Unique identifier for the record.","type":"integer"},"user":{"description":"The user who created this revision.","nullable":true,"type":"integer"}},"type":"object"}}},"paths":{"/reversions/revisions/{id}/":{"get":{"description":"This method retrieves details about specific revisions, tracking changes made to objects over time. This is useful for auditing purposes and ensures traceability of modifications. Each revision includes an ID, creation date, an optional comment explaining the change, and the user who made the revision. This endpoint retrieves a specific record by its unique identifier.","operationId":"reversions_revisions_retrieve","parameters":[{"description":"A unique integer value identifying this revision.","in":"path","name":"id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Revision"}}},"description":"Successful response for status code 200."},"404":{"content":{"application/json":{}},"description":"Object not found."}},"tags":["reversions"]}}}}
```

## GET /reversions/versions/

> This method provides details about a specific version of an object, capturing the state of the object at the time of revision. When a revision is made, the object version prior to the revision is saved, allowing the system to retain the state of the object before the changes were applied. This includes versioning information such as the ID, associated object ID, the database where the object is stored, the format (e.g., 'json'), and the serialized data representing the object. Additionally, it includes details about the revision that the object version is associated with, its content type, and its representation. This is typically used for tracking changes to objects, enabling version control, and allowing the retrieval of specific historical states of the object for auditing, rollback, or comparison purposes.

```json
{"openapi":"3.0.3","info":{"title":"Data Warehouse","version":"1.0.0"},"servers":[{"description":"Server base URL with dynamic channel_id.","url":"https://{omnitron_url}/api/v1/remote/{channel_id}/data-warehouse","variables":{"channel_id":{"default":"1","description":"Unique identifier for the sales channel."},"omnitron_url":{"default":"sandbox.akinon.com"}}},{"description":"Server base URL with Commerce URL.","url":"https://{commerce_url}/api/v1/data-warehouse","variables":{"commerce_url":{"default":"sandbox.commerce.akinon.com"}}}],"security":[{"tokenAuth":[]}],"components":{"securitySchemes":{"tokenAuth":{"description":"Token-based authentication with required prefix \"Token\"","in":"header","name":"Authorization","type":"apiKey"}},"schemas":{"PaginatedVersionList":{"properties":{"count":{"description":"Numerical value representing quantity or total amount.","type":"integer"},"next":{"description":"This field defines the URL of the next page.","format":"uri","nullable":true,"type":"string"},"previous":{"description":"This field defines the URL of the previous page.","format":"uri","nullable":true,"type":"string"},"results":{"description":"This field returns a list of results.","items":{"$ref":"#/components/schemas/Version"},"type":"array"}},"type":"object"},"Version":{"properties":{"content_type":{"description":"The classification or type related to this field.","type":"integer"},"db":{"description":"The database the model under version control is stored in.","maxLength":191,"type":"string"},"format":{"description":"The serialization format used by this model.","maxLength":255,"type":"string"},"id":{"description":"Unique identifier for the record.","type":"integer"},"object_id":{"description":"Primary key of the model under version control.","maxLength":191,"type":"string"},"object_repr":{"description":"A string representation of the object.","type":"string"},"revision":{"description":"The revision that contains this version.","type":"integer"},"serialized_data":{"description":"The serialized form of this version of the model.","type":"string"}},"type":"object"}}},"paths":{"/reversions/versions/":{"get":{"description":"This method provides details about a specific version of an object, capturing the state of the object at the time of revision. When a revision is made, the object version prior to the revision is saved, allowing the system to retain the state of the object before the changes were applied. This includes versioning information such as the ID, associated object ID, the database where the object is stored, the format (e.g., 'json'), and the serialized data representing the object. Additionally, it includes details about the revision that the object version is associated with, its content type, and its representation. This is typically used for tracking changes to objects, enabling version control, and allowing the retrieval of specific historical states of the object for auditing, rollback, or comparison purposes.","operationId":"reversions_versions_list","parameters":[{"description":"Query parameter `content_type` used to filter results based on specific conditions.","in":"query","name":"content_type","schema":{"type":"integer"}},{"description":"Query parameter `db` used to filter results based on specific conditions.","in":"query","name":"db","schema":{"type":"string"}},{"description":"Query parameter `format` used to filter results based on specific conditions.","in":"query","name":"format","schema":{"type":"string"}},{"description":"Query parameter `id` used to filter results based on specific conditions.","in":"query","name":"id","schema":{"type":"integer"}},{"description":"Filters records where `id` is greater than the given value.","in":"query","name":"id__gt","schema":{"type":"integer"}},{"description":"Filters records where `id` is greater than or equal to the given value.","in":"query","name":"id__gte","schema":{"type":"integer"}},{"description":"Filters records where `id` is less than the given value.","in":"query","name":"id__lt","schema":{"type":"integer"}},{"description":"Filters records where `id` is less than or equal to the given value.","in":"query","name":"id__lte","schema":{"type":"integer"}},{"description":"Limits the number of results returned in the response.","in":"query","name":"limit","required":false,"schema":{"type":"integer"}},{"description":"Query parameter `object_id` used to filter results based on specific conditions.","in":"query","name":"object_id","schema":{"type":"string"}},{"description":"Query parameter `object_repr` used to filter results based on specific conditions.","in":"query","name":"object_repr","schema":{"type":"string"}},{"description":"Query parameter `page` used to filter results based on specific conditions.","in":"query","name":"page","required":false,"schema":{"type":"integer"}},{"description":"Query parameter `revision` used to filter results based on specific conditions.","in":"query","name":"revision","schema":{"type":"integer"}},{"description":"Query parameter `serialized_data` used to filter results based on specific conditions.","in":"query","name":"serialized_data","schema":{"type":"string"}},{"description":"Query parameter `sort` used to filter results based on specific conditions.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedVersionList"}}},"description":"Successful response for status code 200."}},"tags":["reversions"]}}}}
```

## GET /reversions/versions/{id}/

> This method provides details about a specific version of an object, capturing the state of the object at the time of revision. When a revision is made, the object version prior to the revision is saved, allowing the system to retain the state of the object before the changes were applied. This includes versioning information such as the ID, associated object ID, the database where the object is stored, the format (e.g., 'json'), and the serialized data representing the object. Additionally, it includes details about the revision that the object version is associated with, its content type, and its representation. This is typically used for tracking changes to objects, enabling version control, and allowing the retrieval of specific historical states of the object for auditing, rollback, or comparison purposes. This endpoint retrieves a specific record by its unique identifier.

```json
{"openapi":"3.0.3","info":{"title":"Data Warehouse","version":"1.0.0"},"servers":[{"description":"Server base URL with dynamic channel_id.","url":"https://{omnitron_url}/api/v1/remote/{channel_id}/data-warehouse","variables":{"channel_id":{"default":"1","description":"Unique identifier for the sales channel."},"omnitron_url":{"default":"sandbox.akinon.com"}}},{"description":"Server base URL with Commerce URL.","url":"https://{commerce_url}/api/v1/data-warehouse","variables":{"commerce_url":{"default":"sandbox.commerce.akinon.com"}}}],"security":[{"tokenAuth":[]}],"components":{"securitySchemes":{"tokenAuth":{"description":"Token-based authentication with required prefix \"Token\"","in":"header","name":"Authorization","type":"apiKey"}},"schemas":{"Version":{"properties":{"content_type":{"description":"The classification or type related to this field.","type":"integer"},"db":{"description":"The database the model under version control is stored in.","maxLength":191,"type":"string"},"format":{"description":"The serialization format used by this model.","maxLength":255,"type":"string"},"id":{"description":"Unique identifier for the record.","type":"integer"},"object_id":{"description":"Primary key of the model under version control.","maxLength":191,"type":"string"},"object_repr":{"description":"A string representation of the object.","type":"string"},"revision":{"description":"The revision that contains this version.","type":"integer"},"serialized_data":{"description":"The serialized form of this version of the model.","type":"string"}},"type":"object"}}},"paths":{"/reversions/versions/{id}/":{"get":{"description":"This method provides details about a specific version of an object, capturing the state of the object at the time of revision. When a revision is made, the object version prior to the revision is saved, allowing the system to retain the state of the object before the changes were applied. This includes versioning information such as the ID, associated object ID, the database where the object is stored, the format (e.g., 'json'), and the serialized data representing the object. Additionally, it includes details about the revision that the object version is associated with, its content type, and its representation. This is typically used for tracking changes to objects, enabling version control, and allowing the retrieval of specific historical states of the object for auditing, rollback, or comparison purposes. This endpoint retrieves a specific record by its unique identifier.","operationId":"reversions_versions_retrieve","parameters":[{"description":"A unique integer value identifying this sürüm.","in":"path","name":"id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Version"}}},"description":"Successful response for status code 200."},"404":{"content":{"application/json":{}},"description":"Object not found."}},"tags":["reversions"]}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://apidocs.akinon.com/commerce-openapis/data-warehouse/reversions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
