> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fire.rest/llms.txt
> Use this file to discover all available pages before exploring further.

# Atualizar receita (somente rascunhos)

> Atualiza campos de uma receita. Permitido apenas em estado DRAFT.

<ParamField header="x-api-key" type="string" required>
  API key do BOH com escopo `recipes:write`.
</ParamField>

<ParamField path="vendorId" type="string" required>UUID do vendor.</ParamField>
<ParamField path="recipeId" type="string" required>UUID da receita.</ParamField>
<ParamField body="name" type="string">Novo nome.</ParamField>
<ParamField body="yield_quantity" type="number">Nova quantidade produzida.</ParamField>
<ParamField body="yield_unit_id" type="string">Nova unidade de produção.</ParamField>
<ParamField body="ingredients" type="object[]">Substitui a lista completa de ingredientes.</ParamField>
<ParamField body="external_user_id" type="string">Ator para auditoria.</ParamField>

<RequestExample>
  ```json theme={null}
  { "name": "Molho de Tomate Base" }
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  { "id": "rec_01...", "name": "Molho de Tomate Base", "status": "DRAFT" }
  ```

  ```json 422 theme={null}
  {
    "error": {
      "kind": "recipe_not_draft",
      "message": "Only DRAFT recipes can be updated"
    }
  }
  ```
</ResponseExample>
