Version
API for Version object
Method & Permission
*Only the commit
message can be updated.
Version List
GET
{{ base_url }} /tables/version/list/{level}/{sid}/{serializer}/
Path Parameters
Query Parameters
Headers
#serializer = name
{
"page_size": 10,
"page_number": 1,
"page_count": 4,
"count": 33,
"next": "xxx",
"previous": null,
"add_permission": true,
"results": [
{
"sid": "xxx",
"name": "EP625: Test Name 20200525133408 (33)"
},
...
]
}
#serializer = list
{
"page_size": 10,
"page_number": 1,
"page_count": 4,
"count": 33,
"next": "xxx",
"previous": null,
"add_permission": true,
"results": [
{
"sid": "xxx",
"name": "EP625: Test Name 20200525133408 (33)",
"hash": "xxx",
"previousHash": "xxx",
"version": 33,
"activity_message": "xxx",
"commit": null,
"is_valid": true,
"updated_by": "Yonggan Wu",
"date_created": "2020-06-12T18:54:06.314767Z",
"change_permission": true
}
...
]
}
#serializer = name
{
"page_size": 10,
"page_number": 1,
"page_count": 4,
"count": 33,
"next": "xxx",
"previous": null,
"add_permission": true,
"results": [
{
"sid": "xxx",
"name": "EP625: Test Name 20200525133408 (33)",
"hash": "xxx",
"data": {},
"previousHash": "xxx",
"version": 33,
"activity_message": "xxx",
"commit": null,
"is_valid": true,
"updated_by": "Yonggan Wu",
"date_created": "2020-06-12T18:54:06.314767Z",
"change_permission": true
},
...
]
}
Version Detail
GET
{{ base_url }} /tables/version/detail/{sid}/
Path Parameters
Headers
{
"sid": "xxx",
"hash": "VGd4bzZhZmVhMzBkOWZlMmViNTdmZDE3YzBhOWVlMTUwYmMzSEZMcQ__",
"previousHash": "WFFWbGRlMzViMmM1MzViZmM0MTdmYjU2N2FmZWFkYmFjOGJkWHFRSw__",
"version": 8,
"data": {
...
}
"activity_message": "Updated data of Section (Files (No Preview)) from None to {\"files\": [{\"sid\": \"orux0a40x239qvAFKPUZ\", \"name\": \" FL143: FL154_ Small Workbook.xlsx (v3)\"}, {\"sid\": \"mpsv0a40x237otyDINSX\", \"name\": \" FL141: 2015-5-5 lib pool.xlsx (v3)\"}, {\"sid\": \"ehkn0a40x7dglqvAFKP\", \"name\": \" FL8: linkers and templates for subset-2.xlsx (v3)\"}]}",
"updated_by": {
"sid": "xxx",
"first_name": "xxx",
"last_name": "xxx",
"email": "xxx@labii.com"
},
"date_updated": "2018-07-27T07:10:57.293464Z",
"date_created": "2018-07-27T07:10:57.279388Z",
"change_permission": false
}
Version Detail
PATCH
/tables/version/detail/{sid}/
Path Parameters
Headers
Request Body
{
"sid": "xxx",
"hash": "VGd4bzZhZmVhMzBkOWZlMmViNTdmZDE3YzBhOWVlMTUwYmMzSEZMcQ__",
"previousHash": "WFFWbGRlMzViMmM1MzViZmM0MTdmYjU2N2FmZWFkYmFjOGJkWHFRSw__",
"version": 8,
"data": {
...
}
"activity_message": "Updated data of Section (Files (No Preview)) from None to {\"files\": [{\"sid\": \"orux0a40x239qvAFKPUZ\", \"name\": \" FL143: FL154_ Small Workbook.xlsx (v3)\"}, {\"sid\": \"mpsv0a40x237otyDINSX\", \"name\": \" FL141: 2015-5-5 lib pool.xlsx (v3)\"}, {\"sid\": \"ehkn0a40x7dglqvAFKP\", \"name\": \" FL8: linkers and templates for subset-2.xlsx (v3)\"}]}",
"updated_by": {
"sid": "xxx",
"first_name": "xxx",
"last_name": "xxx",
"email": "xxx@labii.com"
},
"date_updated": "2018-07-27T07:10:57.293464Z",
"date_created": "2018-07-27T07:10:57.279388Z",
"change_permission": false
}
Last updated