---
title: "Écrire le brouillon"
method: PUT
path: "/api/v1/flows/{flow_id}"
---

# Écrire le brouillon

`PUT /api/v1/flows/{flow_id}`

## Request

- Base URL: `https://api.yesrelay.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.yesrelay.com/api/v1/flows/{flow_id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Relay-Key`

Remplace le BROUILLON. Le parcours entendu par les appelants ne change pas : la publication se fait dans l'application, par un humain. Un brouillon peut être incomplet, mais pas structurellement invalide.

## Path parameters

- `flow_id` string, required

## Request body

- FlowDraftReq: Écriture d'un BROUILLON. Volontairement sans `enabled` : voir l'en-tête du module.
  - `name` string, nullable
  - `entry` string, nullable
  - `nodes` object, nullable
  - `layout` object, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/yesrelay/apis/relay-api-publique.md) · [All operations](https://skmtc.dev/yesrelay/apis/relay-api-publique/llms.txt) · [OpenAPI document](https://skmtc.dev/yesrelay/apis/relay-api-publique/revisions/6f5eda01fd98?raw)
