curl --request POST \
--url https://api.example.com/objs/query \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"project_id": "<string>",
"filter": {
"latest_only": true,
"object_ids": [
"my_favorite_model"
]
},
"limit": 100,
"offset": 0,
"sort_by": [
{
"direction": "desc",
"field": "created_at"
}
],
"metadata_only": false,
"include_storage_size": false
}
'{
"objs": [
{
"project_id": "<string>",
"object_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"digest": "<string>",
"version_index": 123,
"is_latest": 123,
"kind": "<string>",
"base_object_class": "<string>",
"val": "<unknown>",
"deleted_at": "2023-11-07T05:31:56Z",
"leaf_object_class": "<string>",
"wb_user_id": "<string>",
"size_bytes": 123
}
]
}curl --request POST \
--url https://api.example.com/objs/query \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"project_id": "<string>",
"filter": {
"latest_only": true,
"object_ids": [
"my_favorite_model"
]
},
"limit": 100,
"offset": 0,
"sort_by": [
{
"direction": "desc",
"field": "created_at"
}
],
"metadata_only": false,
"include_storage_size": false
}
'{
"objs": [
{
"project_id": "<string>",
"object_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"digest": "<string>",
"version_index": 123,
"is_latest": 123,
"kind": "<string>",
"base_object_class": "<string>",
"val": "<unknown>",
"deleted_at": "2023-11-07T05:31:56Z",
"leaf_object_class": "<string>",
"wb_user_id": "<string>",
"size_bytes": 123
}
]
}Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
조회할 프로젝트 ID
"user/project"
쿼리에 사용할 필터 조건입니다. ObjectVersionFilter를 참고하세요.
표시 하위 속성
{
"latest_only": true,
"object_ids": ["my_favorite_model"]
}반환할 최대 결과 개수입니다.
100
결과를 반환하기 전에 건너뛸 결과 개수입니다.
0
쿼리 결과의 정렬 기준입니다. 현재 'object_id'와 'created_at'만 지원합니다.
표시 하위 속성
[
{
"direction": "desc",
"field": "created_at"
}
]true인 경우 데이터베이스에서 val 컬럼을 읽지 않아 비어 있게 됩니다. 나머지 모든 필드는 반환됩니다.
true인 경우 size_bytes 컬럼이 반환됩니다.
성공 응답
표시 하위 속성