Add ai_catalog_item_version_id to DAP Workflow API
What does this MR do and why?
Add ai_catalog_item_version_id to DAP Workflow API
This is a follow up change to add ai_catalog_item_version_id to Duo Agent Platform workflows API
This is a follow up to !204245 (merged)
References
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
- Assure that AI catalog is enabled
::Feature.enable(:global_ai_catalog) - Create a flow with AI Catalog
- Make workflow API Call
export PROJECT_ID=1000000
export GOAL="talk like a pirate"
curl -v -X POST \
-H "Authorization: Bearer $GDK_API_TOKEN" \
-H "Content-Type: application/json" \
-d "{
\"project_id\": \"$PROJECT_ID\",
\"agent_privileges\": [1,2,3,4,5],
\"goal\": \"$GOAL\",
\"start_workflow\": false,
\"environment\": \"web\",
\"ai_catalog_item_version_id\": 2
}" \
http://gdk.test:3000/api/v4/ai/duo_workflows/workflows
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
