Update a workflow
Partial update. Send `analyzer: null` to switch the workflow to raw responses.
AuthorizationBearer <JWT>Session JWT signed with HS256. Verification pins the algorithm and rejects expired tokens, per RFC8725.
domainId*stringPublic UUID of the domain
workflowId*stringapplication/json- body
name?stringdescription?stringpromptIds?array<string>Ids of the domain's custom prompts this workflow runs
marketLanguagePairId?|Id of one of the domain's market/language pairs; null falls back to the domain's primary market
analyzer?|nullnull removes the analyzer
chartConfig?Workflow updated
application/json- response
id*stringPublic UUID of the workflow
domainId*stringUUID of the domain the workflow belongs to
organizationId*stringUUID of the owning organization
createdBy*stringUUID of the user who created the workflow
name*stringName shown in the dashboard
description?stringWhat the workflow measures
promptIds*array<string>UUIDs of the custom prompts run on every execution
marketLanguagePairId?stringId of the domain market/language pair the prompts run in; absent when the workflow follows the domain's primary market
analyzer?Scoring step applied to each answer; absent on raw-response workflows, which only store the answers
chartConfig*How the results are charted
status*stringWhether the workflow still runs
"active""archived"createdAt*stringWhen the workflow was created
date-timeupdatedAt*stringWhen the workflow was last modified
date-timecurl -X PATCH 'https://api.getmint.ai/api/domains/3fa85f64-5717-4562-b3fc-2c963f66afa6/workflows/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "domainId": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "organizationId": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", "createdBy": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "name": "Recommendation rate", "description": "Share of answers that recommend us by name", "promptIds": [ "3fa85f64-5717-4562-b3fc-2c963f66afa6" ], "marketLanguagePairId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "analyzer": { "prompt": "Does the answer recommend the brand? Reply with true or false.", "outputType": "boolean", "outputConfig": { "min": 0, "max": 10 } }, "chartConfig": { "chartType": "line" }, "status": "active", "createdAt": "2026-05-25T10:30:00.000Z", "updatedAt": "2026-05-25T10:30:00.000Z"}