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
      }
    ]
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.researchanddesire.com/llms.txt

Use this file to discover all available pages before exploring further.

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