# Update flow version `PATCH` `/api/v1/crm-connections/{crm_connection_id}/flows/{flow_id}/versions/{version_id}` Update a flow version by submitting a complete metadata object. The metadata must include all fields, not just the ones being changed — fetch the current metadata via get_flow_version first, modify what you need, then submit the full object. Returns 204 on success. Active versions cannot be edited. ## Path parameters | Name | Type | Required | Description | |------|------|----------|-------------| | crm_connection_id | string | yes | UUID of the CRM connection | | flow_id | string | yes | DurableId of the flow definition | | version_id | string | yes | DurableId of the flow version, as returned in the durable_id field of list_flow_versions | ## Request body `application/json` | Field | Type | Required | Description | |-------|------|----------|-------------| | metadata | object | yes | Complete flow metadata object. Fetch the current metadata via get_flow_version first, modify what you need, then submit the full object — not just the changed fields. | ## Response `204 No Content` — `application/json` _No response body._ ## Errors | Status | Description | |--------|-------------| | 400 | Bad Request | | 403 | Forbidden | | 404 | Not Found | | 422 | Unprocessable Entity | | 502 | Bad Gateway |