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

Screenshot_2025-09-10_at_10.11.35

Before After

How to set up and validate locally

  1. Assure that AI catalog is enabled::Feature.enable(:global_ai_catalog)
  2. Create a flow with AI Catalog
  3. 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.

Merge request reports

Loading