Objs Query
POST/objs/query
Objs Query
Request
- application/json
Body
required
- ObjectVersionFilter
- MOD1
Array [
]
- MOD1
Array [
]
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
Array [
]
- MOD1
The ID of the project to query
filter
object
Filter criteria for the query. See ObjectVersionFilter
anyOf
base_object_classes
object
Filter objects by their base classes
anyOf
string
object_ids
object
Filter objects by their IDs
anyOf
string
is_op
object
Filter objects based on whether they are weave.ops or not. True
will only return ops, False
will return non-ops, and None
will return all objects
anyOf
boolean
latest_only
object
If True, return only the latest version of each object. False
and None
will return all versions
anyOf
boolean
limit
object
Maximum number of results to return
anyOf
integer
offset
object
Number of results to skip before returning
anyOf
integer
sort_by
object
Sorting criteria for the query results. Currently only supports 'object_id' and 'created_at'.
anyOf
Possible values: [asc
, desc
]
metadata_only
object
If true, the val
column is not read from the database and is empty.All other fields are returned.
anyOf
boolean
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Array [
- MOD1
- MOD1
]
objs
object[]
required
deleted_at
object
anyOf
string
base_object_class
object
required
anyOf
string
{
"objs": [
{
"project_id": "string",
"object_id": "string",
"created_at": "2024-10-09T19:25:34.387Z",
"deleted_at": "2024-10-09T19:25:34.387Z",
"digest": "string",
"version_index": 0,
"is_latest": 0,
"kind": "string",
"base_object_class": "string"
}
]
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}