Fetch Evaluation Ids
GET/evaluations/by_resource
Fetches evaluation ids for a given resource type and id.
Arguments: app_id (str): The ID of the app for which to fetch evaluations. 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
app_id App Idrequired
resource_type Resource Typerequired
resource_ids string[]
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
string
[
"5eb7cf5a86d9755df3a6c593"
]
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...