> ## 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.

# Actualizar receta (solo borradores)

> Actualiza campos de una receta. Solo se permite en estado DRAFT.

<ParamField header="x-api-key" type="string" required>
  API key de BOH con scope `recipes:write`.
</ParamField>

<ParamField path="vendorId" type="string" required>UUID del vendor.</ParamField>
<ParamField path="recipeId" type="string" required>UUID de la receta.</ParamField>

<ParamField body="name" type="string">Nuevo nombre.</ParamField>
<ParamField body="yield_quantity" type="number">Nueva cantidad producida.</ParamField>
<ParamField body="yield_unit_id" type="string">Nueva unidad de producción.</ParamField>
<ParamField body="ingredients" type="object[]">Reemplaza la lista completa de ingredientes.</ParamField>
<ParamField body="external_user_id" type="string">Actor para auditoría.</ParamField>

<RequestExample>
  ```json theme={null}
  {
    "name": "Salsa de Tomate Base",
    "external_user_id": "chef_01"
  }
  ```
</RequestExample>

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

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