Skip to main content

Reemplazar ingredient de recipe

PUT semantics: omitted fields are cleared. Requires Authorization: Bearer with a Better Auth session token.
1 min read
put/nutrition/profiles/{studioId}/recipes/{recipeId}/ingredients/{ingredientId}
Request example
Response
put/nutrition/profiles/{studioId}/recipes/{recipeId}/ingredients/{ingredientId}

Authorization

Authorizationstringheaderrequired#
Better Auth session token. Go resolves the token in the session table and maps it to users.id via auth_user_id. The profile is taken from the path param :studioId when applicable.

Path parameters

studioIdstringrequired#
Identifier or key studioId.
recipeIdstringrequired#
Identifier or key recipeId.
ingredientIdstringrequired#
Identifier or key ingredientId.

Body

application/json
namestringrequired#
quantitynumber#
unitstring#
positioninteger#

Responses

application/json
OK.
dataobjectrequired#
Show child attributes
idstringrequired#
recipeIdstringrequired#
namestringrequired#
quantitynumber#
unitstring#
positionintegerrequired#
Order within the recipe, starting at 0.
request_idstring#