Activate DTT template
Activates a training program template by ID. Only one template can be active at a time. If your schedule type is "auto" or "weekly", it will be switched to "single" mode. All other templates (owned and imported) will be deactivated.
Authorizations
AuthorizationstringheaderrequiredAPI tokens can be created in the Dashboard settings. Requires an Ultra subscription.
Path Parameters
idintegerpathrequiredThe DTT template (training program) ID
Required range: x ≥ 1
Example: 1
Body
isActivebooleanrequiredMust be true to activate
Response
200application/jsonTemplate activated
Template activated
okbooleanrequireddatavaluerequiredShow child attributes
idintegerTemplate ID
bubbleIdstringUnique public identifier
ownerIdintegerOwner user ID
namestringProgram name
descriptionstringProgram description
taglinestringShort tagline
messagestringWelcome message
isPublicbooleanWhether publicly visible
isActivebooleanWhether currently active
handsFreeModebooleanHands-free mode enabled
targetDepthintegerTarget depth percentage
targetWindowintegerTarget window size
toyIdinteger | nullAssociated toy ID
createdDatestring<date-time>Creation date
updatedAtstring<date-time>Last update time
Segmentobject[]Show child attributes
idintegertypeenumSegment type
Allowed values: repetitionendurancefreeformbounce
durationintegerDuration (meaning varies by type)
speedintegerSpeed setting (1–1000)
repeatintegerNumber of times to repeat
orderintegerPosition in the segment list (0-based)
passFailEnabledbooleanWhether pass/fail grading is enabled
passGradeThresholdintegerMinimum grade to pass (0–100)
failureTextstring | nullMessage shown on failure
scheduleTypeChangedbooleanWhether schedule type was changed to single
400application/jsonInvalid request
Invalid request
okbooleanrequirederrorstringrequired401application/jsonAuthentication required or token invalid
Authentication required or token invalid
okbooleanrequirederrorstringrequired404application/jsonTemplate not found or not owned
Template not found or not owned
okbooleanrequirederrorstringrequired