Get a saved query
Last updated
Was this helpful?
Last updated
Was this helpful?
GetAssessmentQuery retrieves a single saved query object based on the query ID.
Sample request:
curl -X 'GET' \
"$BASE_URL/api/v1/assessments/queries/0827c158-9973-444c-9ca4-b941b73528c9" \
-H "authorization: Bearer $VEZA_TOKEN"
curl -L \
--url '/api/v1/assessments/queries/{id}' \
--header 'Bearer: YOUR_API_KEY'
{
"value": {
"id": "text",
"name": "text",
"description": "text",
"result_type": "NUMBER",
"query_type": "SYSTEM_CREATED",
"raw_permissions": {
"values": [
"text"
],
"operator": "AND"
},
"effective_permissions": {
"values": [
"METADATA_WRITE"
],
"operator": "AND"
},
"variables": [
"text"
],
"source_node_types": {
"nodes": "[Circular Reference]",
"nodes_operator": "AND"
},
"required_intermediate_node_types": {
"nodes": "[Circular Reference]",
"nodes_operator": "AND"
},
"avoided_intermediate_node_types": {
"nodes": "[Circular Reference]",
"nodes_operator": "AND"
},
"destination_node_types": {
"nodes": "[Circular Reference]",
"nodes_operator": "AND"
},
"no_relation": true,
"created_by": "text",
"visibility": "PUBLIC",
"owners": [
"text"
],
"node_relationship_type": "EFFECTIVE_ACCESS",
"integration_types": [
"text"
],
"labels": [
"text"
],
"created_at": "2025-03-28T21:38:35.421Z",
"updated_at": "2025-03-28T21:38:35.421Z",
"source_type": "text",
"destination_types": [
"text"
],
"relates_to_exp": {
"specs": "[Circular Reference]",
"child_expressions": "[Circular Reference]",
"operator": "AND",
"not": true,
"and_op_type": "INFERRED"
},
"all_entity_condition": {
"specs": [
{
"fn": "EQ",
"property": "text",
"value": null,
"not": true,
"value_property_name": "text",
"value_property_from_other_node": true
}
],
"child_expressions": "[Circular Reference]",
"operator": "AND",
"not": true
},
"path_summary_node_types": {
"nodes": "[Circular Reference]",
"nodes_operator": "AND"
},
"path_summary_count_conditions": {
"conditions": [
{
"fn": "EQ",
"value": "text",
"value_as": "COUNT"
}
]
},
"risk_level": "NONE",
"risk_suppressed_constraints": {
"nodes": "[Circular Reference]"
},
"analysis_type": "UNSET",
"result": 1,
"result_evaluated_at": "2025-03-28T21:38:35.421Z",
"result_evaluated": true
}
}
A successful response.