Workflows
Edit a workflow / publish a new version (Beta)
Beta. Edit an organization workflow, publishing a new immutable version. A changelog is required (changelog_required otherwise). Valyu-curated workflows are read-only and return 403 cannot_edit_valyu_workflow.
patch/v1/workflows/{slug}
Request
- Base URL: https://api.valyu.ai
- URL: https://api.valyu.ai/v1/workflows/{slug}
- Auth: API key in header X-API-Key
Path parameters
slugstring required
The workflow slug.
Request body
Example request
{
"version": {
"prompt": "Build a company profile for {company} covering its business, financials, and recent developments.",
"strategy": "Prioritise the latest 10-K/10-Q, investor relations materials, and reputable news.",
"report_format": "A one-page profile with business overview, key financials, and recent developments.",
"variables": [
{
"key": "company",
"label": "Company name",
"type": "text",
"placeholder": "NVIDIA (NVDA)",
"help": "The company you want to profile.",
"examples": [
"NVIDIA (NVDA)",
"Microsoft (MSFT)"
]
}
],
"deliverables": [
{
"type": "xlsx",
"description": "A model summary tab with revenue, margins, and key ratios."
}
],
"recommended_mode": "heavy",
"estimated_time": "10-20 min",
"output_formats": [
{
"type": "object",
"properties": {
"base_case": {
"type": "string"
},
"bull_case": {
"type": "string"
},
"bear_case": {
"type": "string"
},
"confidence": {
"type": "number"
}
}
},
"toon"
],
"changelog": "Added a competitive landscape section."
},
"set_current": true
}Response
New version published.
Example response
{
"slug": "ib-company-profile",
"version": 1,
"vertical": "investment-banking",
"tags": [
"company-profile",
"equities"
],
"title": "Company Profile",
"subtitle": "One-page profile of a public company.",
"description": "Builds a company profile covering business, financials, and recent developments.",
"popular": true,
"recommended_mode": "heavy",
"estimated_time": "10-20 min",
"is_valyu": true,
"variables": [
{
"key": "company",
"label": "Company name",
"type": "text",
"placeholder": "NVIDIA (NVDA)",
"help": "The company you want to profile.",
"examples": [
"NVIDIA (NVDA)",
"Microsoft (MSFT)"
]
}
],
"deliverables": [
{
"type": "xlsx",
"description": "A model summary tab with revenue, margins, and key ratios."
}
],
"created_at": "2026-01-10T12:00:00Z",
"updated_at": "2026-01-15T09:30:00Z",
"prompt": "Build a company profile for {company} covering its business, financials, and recent developments.",
"output_formats": [
{
"type": "object",
"properties": {
"base_case": {
"type": "string"
},
"bull_case": {
"type": "string"
},
"bear_case": {
"type": "string"
},
"confidence": {
"type": "number"
}
}
},
"toon"
]
}Changes
No recorded changes to this operation across all 1 revision of this API.