Menu

Restore version

Review API

PATCH https://api-staging-v2.logyx.it/v1/models/<id>

About

Restore a version.

You can send the version_id you wish to restore to in the request body. The API will then create a new version based on that version_id. Note that the restored version will have a new version_id. Previous versions cannot be changed to protect it against changes.

Example

{
    "version_id": 1
}

Response

{
    "code": 200,
    "message": "We have processed your request.",
    "data": {
        "id": 1,
        "version_id": 3,
        "created_at": "2023-01-23T12:06:55.400029",
        "updated_at": null,
        "general": {
            "name": "Example"
        }
    },
    "links": {},
    "errors": []
}
Menu