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.
The ID of the project to query
"user/project"
Filter criteria for the query. See ObjectVersionFilter
Show child attributes
{
"latest_only": true,
"object_ids": ["my_favorite_model"]
}
Maximum number of results to return
100
Number of results to skip before returning
0
Sorting criteria for the query results. Currently only supports 'object_id' and 'created_at'.
Show child attributes
[
{
"direction": "desc",
"field": "created_at"
}
]
If true, the val column is not read from the database and is empty.All other fields are returned.
If true, the size_bytes column is returned.
Successful Response
Show child attributes
Was this page helpful?