Compare a version with another version
GET
/v1/projects/{projectId}/versions/{versionNumber}/comparisonHow the membership of this version (the head) differs from the base version: recordings added, removed, kept, moved between splits and processed again, episodes added, removed and kept, and members erased after either version was made (counted only). Read-only; both versions stay frozen. `base` equal to the version is 400 VALIDATION_ERROR (reason `same_version`).
curl -X GET 'https://api.embodiflow.io/v1/projects/{projectId}/versions/{versionNumber}/comparison' \
-H "Authorization: Bearer $EMBODIFLOW_PAT"认证
每个请求都需要携带个人访问令牌(PAT)。
- Authorization: Bearer PAT
路径参数
- projectIdstring必填
- versionNumbernumber必填
查询参数
- basenumber必填
Number of the version to compare with (the base); another version of the same project.
响应
Success
- dataobject必填
- baseobject必填
- headobject必填
- recordingsobject必填
- episodesobject必填
- erasedobject必填
响应示例
{
"data": {
"base": {
"number": 0,
"name": "string",
"createdAt": "string"
},
"head": {
"number": 0,
"name": "string",
"createdAt": "string"
},
"recordings": {
"added": 0,
"removed": 0,
"kept": 0,
"splitChanged": 0,
"reprocessed": 0
},
"episodes": {
"added": 0,
"removed": 0,
"kept": 0
},
"erased": {
"base": 0,
"head": 0
}
}
}服务器https://api.embodiflow.io/v1