Fetch Evaluation Ids
GET/evaluations/by_resource
Fetches evaluation ids for a given resource type and id.
Arguments: resource_type (str): The type of resource for which to fetch evaluations. resource_ids List[ObjectId]: The IDs of resource for which to fetch evaluations.
Raises: HTTPException: If the resource_type is invalid or access is denied.
Returns: List[str]: A list of evaluation ids.
Request
Query Parameters
resource_type Resource Typerequired
resource_ids string[]
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
string
[
"string"
]
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...