Patch a saved view
PATCH
/v1/projects/{projectId}/saved-views/{savedViewId}curl -X PATCH 'https://api.embodiflow.io/v1/projects/{projectId}/saved-views/{savedViewId}' \
-H 'Authorization: Bearer $EMBODIFLOW_PAT' \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"filter": {},
"shared": true
}'认证
每个请求都需要携带个人访问令牌(PAT)。
- Authorization: Bearer PAT
路径参数
- projectIdstring必填
- savedViewIdstring必填
请求头参数
- If-Matchstring
Optional precondition. A matching tag proceeds and returns the new ETag. A stale tag returns 412 PRECONDITION_FAILED with no write. Absent proceeds (opt-in this release). If-Match: * succeeds when the resource exists. Malformed values return 400 IF_MATCH_INVALID.
请求体
Content-Typeapplication/json
- namestring
- filterobject
- sharedboolean
响应
Success
- dataobject必填
- savedViewIdstring必填
- namestring必填
- filterobject必填
- sharedone of必填
- createdBystring必填
- isMineone of必填
- updatedAtstring必填
响应示例
{
"data": {
"savedViewId": "string",
"name": "string",
"filter": {
"verdict": "warning",
"failingCheck": "string",
"recordingId": "string",
"collectionOrderId": "string",
"collectionTaskId": "string",
"collectorId": "string",
"uploadedAfter": "string",
"uploadedBefore": "string",
"task": "string",
"taskExact": "string",
"taskMissing": false,
"outcome": "success",
"tag": "string",
"attribute": {},
"splitTag": "test",
"versionSplit": "test",
"durationMin": 0,
"durationMax": 0,
"durationMaxExclusive": 0,
"subtaskCountMin": 0,
"subtaskCountMax": 0,
"subtaskCountMaxExclusive": 0,
"cameraCountMin": 0,
"cameraCountMax": 0,
"cameraCountMaxExclusive": 0,
"fpsMin": 0,
"fpsMax": 0,
"fpsMaxExclusive": 0,
"idleFractionMin": 0,
"idleFractionMax": 0,
"idleFractionMaxExclusive": 0,
"sceneId": "string",
"labelState": "approved",
"hasSubtasks": false,
"annotationJobId": "string",
"sort": "duration",
"order": "asc"
},
"shared": false,
"createdBy": "string",
"isMine": false,
"updatedAt": "string"
}
}服务器https://api.embodiflow.io/v1https://api.embodiflow.dev/v1