Skip to main content

create ingredient de recipe

Appends an ingredient at the end of the recipe. Requires Authorization: Bearer with a Better Auth session token.
1 min read
post/nutrition/profiles/{studioId}/recipes/{recipeId}/ingredients
Request example
Response
post/nutrition/profiles/{studioId}/recipes/{recipeId}/ingredients

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.

Body

application/json
namestringrequired#
quantitynumber#
unitstring#
positioninteger#
Appended at the end of the list by default.

Responses

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