Skip to main content

Bulk-create workout sessions

Bulk-create workout sessions. Partial success with ids and per-index errors. Max 50 items.
1 min read
post/health/profiles/{studioId}/sessions/bulk-create
Request example
Response
post/health/profiles/{studioId}/sessions/bulk-create

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.

Body

application/json
sessionsobject[]required#

Items: max 50

Show child attributes
RoutineIDstring#
Titlestringrequired#
SportLabelstringrequired#
PerformedAtstringrequired#
DurationMinutesinteger#
Notesstring#

Responses

application/json
Created with partial success support.
dataobjectrequired#
Show child attributes
idsstring[]required#
errorsobject[]required#
Show child attributes
indexintegerrequired#
messagestringrequired#
request_idstringrequired#