Skip to main content

PATCH /api/recipes/[id]

Updates a recipe. Only the recipe owner can update it. All fields are optional.
Requires authentication. Owner only.

Request Body

Same fields as Create Recipe, all optional.

Response (200)

{
  "message": "Recipe updated successfully",
  "recipe": { ... }
}

Errors

StatusCodeReason
400VALIDATION_ERRORInvalid fields
401UNAUTHORIZEDNot authenticated
403FORBIDDENNot the recipe owner
404NOT_FOUNDRecipe not found