Skip to main content

Replace health routine blocks

Replace health routine blocks. Requires a Bearer session. a valid Bearer session.
1 min read
put/health/profiles/{studioId}/routines/{routineId}/blocks/replace
Request example
Response
put/health/profiles/{studioId}/routines/{routineId}/blocks/replace

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.
routineIdstringrequired#
Identifier or key routineId.

Body

application/json
Blocksobject[]required#
Show child attributes
Positioninteger#
SectionLabelstring#
Titlestringrequired#
Kindstringrequired#
TargetDurationMinutesinteger#
TargetDistanceMetersinteger#
TargetSetsinteger#
TargetRepsinteger#
Intensitystring#
TargetMetricsanyrequired#
Notesstring#

Responses

No content.