Skip to main content

Update a studio membership plan

Amount and interval are immutable after stripePriceId is set.
1 min read
patch/profiles/{studioId}/membership/plans/{planId}
Request example
Response
patch/profiles/{studioId}/membership/plans/{planId}

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

Body

application/json
namestring#
descriptionstring#
amountCentsinteger#

Range: >= 1

billingIntervalenum<string>#
Options:monthyear
perksenum<string>[]#
sortOrderinteger#
stripeProductIdstring#
stripePriceIdstring#
isActiveboolean#

Responses

application/json
OK.
dataobjectrequired#
Show child attributes
idstringrequired#
studioIdstringrequired#
namestringrequired#
descriptionstring#
amountCentsintegerrequired#
currencyenum<string>required#
Options:eur
billingIntervalenum<string>required#
Options:monthyear
stripeProductIdstring#
stripePriceIdstring#
perksenum<string>[]required#
isActivebooleanrequired#
sortOrderintegerrequired#
createdAtstringrequired#
updatedAtstringrequired#
request_idstring#