Skip to main content
POST
/
dtt
/
templates
/
{id}
Activate DTT template
curl --request POST \
  --url https://dashboard.researchanddesire.com/api/v1/dtt/templates/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "isActive": true
}
'
{
  "ok": true,
  "data": {
    "id": 1,
    "name": "Beginner Program",
    "isActive": true,
    "scheduleTypeChanged": true,
    "Segment": [
      {
        "id": 1,
        "type": "warmup",
        "duration": 60
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

API tokens can be created in the Dashboard settings. Requires an Ultra subscription.

Path Parameters

id
integer
required

The DTT template (training program) ID

Required range: x >= 1
Example:

1

Body

application/json
isActive
boolean
required

Must be true to activate

Response

Template activated

ok
boolean
required
data
object
required