curl --request POST \
--url https://api.1club.ai/v1/platform/progression-tracks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"fromTemplateId": 123,
"name": "<string>",
"sport": "<string>",
"description": "<string>",
"maxStripes": 5,
"ageOutAge": 50,
"ageOutTrackId": 123,
"levels": [
{
"id": 123,
"skill": "<string>",
"level": "<string>",
"description": "<string>",
"color": "<string>",
"requiredSessions": 2,
"requiredDays": 2,
"ageOutLevelId": 123
}
]
}
'import requests
url = "https://api.1club.ai/v1/platform/progression-tracks"
payload = {
"fromTemplateId": 123,
"name": "<string>",
"sport": "<string>",
"description": "<string>",
"maxStripes": 5,
"ageOutAge": 50,
"ageOutTrackId": 123,
"levels": [
{
"id": 123,
"skill": "<string>",
"level": "<string>",
"description": "<string>",
"color": "<string>",
"requiredSessions": 2,
"requiredDays": 2,
"ageOutLevelId": 123
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
fromTemplateId: 123,
name: '<string>',
sport: '<string>',
description: '<string>',
maxStripes: 5,
ageOutAge: 50,
ageOutTrackId: 123,
levels: [
{
id: 123,
skill: '<string>',
level: '<string>',
description: '<string>',
color: '<string>',
requiredSessions: 2,
requiredDays: 2,
ageOutLevelId: 123
}
]
})
};
fetch('https://api.1club.ai/v1/platform/progression-tracks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.1club.ai/v1/platform/progression-tracks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'fromTemplateId' => 123,
'name' => '<string>',
'sport' => '<string>',
'description' => '<string>',
'maxStripes' => 5,
'ageOutAge' => 50,
'ageOutTrackId' => 123,
'levels' => [
[
'id' => 123,
'skill' => '<string>',
'level' => '<string>',
'description' => '<string>',
'color' => '<string>',
'requiredSessions' => 2,
'requiredDays' => 2,
'ageOutLevelId' => 123
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.1club.ai/v1/platform/progression-tracks"
payload := strings.NewReader("{\n \"fromTemplateId\": 123,\n \"name\": \"<string>\",\n \"sport\": \"<string>\",\n \"description\": \"<string>\",\n \"maxStripes\": 5,\n \"ageOutAge\": 50,\n \"ageOutTrackId\": 123,\n \"levels\": [\n {\n \"id\": 123,\n \"skill\": \"<string>\",\n \"level\": \"<string>\",\n \"description\": \"<string>\",\n \"color\": \"<string>\",\n \"requiredSessions\": 2,\n \"requiredDays\": 2,\n \"ageOutLevelId\": 123\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.1club.ai/v1/platform/progression-tracks")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"fromTemplateId\": 123,\n \"name\": \"<string>\",\n \"sport\": \"<string>\",\n \"description\": \"<string>\",\n \"maxStripes\": 5,\n \"ageOutAge\": 50,\n \"ageOutTrackId\": 123,\n \"levels\": [\n {\n \"id\": 123,\n \"skill\": \"<string>\",\n \"level\": \"<string>\",\n \"description\": \"<string>\",\n \"color\": \"<string>\",\n \"requiredSessions\": 2,\n \"requiredDays\": 2,\n \"ageOutLevelId\": 123\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.1club.ai/v1/platform/progression-tracks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"fromTemplateId\": 123,\n \"name\": \"<string>\",\n \"sport\": \"<string>\",\n \"description\": \"<string>\",\n \"maxStripes\": 5,\n \"ageOutAge\": 50,\n \"ageOutTrackId\": 123,\n \"levels\": [\n {\n \"id\": 123,\n \"skill\": \"<string>\",\n \"level\": \"<string>\",\n \"description\": \"<string>\",\n \"color\": \"<string>\",\n \"requiredSessions\": 2,\n \"requiredDays\": 2,\n \"ageOutLevelId\": 123\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"name": "<string>",
"sport": "<string>",
"description": "<string>",
"custom": true,
"enabled": true,
"levelCount": 123,
"programIds": [
123
],
"classTypeIds": [
123
],
"maxStripes": 123,
"ageOutAge": 123,
"ageOutTrackId": 123,
"templateId": 123,
"levels": [
{
"id": 123,
"skill": "<string>",
"level": "<string>",
"name": "<string>",
"description": "<string>",
"color": "<string>",
"requiredSessions": 123,
"requiredDays": 123,
"ageOutLevelId": 123
}
]
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}Create a progression track
Creates one of the organization’s own tracks, with name, sport and usually its whole ladder in levels. Or pass a global template’s id as fromTemplateId to copy it into the organization’s own (what the dashboard’s “Customize” does): the copy takes the template’s levels, members’ ranks on the template move onto the copy, programs linked to the template count toward the copy, and the template is disabled. Any other field sent changes the copy, except levels: the copy’s levels have ids only once it exists, so change them with a PATCH. A save that is refused writes nothing. Supports the Idempotency-Key header.
curl --request POST \
--url https://api.1club.ai/v1/platform/progression-tracks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"fromTemplateId": 123,
"name": "<string>",
"sport": "<string>",
"description": "<string>",
"maxStripes": 5,
"ageOutAge": 50,
"ageOutTrackId": 123,
"levels": [
{
"id": 123,
"skill": "<string>",
"level": "<string>",
"description": "<string>",
"color": "<string>",
"requiredSessions": 2,
"requiredDays": 2,
"ageOutLevelId": 123
}
]
}
'import requests
url = "https://api.1club.ai/v1/platform/progression-tracks"
payload = {
"fromTemplateId": 123,
"name": "<string>",
"sport": "<string>",
"description": "<string>",
"maxStripes": 5,
"ageOutAge": 50,
"ageOutTrackId": 123,
"levels": [
{
"id": 123,
"skill": "<string>",
"level": "<string>",
"description": "<string>",
"color": "<string>",
"requiredSessions": 2,
"requiredDays": 2,
"ageOutLevelId": 123
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
fromTemplateId: 123,
name: '<string>',
sport: '<string>',
description: '<string>',
maxStripes: 5,
ageOutAge: 50,
ageOutTrackId: 123,
levels: [
{
id: 123,
skill: '<string>',
level: '<string>',
description: '<string>',
color: '<string>',
requiredSessions: 2,
requiredDays: 2,
ageOutLevelId: 123
}
]
})
};
fetch('https://api.1club.ai/v1/platform/progression-tracks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.1club.ai/v1/platform/progression-tracks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'fromTemplateId' => 123,
'name' => '<string>',
'sport' => '<string>',
'description' => '<string>',
'maxStripes' => 5,
'ageOutAge' => 50,
'ageOutTrackId' => 123,
'levels' => [
[
'id' => 123,
'skill' => '<string>',
'level' => '<string>',
'description' => '<string>',
'color' => '<string>',
'requiredSessions' => 2,
'requiredDays' => 2,
'ageOutLevelId' => 123
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.1club.ai/v1/platform/progression-tracks"
payload := strings.NewReader("{\n \"fromTemplateId\": 123,\n \"name\": \"<string>\",\n \"sport\": \"<string>\",\n \"description\": \"<string>\",\n \"maxStripes\": 5,\n \"ageOutAge\": 50,\n \"ageOutTrackId\": 123,\n \"levels\": [\n {\n \"id\": 123,\n \"skill\": \"<string>\",\n \"level\": \"<string>\",\n \"description\": \"<string>\",\n \"color\": \"<string>\",\n \"requiredSessions\": 2,\n \"requiredDays\": 2,\n \"ageOutLevelId\": 123\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.1club.ai/v1/platform/progression-tracks")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"fromTemplateId\": 123,\n \"name\": \"<string>\",\n \"sport\": \"<string>\",\n \"description\": \"<string>\",\n \"maxStripes\": 5,\n \"ageOutAge\": 50,\n \"ageOutTrackId\": 123,\n \"levels\": [\n {\n \"id\": 123,\n \"skill\": \"<string>\",\n \"level\": \"<string>\",\n \"description\": \"<string>\",\n \"color\": \"<string>\",\n \"requiredSessions\": 2,\n \"requiredDays\": 2,\n \"ageOutLevelId\": 123\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.1club.ai/v1/platform/progression-tracks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"fromTemplateId\": 123,\n \"name\": \"<string>\",\n \"sport\": \"<string>\",\n \"description\": \"<string>\",\n \"maxStripes\": 5,\n \"ageOutAge\": 50,\n \"ageOutTrackId\": 123,\n \"levels\": [\n {\n \"id\": 123,\n \"skill\": \"<string>\",\n \"level\": \"<string>\",\n \"description\": \"<string>\",\n \"color\": \"<string>\",\n \"requiredSessions\": 2,\n \"requiredDays\": 2,\n \"ageOutLevelId\": 123\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"name": "<string>",
"sport": "<string>",
"description": "<string>",
"custom": true,
"enabled": true,
"levelCount": 123,
"programIds": [
123
],
"classTypeIds": [
123
],
"maxStripes": 123,
"ageOutAge": 123,
"ageOutTrackId": 123,
"templateId": 123,
"levels": [
{
"id": 123,
"skill": "<string>",
"level": "<string>",
"name": "<string>",
"description": "<string>",
"color": "<string>",
"requiredSessions": 123,
"requiredDays": 123,
"ageOutLevelId": 123
}
]
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}Authorizations
Headers
Body
A new track needs name and sport; a copy of a template needs only fromTemplateId.
Response
The new track and its ladder
A ladder of ranks in one discipline that the organization uses. Reference the id as progressionTrackId on a program to make the sessions of its class types count toward these ranks.
Was this page helpful?