Computed REST Endpoints (deprecated)
Insiders API
Download OpenAPI specification:Download
V1 - Lists athlete users Deprecated
This operation is restricted to manager users. It lists athletes on whom they currently have READ permission.
Authorizations:
query Parameters
| page | integer  Page number  | 
| limit | integer  Number of results per page (max is 3000)  | 
| ordering | string  Enum: "username" "email" "external_id" "first_name" "last_name" "gender" "birthdate" "managed_by"   Order the results by specified field, ascendant. Prefix the field with   | 
| search | string  Multiple fields text search (case-insensitive partial matches). 
  | 
string  Filter on email (insensitive contains)  | |
| username | string  Filter on username (insensitive contains)  | 
| external_id | string  Filter on external_id (insensitive contains)  | 
| first_name | string  Filter on first_name (insensitive contains)  | 
| last_name | string  Filter on last_name (insensitive contains)  | 
| gender | string  Filter on gender (  | 
| managed_by | number  Filter by managed_by (id of manager)  | 
| is_managed | boolean  Filter managed or non managed athletes (valid options are   | 
| birthdate_from | string <date>    Example:  birthdate_from=1996-01-01 Filter on birthdate (greater than or equal)  | 
| birthdate_to | string <date>    Example:  birthdate_to=1998-12-31 Filter on birthdate (lesser than or equal)  | 
Responses
Response samples
- 200
 - 403
 
{- "count": 150,
 - "page": 2,
 - "next": 3,
 - "previous": 1,
 - "results": [
- {
- "id": 12,
 - "username": "jon.doe@example.com",
 - "external_id": "0123456789",
 - "email": "jon.doe@example.com",
 - "managed_by": 1,
 - "athlete_profile": {
- "id": 12,
 - "external_id": "e6195b18-2515-410d-a48e-1009d12f2320",
 - "first_name": "Usain",
 - "last_name": "Bolt",
 - "gender": "M",
 - "weight": 94,
 - "height": 1.95,
 - "birth_date": "1986-08-21",
 - "nationality": "Switzerland",
 - "profile_picture": "iVBORw0KGgoAAAANSUhEUgAA..."
 
} 
} 
] 
}V1 - Creates an athlete user Deprecated
This operation create an athlete account and an email is sent to the user's email address, with the account credentials.
This operation is not restricted. Anyone can use this endpoint to register as an athlete.
Authorizations:
Request Body schema: application/json
| username required  | string  User's name used to authenticate himself/herself  | 
| external_id | string  User's external ID used from another organisation  | 
| email required  | string <email>   User's contact email address  | 
object (AthleteProfile)    | 
Responses
Request samples
- Payload
 
{- "username": "jon.doe@example.com",
 - "external_id": "0123456789",
 - "email": "jon.doe@example.com",
 - "athlete_profile": {
- "external_id": "e6195b18-2515-410d-a48e-1009d12f2320",
 - "first_name": "Usain",
 - "last_name": "Bolt",
 - "gender": "M",
 - "weight": 94,
 - "height": 1.95,
 - "birth_date": "1986-08-21",
 - "nationality": "Switzerland",
 - "profile_picture": "iVBORw0KGgoAAAANSUhEUgAA..."
 
} 
}Response samples
- 201
 - 403
 
{- "id": 12,
 - "username": "jon.doe@example.com",
 - "external_id": "0123456789",
 - "email": "jon.doe@example.com",
 - "managed_by": 1,
 - "athlete_profile": {
- "id": 12,
 - "external_id": "e6195b18-2515-410d-a48e-1009d12f2320",
 - "first_name": "Usain",
 - "last_name": "Bolt",
 - "gender": "M",
 - "weight": 94,
 - "height": 1.95,
 - "birth_date": "1986-08-21",
 - "nationality": "Switzerland",
 - "profile_picture": "iVBORw0KGgoAAAANSUhEUgAA..."
 
} 
}V1 - Creates a managed athlete user Deprecated
This operation create an athlete account managed by a manager.
Username will be a random UUID prefixed by MANAGED- and email will be empty.
This operation target to simplify athlete account creation and permission request processes. Athletes do not need to create their own accounts and accept permissions request. Athlete account created like this are not meant to be logged in to.
This operation is restricted to manager users. The manager must have a specific permission to manage managed athletes, which is given by the Insiders support team if requested.
Authorizations:
Request Body schema: application/json
| external_id | string  User's external ID used from another organisation  | 
| managed_by required  | integer  Reference the manager who manage this athlete account. Only managers can create athlete with this field, and the must put their own id. A set of read, write and share permissions are created for this manager at athlete creation, from 1970-01-01 to 2199-12-31  | 
object (AthleteProfile)    | 
Responses
Request samples
- Payload
 
{- "external_id": "0123456789",
 - "managed_by": 1,
 - "athlete_profile": {
- "external_id": "e6195b18-2515-410d-a48e-1009d12f2320",
 - "first_name": "Usain",
 - "last_name": "Bolt",
 - "gender": "M",
 - "weight": 94,
 - "height": 1.95,
 - "birth_date": "1986-08-21",
 - "nationality": "Switzerland",
 - "profile_picture": "iVBORw0KGgoAAAANSUhEUgAA..."
 
} 
}Response samples
- 201
 - 403
 
{- "id": 12,
 - "username": "jon.doe@example.com",
 - "external_id": "0123456789",
 - "managed_by": 1,
 - "athlete_profile": {
- "id": 12,
 - "external_id": "e6195b18-2515-410d-a48e-1009d12f2320",
 - "first_name": "Usain",
 - "last_name": "Bolt",
 - "gender": "M",
 - "weight": 94,
 - "height": 1.95,
 - "birth_date": "1986-08-21",
 - "nationality": "Switzerland",
 - "profile_picture": "iVBORw0KGgoAAAANSUhEUgAA..."
 
} 
}V1 - Retrieves an athlete by its external id Deprecated
This operation is restricted to manager users who currently have READ permission on this athlete and the athlete himself.
Authorizations:
query Parameters
| external-id required  | string  External ID  | 
Responses
Response samples
- 200
 - 403
 - 404
 
{- "id": 12,
 - "username": "jon.doe@example.com",
 - "external_id": "0123456789",
 - "email": "jon.doe@example.com",
 - "managed_by": 1,
 - "athlete_profile": {
- "id": 12,
 - "external_id": "e6195b18-2515-410d-a48e-1009d12f2320",
 - "first_name": "Usain",
 - "last_name": "Bolt",
 - "gender": "M",
 - "weight": 94,
 - "height": 1.95,
 - "birth_date": "1986-08-21",
 - "nationality": "Switzerland",
 - "profile_picture": "iVBORw0KGgoAAAANSUhEUgAA..."
 
} 
}V1 - Retrieves an athlete Deprecated
This operation is restricted to manager users who currently have READ permission on this athlete and the athlete himself.
Authorizations:
path Parameters
| athlete required  | integer  Athlete ID  | 
query Parameters
| ordering | string  Enum: "username" "email" "external_id" "first_name" "last_name" "gender" "birthdate" "managed_by"   Order the results by specified field, ascendant. Prefix the field with   | 
| search | string  Multiple fields text search (case-insensitive partial matches). 
  | 
string  Filter on email (insensitive contains)  | |
| username | string  Filter on username (insensitive contains)  | 
| external_id | string  Filter on external_id (insensitive contains)  | 
| first_name | string  Filter on first_name (insensitive contains)  | 
| last_name | string  Filter on last_name (insensitive contains)  | 
| gender | string  Filter on gender (  | 
| managed_by | number  Filter by managed_by (id of manager)  | 
| is_managed | boolean  Filter managed or non managed athletes (valid options are   | 
| birthdate_from | string <date>    Example:  birthdate_from=1996-01-01 Filter on birthdate (greater than or equal)  | 
| birthdate_to | string <date>    Example:  birthdate_to=1998-12-31 Filter on birthdate (lesser than or equal)  | 
Responses
Response samples
- 200
 - 403
 - 404
 
{- "id": 12,
 - "username": "jon.doe@example.com",
 - "external_id": "0123456789",
 - "email": "jon.doe@example.com",
 - "managed_by": 1,
 - "athlete_profile": {
- "id": 12,
 - "external_id": "e6195b18-2515-410d-a48e-1009d12f2320",
 - "first_name": "Usain",
 - "last_name": "Bolt",
 - "gender": "M",
 - "weight": 94,
 - "height": 1.95,
 - "birth_date": "1986-08-21",
 - "nationality": "Switzerland",
 - "profile_picture": "iVBORw0KGgoAAAANSUhEUgAA..."
 
} 
}V1 - Updates an athlete Deprecated
This operation is restricted to the athlete himself.
Authorizations:
path Parameters
| athlete required  | integer  Athlete ID  | 
query Parameters
| ordering | string  Enum: "username" "email" "external_id" "first_name" "last_name" "gender" "birthdate" "managed_by"   Order the results by specified field, ascendant. Prefix the field with   | 
| search | string  Multiple fields text search (case-insensitive partial matches). 
  | 
string  Filter on email (insensitive contains)  | |
| username | string  Filter on username (insensitive contains)  | 
| external_id | string  Filter on external_id (insensitive contains)  | 
| first_name | string  Filter on first_name (insensitive contains)  | 
| last_name | string  Filter on last_name (insensitive contains)  | 
| gender | string  Filter on gender (  | 
| managed_by | number  Filter by managed_by (id of manager)  | 
| is_managed | boolean  Filter managed or non managed athletes (valid options are   | 
| birthdate_from | string <date>    Example:  birthdate_from=1996-01-01 Filter on birthdate (greater than or equal)  | 
| birthdate_to | string <date>    Example:  birthdate_to=1998-12-31 Filter on birthdate (lesser than or equal)  | 
Request Body schema: application/json
| username required  | string  User's name used to authenticate himself/herself  | 
| external_id | string  User's external ID used from another organisation  | 
| email required  | string <email>   User's contact email address  | 
object (AthleteProfile)    | 
Responses
Request samples
- Payload
 
{- "username": "jon.doe@example.com",
 - "external_id": "0123456789",
 - "email": "jon.doe@example.com",
 - "athlete_profile": {
- "external_id": "e6195b18-2515-410d-a48e-1009d12f2320",
 - "first_name": "Usain",
 - "last_name": "Bolt",
 - "gender": "M",
 - "weight": 94,
 - "height": 1.95,
 - "birth_date": "1986-08-21",
 - "nationality": "Switzerland",
 - "profile_picture": "iVBORw0KGgoAAAANSUhEUgAA..."
 
} 
}Response samples
- 201
 - 403
 - 404
 
{- "id": 12,
 - "username": "jon.doe@example.com",
 - "external_id": "0123456789",
 - "email": "jon.doe@example.com",
 - "managed_by": 1,
 - "athlete_profile": {
- "id": 12,
 - "external_id": "e6195b18-2515-410d-a48e-1009d12f2320",
 - "first_name": "Usain",
 - "last_name": "Bolt",
 - "gender": "M",
 - "weight": 94,
 - "height": 1.95,
 - "birth_date": "1986-08-21",
 - "nationality": "Switzerland",
 - "profile_picture": "iVBORw0KGgoAAAANSUhEUgAA..."
 
} 
}V1 - Deletes an athlete Deprecated
This operation is restricted to the athlete himself.
Authorizations:
path Parameters
| athlete required  | integer  Athlete ID  | 
query Parameters
| ordering | string  Enum: "username" "email" "external_id" "first_name" "last_name" "gender" "birthdate" "managed_by"   Order the results by specified field, ascendant. Prefix the field with   | 
| search | string  Multiple fields text search (case-insensitive partial matches). 
  | 
string  Filter on email (insensitive contains)  | |
| username | string  Filter on username (insensitive contains)  | 
| external_id | string  Filter on external_id (insensitive contains)  | 
| first_name | string  Filter on first_name (insensitive contains)  | 
| last_name | string  Filter on last_name (insensitive contains)  | 
| gender | string  Filter on gender (  | 
| managed_by | number  Filter by managed_by (id of manager)  | 
| is_managed | boolean  Filter managed or non managed athletes (valid options are   | 
| birthdate_from | string <date>    Example:  birthdate_from=1996-01-01 Filter on birthdate (greater than or equal)  | 
| birthdate_to | string <date>    Example:  birthdate_to=1998-12-31 Filter on birthdate (lesser than or equal)  | 
Responses
Response samples
- 403
 - 404
 
{- "detail": "You do not have permission to perform this action."
 
}V1 - Updates a managed athlete Deprecated
This operation is restricted to the manager user who manage this athlete.
The manager must have a specific permission to manage managed athletes, which is given by the Insiders support team if requested.
Authorizations:
path Parameters
| athlete required  | integer  Athlete ID  | 
Request Body schema: application/json
| external_id | string  User's external ID used from another organisation  | 
| managed_by required  | integer  Reference the manager who manage this athlete account. Only managers can create athlete with this field, and the must put their own id. A set of read, write and share permissions are created for this manager at athlete creation, from 1970-01-01 to 2199-12-31  | 
object (AthleteProfile)    | 
Responses
Request samples
- Payload
 
{- "external_id": "0123456789",
 - "managed_by": 1,
 - "athlete_profile": {
- "external_id": "e6195b18-2515-410d-a48e-1009d12f2320",
 - "first_name": "Usain",
 - "last_name": "Bolt",
 - "gender": "M",
 - "weight": 94,
 - "height": 1.95,
 - "birth_date": "1986-08-21",
 - "nationality": "Switzerland",
 - "profile_picture": "iVBORw0KGgoAAAANSUhEUgAA..."
 
} 
}Response samples
- 201
 - 403
 
{- "id": 12,
 - "username": "jon.doe@example.com",
 - "external_id": "0123456789",
 - "email": "jon.doe@example.com",
 - "managed_by": 1,
 - "athlete_profile": {
- "id": 12,
 - "external_id": "e6195b18-2515-410d-a48e-1009d12f2320",
 - "first_name": "Usain",
 - "last_name": "Bolt",
 - "gender": "M",
 - "weight": 94,
 - "height": 1.95,
 - "birth_date": "1986-08-21",
 - "nationality": "Switzerland",
 - "profile_picture": "iVBORw0KGgoAAAANSUhEUgAA..."
 
} 
}V1 - Deletes a managed athlete Deprecated
This operation is restricted to the manager of this athlete.
Authorizations:
path Parameters
| athlete required  | integer  Athlete ID  | 
Responses
Response samples
- 403
 - 404
 
{- "detail": "You do not have permission to perform this action."
 
}V1 - Changes the user's password Deprecated
This operation is restricted to the athlete himself.
Authorizations:
path Parameters
| athlete required  | integer  Athlete ID  | 
Request Body schema: application/json
| password | string <password>   User's plain password  | 
Responses
Request samples
- Payload
 
{- "password": "SuperPassword$$123"
 
}Response samples
- 404
 
{- "detail": "Not found"
 
}V1 - Lists all the permissions regarding to an athlete Deprecated
This operation is restricted to the athlete himself.
Authorizations:
path Parameters
| athlete required  | integer  Athlete ID  | 
Responses
Response samples
- 200
 - 403
 - 404
 
{- "count": 150,
 - "page": 2,
 - "next": 3,
 - "previous": 1,
 - "results": [
- {
- "id": 12,
 - "manager": 1,
 - "athlete": 2,
 - "start_time": "2020-02-20T13:18:29+0100",
 - "expiration_time": "2022-02-20T13:18:29+0100",
 - "permission": "READ",
 - "is_active": true
 
} 
] 
}V1 - Lists a manager's permissions regarding to an athlete Deprecated
This operation is restricted to the athlete himself.
Authorizations:
path Parameters
| athlete required  | integer  Athlete ID  | 
| manager required  | integer  Manager ID  | 
Responses
Response samples
- 200
 - 403
 - 404
 
{- "count": 150,
 - "page": 2,
 - "next": 3,
 - "previous": 1,
 - "results": [
- {
- "id": 12,
 - "manager": 1,
 - "athlete": 2,
 - "start_time": "2020-02-20T13:18:29+0100",
 - "expiration_time": "2022-02-20T13:18:29+0100",
 - "permission": "READ",
 - "is_active": true
 
} 
] 
}V1 - Creates permissions to a manager Deprecated
This operation is restricted to the athlete himself.
Authorizations:
path Parameters
| athlete required  | integer  Athlete ID  | 
| manager required  | integer  Manager ID  | 
Request Body schema: application/json
| start_time | string <date-time>    | 
| expiration_time | string <date-time>    | 
| permission | string  Enum: "READ" "WRITE" "SHARE"    | 
Responses
Request samples
- Payload
 
{- "start_time": "2020-02-20T13:18:29+0100",
 - "expiration_time": "2022-02-20T13:18:29+0100",
 - "permission": "READ"
 
}Response samples
- 200
 - 403
 - 404
 
{- "id": 12,
 - "manager": 1,
 - "athlete": 2,
 - "start_time": "2020-02-20T13:18:29+0100",
 - "expiration_time": "2022-02-20T13:18:29+0100",
 - "permission": "READ",
 - "is_active": true
 
}V1 - Revokes all permissions to a manager Deprecated
This operation is restricted to the athlete himself.
Authorizations:
path Parameters
| athlete required  | integer  Athlete ID  | 
| manager required  | integer  Manager ID  | 
Responses
Response samples
- 403
 - 404
 
{- "detail": "You do not have permission to perform this action."
 
}V1 - Revokes a specific permission to a manager Deprecated
This operation is restricted to the athlete himself.
Authorizations:
path Parameters
| athlete required  | integer  Athlete ID  | 
| manager required  | integer  Manager ID  | 
| permission required  | integer  Permission ID  | 
Responses
Response samples
- 403
 - 404
 
{- "detail": "You do not have permission to perform this action."
 
}V1 - Lists JSON schemas Deprecated
This operation is restricted to manager users.
Authorizations:
query Parameters
| page | integer  Page number  | 
| limit | integer  Number of results per page (max is 3000)  | 
| ordering | string  Enum: "name" "type" "parent"   Order the results by specified field, ascendant. Prefix the field with   | 
| search | string  Multiple fields text search (case-insensitive partial matches). 
  | 
| type | integer  Filter on type (exact match)  | 
| parent | integer  Filter on parent schema id (exact match)  | 
Responses
Response samples
- 200
 - 403
 - 404
 
{- "count": 150,
 - "page": 2,
 - "next": 3,
 - "previous": 1,
 - "results": [
- {
- "id": 12,
 - "name": "timeframe_soccer",
 - "type": "TIMEFRAME",
 - "parent": 1,
 - "schema": { }
 
} 
] 
}V1 - Retrieves a JSON schema Deprecated
This operation is restricted to manager users.
Authorizations:
path Parameters
| json_schema required  | integer  JSON schema ID  | 
query Parameters
| ordering | string  Enum: "name" "type" "parent"   Order the results by specified field, ascendant. Prefix the field with   | 
| search | string  Multiple fields text search (case-insensitive partial matches). 
  | 
| type | integer  Filter on type (exact match)  | 
| parent | integer  Filter on parent schema id (exact match)  | 
Responses
Response samples
- 200
 - 403
 - 404
 
{- "id": 12,
 - "name": "timeframe_soccer",
 - "type": "TIMEFRAME",
 - "parent": 1,
 - "schema": { }
 
}V1 - Lists activities Deprecated
This operation is restricted to manager users. It lists activities he created.
Authorizations:
query Parameters
| page | integer  Page number  | 
| limit | integer  Number of results per page (max is 3000)  | 
| ordering | string  Value: "name"   Order the results by specified field, ascendant. Prefix the field with   | 
| search | string  Multiple fields text search (case-insensitive partial matches). 
  | 
| name | string  Filter on name (insensitive contains)  | 
| owner | number  Filter by owner (id of manager)  | 
Responses
Response samples
- 200
 - 403
 - 404
 
{- "count": 150,
 - "page": 2,
 - "next": 3,
 - "previous": 1,
 - "results": [
- {
- "id": 12,
 - "name": "World Cup Final 2024 at Stade de la Tuilière",
 - "json": {
- "gpx": "string",
 - "sport": "biking"
 
}, - "json_schema": 1,
 - "owner": 1
 
} 
] 
}V1 - Creates an activity Deprecated
This operation is restricted to manager users.
Authorizations:
Request Body schema: application/json
| name required  | string  Descriptive title  | 
required  | activity_biking (object) or activity_running (object) or activity_soccer (object) or activity_swimming (object) or activity_trailrunning (object) or activity_triathlon (object)  Sport-specific parameters based on   | 
| json_schema required  | integer  ID of the JSON schema describing the activity parameters  | 
| owner required  | integer  ID of the Manager user who owns the activity  | 
Responses
Request samples
- Payload
 
{- "name": "World Cup Final 2024 at Stade de la Tuilière",
 - "json": {
- "gpx": "string",
 - "sport": "biking"
 
}, - "json_schema": 1,
 - "owner": 1
 
}Response samples
- 201
 - 400
 - 403
 
{- "id": 12,
 - "name": "World Cup Final 2024 at Stade de la Tuilière",
 - "json": {
- "gpx": "string",
 - "sport": "biking"
 
}, - "json_schema": 1,
 - "owner": 1
 
}V1 - Retrieves an activity Deprecated
This operation is restricted to the manager user who own this activity.
Authorizations:
path Parameters
| activity required  | integer  Activity ID  | 
query Parameters
| ordering | string  Value: "name"   Order the results by specified field, ascendant. Prefix the field with   | 
| search | string  Multiple fields text search (case-insensitive partial matches). 
  | 
| name | string  Filter on name (insensitive contains)  | 
| owner | number  Filter by owner (id of manager)  | 
Responses
Response samples
- 200
 - 403
 - 404
 
{- "id": 12,
 - "name": "World Cup Final 2024 at Stade de la Tuilière",
 - "json": {
- "gpx": "string",
 - "sport": "biking"
 
}, - "json_schema": 1,
 - "owner": 1
 
}V1 - Updates an activity Deprecated
Update an activity and trigger a new computation of all its time frame's computed data, asynchronously.
This operation is restricted to the manager user who own this activity.
Authorizations:
path Parameters
| activity required  | integer  Activity ID  | 
query Parameters
| ordering | string  Value: "name"   Order the results by specified field, ascendant. Prefix the field with   | 
| search | string  Multiple fields text search (case-insensitive partial matches). 
  | 
| name | string  Filter on name (insensitive contains)  | 
| owner | number  Filter by owner (id of manager)  | 
Request Body schema: application/json
| name required  | string  Descriptive title  | 
required  | activity_biking (object) or activity_running (object) or activity_soccer (object) or activity_swimming (object) or activity_trailrunning (object) or activity_triathlon (object)  Sport-specific parameters based on   | 
| json_schema required  | integer  ID of the JSON schema describing the activity parameters  | 
| owner required  | integer  ID of the Manager user who owns the activity  | 
Responses
Request samples
- Payload
 
{- "name": "World Cup Final 2024 at Stade de la Tuilière",
 - "json": {
- "gpx": "string",
 - "sport": "biking"
 
}, - "json_schema": 1,
 - "owner": 1
 
}Response samples
- 200
 - 400
 - 403
 
{- "id": 12,
 - "name": "World Cup Final 2024 at Stade de la Tuilière",
 - "json": {
- "gpx": "string",
 - "sport": "biking"
 
}, - "json_schema": 1,
 - "owner": 1
 
}V1 - Deletes an activity Deprecated
This operation is restricted to the manager user who own this activity.
Authorizations:
path Parameters
| activity required  | integer  Activity ID  | 
query Parameters
| ordering | string  Value: "name"   Order the results by specified field, ascendant. Prefix the field with   | 
| search | string  Multiple fields text search (case-insensitive partial matches). 
  | 
| name | string  Filter on name (insensitive contains)  | 
| owner | number  Filter by owner (id of manager)  | 
Responses
Response samples
- 403
 - 404
 
{- "detail": "You do not have permission to perform this action."
 
}V1 - List activity's webhooks Deprecated
This operation is restricted to the manager user who own this activity.
Authorizations:
path Parameters
| activity required  | integer  Activity ID  | 
Responses
Response samples
- 200
 - 403
 - 404
 
{- "count": 150,
 - "page": 2,
 - "next": 3,
 - "previous": 1,
 - "results": [
- {
- "id": 12,
 - "secret_token": "123456789",
 - "activity_events": true,
 - "timeframes_events": true
 
} 
] 
}V1 - Create an activity's webhook Deprecated
Register a new webhook.
This operation is restricted to the manager user who own this activity.
Authorizations:
path Parameters
| activity required  | integer  Activity ID  | 
Request Body schema: application/json
| webhook_url required  | string <url>   <= 200 characters   The callback URL  | 
| secret_token required  | string  <= 100 characters   The value to be added in the  When listing or retrieving webhooks from the API, this value is partially hidden (for example   | 
| activity_events required  | boolean  Whether to call this webhook on activity events for this activity:   | 
| timeframes_events required  | boolean  Whether to call this webhook on timeframes events for timeframes related to this activity:   | 
Responses
Request samples
- Payload
 
{- "secret_token": "123456789",
 - "activity_events": true,
 - "timeframes_events": true
 
}Response samples
- 200
 - 400
 - 403
 
{- "id": 12,
 - "secret_token": "123456789",
 - "activity_events": true,
 - "timeframes_events": true
 
}V1 - Retrieves an activity's webhook Deprecated
This operation is restricted to the manager user who own this activity.
Authorizations:
path Parameters
| activity required  | integer  Activity ID  | 
| webhook required  | integer  Activity's webhook ID  | 
Responses
Response samples
- 200
 - 403
 - 404
 
{- "id": 12,
 - "secret_token": "123456789",
 - "activity_events": true,
 - "timeframes_events": true
 
}V1 - Updates an activity's webhook Deprecated
This operation is restricted to the manager user who own this activity.
Authorizations:
path Parameters
| activity required  | integer  Activity ID  | 
| webhook required  | integer  Activity's webhook ID  | 
Request Body schema: application/json
| webhook_url required  | string <url>   <= 200 characters   The callback URL  | 
| secret_token required  | string  <= 100 characters   The value to be added in the  When listing or retrieving webhooks from the API, this value is partially hidden (for example   | 
| activity_events required  | boolean  Whether to call this webhook on activity events for this activity:   | 
| timeframes_events required  | boolean  Whether to call this webhook on timeframes events for timeframes related to this activity:   | 
Responses
Request samples
- Payload
 
{- "secret_token": "123456789",
 - "activity_events": true,
 - "timeframes_events": true
 
}Response samples
- 200
 - 403
 - 404
 
{- "id": 12,
 - "secret_token": "123456789",
 - "activity_events": true,
 - "timeframes_events": true
 
}V1 - Deletes an activity's webhook Deprecated
This operation is restricted to the manager user who own this activity.
Authorizations:
path Parameters
| activity required  | integer  Activity ID  | 
| webhook required  | integer  Activity's webhook ID  | 
Responses
Response samples
- 403
 - 404
 
{- "detail": "You do not have permission to perform this action."
 
}V1 - Lists time frames Deprecated
This operation is restricted to the manager users. It lists time frames he created. Optionally filtered by activity to which it's related.
Authorizations:
query Parameters
| page | integer  Page number  | 
| limit | integer  Number of results per page (max is 3000)  | 
| ordering | string  Enum: "start_time" "end_time" "device" "athlete" "activity"   Order the results by specified field, ascendant. Prefix the field with   | 
| device | number  Filter by device (id)  | 
| athlete | number  Filter by athlete (id)  | 
| owner | number  Filter by owner (id of manager)  | 
| activity | number  Filter by activity (id)  | 
| start_time_from | string <date-time>    Example:  start_time_from=2020-02-20T13:00:00+0100 Filter on start_time (greater than or equal)  | 
| start_time_to | string <date-time>    Example:  start_time_to=2020-02-20T18:00:00+0100 Filter on start_time (lesser than or equal)  | 
| end_time_from | string <date-time>    Example:  end_time_from=2020-02-20T13:00:00+0100 Filter on end_time (greater than or equal)  | 
| end_time_to | string <date-time>    Example:  end_time_to=2020-02-20T18:00:00+0100 Filter on end_time (lesser than or equal)  | 
| with_device | boolean  If   | 
| with_activity | boolean  If   | 
| with_athlete | boolean  If   | 
Responses
Response samples
- 200
 - 403
 
{- "count": 150,
 - "page": 2,
 - "next": 3,
 - "previous": 1,
 - "results": [
- {
- "id": 12,
 - "start_time": "2022-02-20T13:18:29+0100",
 - "end_time": "2022-02-20T14:18:29+0100",
 - "params": {
- "max_hr": 0
 
}, - "device": 123,
 - "activity": 321,
 - "athlete": 42,
 - "owner": 1,
 - "json_schema": 2
 
} 
] 
}V1 - Create a time frame Deprecated
This operation is restricted to manager users.
Authorizations:
Request Body schema: application/json
| start_time | string <date-time>   Start of the time interval considered for computing the metrics. Must >= now for live streaming.  | 
| end_time | string <date-time>   End of the time interval considered for computing the metrics. Must be >= now for live streaming.  | 
timeframe_biking (object) or timeframe_running (object) or timeframe_soccer (object) or timeframe_swimming (object) or timeframe_trailrunning (object) or timeframe_triathlon (object) (TimeFrameParams)   Parameters for the metrics algorithms based on   | |
| device | integer  ID of the device  | 
| activity | integer  ID of the activity  | 
| athlete | integer  ID of the Athlete user wearing the device  | 
| owner | integer  ID the the Manager user owning access to the Timeframe  | 
| json_schema | integer  ID of the JSON schema describing the parameters of the metrics algorithms  | 
Responses
Request samples
- Payload
 
{- "start_time": "2022-02-20T13:18:29+0100",
 - "end_time": "2022-02-20T14:18:29+0100",
 - "params": {
- "max_hr": 0
 
}, - "device": 123,
 - "activity": 321,
 - "athlete": 42,
 - "owner": 1,
 - "json_schema": 2
 
}Response samples
- 201
 - 400
 - 403
 
{- "id": 12,
 - "start_time": "2022-02-20T13:18:29+0100",
 - "end_time": "2022-02-20T14:18:29+0100",
 - "params": {
- "max_hr": 0
 
}, - "device": 123,
 - "activity": 321,
 - "athlete": 42,
 - "owner": 1,
 - "json_schema": 2
 
}V1 - Retrieves a time frame Deprecated
This operation is restricted to the manager user who own this time frame.
Authorizations:
path Parameters
| timeFrame required  | integer  Time frame ID  | 
query Parameters
| ordering | string  Enum: "start_time" "end_time" "device" "athlete" "activity"   Order the results by specified field, ascendant. Prefix the field with   | 
| device | number  Filter by device (id)  | 
| athlete | number  Filter by athlete (id)  | 
| owner | number  Filter by owner (id of manager)  | 
| activity | number  Filter by activity (id)  | 
| start_time_from | string <date-time>    Example:  start_time_from=2020-02-20T13:00:00+0100 Filter on start_time (greater than or equal)  | 
| start_time_to | string <date-time>    Example:  start_time_to=2020-02-20T18:00:00+0100 Filter on start_time (lesser than or equal)  | 
| end_time_from | string <date-time>    Example:  end_time_from=2020-02-20T13:00:00+0100 Filter on end_time (greater than or equal)  | 
| end_time_to | string <date-time>    Example:  end_time_to=2020-02-20T18:00:00+0100 Filter on end_time (lesser than or equal)  | 
| with_device | boolean  If   | 
| with_activity | boolean  If   | 
| with_athlete | boolean  If   | 
Responses
Response samples
- 200
 - 403
 - 404
 
{- "id": 12,
 - "start_time": "2022-02-20T13:18:29+0100",
 - "end_time": "2022-02-20T14:18:29+0100",
 - "params": {
- "max_hr": 0
 
}, - "device": 123,
 - "activity": 321,
 - "athlete": 42,
 - "owner": 1,
 - "json_schema": 2
 
}V1 - Updates a time frame Deprecated
Update a time frame and trigger a new computation of its computed data, asynchronously. This operation is restricted to the manager user who own this time frame.
Authorizations:
path Parameters
| timeFrame required  | integer  Time frame ID  | 
query Parameters
| ordering | string  Enum: "start_time" "end_time" "device" "athlete" "activity"   Order the results by specified field, ascendant. Prefix the field with   | 
| device | number  Filter by device (id)  | 
| athlete | number  Filter by athlete (id)  | 
| owner | number  Filter by owner (id of manager)  | 
| activity | number  Filter by activity (id)  | 
| start_time_from | string <date-time>    Example:  start_time_from=2020-02-20T13:00:00+0100 Filter on start_time (greater than or equal)  | 
| start_time_to | string <date-time>    Example:  start_time_to=2020-02-20T18:00:00+0100 Filter on start_time (lesser than or equal)  | 
| end_time_from | string <date-time>    Example:  end_time_from=2020-02-20T13:00:00+0100 Filter on end_time (greater than or equal)  | 
| end_time_to | string <date-time>    Example:  end_time_to=2020-02-20T18:00:00+0100 Filter on end_time (lesser than or equal)  | 
| with_device | boolean  If   | 
| with_activity | boolean  If   | 
| with_athlete | boolean  If   | 
Request Body schema: application/json
| start_time | string <date-time>   Start of the time interval considered for computing the metrics. Must >= now for live streaming.  | 
| end_time | string <date-time>   End of the time interval considered for computing the metrics. Must be >= now for live streaming.  | 
timeframe_biking (object) or timeframe_running (object) or timeframe_soccer (object) or timeframe_swimming (object) or timeframe_trailrunning (object) or timeframe_triathlon (object) (TimeFrameParams)   Parameters for the metrics algorithms based on   | |
| device | integer  ID of the device  | 
| activity | integer  ID of the activity  | 
| athlete | integer  ID of the Athlete user wearing the device  | 
| owner | integer  ID the the Manager user owning access to the Timeframe  | 
| json_schema | integer  ID of the JSON schema describing the parameters of the metrics algorithms  | 
Responses
Request samples
- Payload
 
{- "start_time": "2022-02-20T13:18:29+0100",
 - "end_time": "2022-02-20T14:18:29+0100",
 - "params": {
- "max_hr": 0
 
}, - "device": 123,
 - "activity": 321,
 - "athlete": 42,
 - "owner": 1,
 - "json_schema": 2
 
}Response samples
- 200
 - 400
 - 403
 - 404
 
{- "id": 12,
 - "start_time": "2022-02-20T13:18:29+0100",
 - "end_time": "2022-02-20T14:18:29+0100",
 - "params": {
- "max_hr": 0
 
}, - "device": 123,
 - "activity": 321,
 - "athlete": 42,
 - "owner": 1,
 - "json_schema": 2
 
}V1 - Updates a time frame (partially) Deprecated
Works the same as PUT, but support partial payload, specifying only the fields to update.
Authorizations:
path Parameters
| timeFrame required  | integer  Time frame ID  | 
query Parameters
| ordering | string  Enum: "start_time" "end_time" "device" "athlete" "activity"   Order the results by specified field, ascendant. Prefix the field with   | 
| device | number  Filter by device (id)  | 
| athlete | number  Filter by athlete (id)  | 
| owner | number  Filter by owner (id of manager)  | 
| activity | number  Filter by activity (id)  | 
| start_time_from | string <date-time>    Example:  start_time_from=2020-02-20T13:00:00+0100 Filter on start_time (greater than or equal)  | 
| start_time_to | string <date-time>    Example:  start_time_to=2020-02-20T18:00:00+0100 Filter on start_time (lesser than or equal)  | 
| end_time_from | string <date-time>    Example:  end_time_from=2020-02-20T13:00:00+0100 Filter on end_time (greater than or equal)  | 
| end_time_to | string <date-time>    Example:  end_time_to=2020-02-20T18:00:00+0100 Filter on end_time (lesser than or equal)  | 
| with_device | boolean  If   | 
| with_activity | boolean  If   | 
| with_athlete | boolean  If   | 
Responses
Response samples
- 200
 - 400
 - 403
 - 404
 
{- "id": 12,
 - "start_time": "2022-02-20T13:18:29+0100",
 - "end_time": "2022-02-20T14:18:29+0100",
 - "params": {
- "max_hr": 0
 
}, - "device": 123,
 - "activity": 321,
 - "athlete": 42,
 - "owner": 1,
 - "json_schema": 2
 
}V1 - Deletes a time frame Deprecated
This operation is restricted to the manager user who own this time frame.
Authorizations:
path Parameters
| timeFrame required  | integer  Time frame ID  | 
query Parameters
| ordering | string  Enum: "start_time" "end_time" "device" "athlete" "activity"   Order the results by specified field, ascendant. Prefix the field with   | 
| device | number  Filter by device (id)  | 
| athlete | number  Filter by athlete (id)  | 
| owner | number  Filter by owner (id of manager)  | 
| activity | number  Filter by activity (id)  | 
| start_time_from | string <date-time>    Example:  start_time_from=2020-02-20T13:00:00+0100 Filter on start_time (greater than or equal)  | 
| start_time_to | string <date-time>    Example:  start_time_to=2020-02-20T18:00:00+0100 Filter on start_time (lesser than or equal)  | 
| end_time_from | string <date-time>    Example:  end_time_from=2020-02-20T13:00:00+0100 Filter on end_time (greater than or equal)  | 
| end_time_to | string <date-time>    Example:  end_time_to=2020-02-20T18:00:00+0100 Filter on end_time (lesser than or equal)  | 
| with_device | boolean  If   | 
| with_activity | boolean  If   | 
| with_athlete | boolean  If   | 
Responses
Response samples
- 403
 - 404
 
{- "detail": "You do not have permission to perform this action."
 
}V1 - Retrieves an activity's computed data Deprecated
The result is a list of all computed data of this activity's time frames.
This operation is restricted to manager users who have READ permission on the referenced athlete between start_time and end_time of this time frame.
Authorizations:
path Parameters
| activity required  | integer  Activity ID  | 
Responses
Response samples
- 200
 - 403
 - 404
 
[- {
- "timeframe": 12,
 - "data": {
- "first_timestamp": 1694432512600,
 - "last_timestamp": 1694432517600,
 - "last_computation": 1694432517600,
 - "total_distance": 4070.0806,
 - "max_speed": 5.8933,
 - "average_speed": 0.9882,
 - "accelerations": {
- "threshold_2": {
- "threshold": 3,
 - "values": [
- {
- "start_time": 1692951084100,
 - "max_value": 3.476,
 - "duration": 1.5,
 - "distance": 6.079,
 - "initial_speed": 1.134,
 - "end_speed": 4.244
 
}, - {
- "start_time": 1692951419300,
 - "max_value": 3.019,
 - "duration": 1.7,
 - "distance": 4.14,
 - "initial_speed": 0.356,
 - "end_speed": 3.076
 
} 
] 
}, - "threshold_1": {
- "threshold": 2,
 - "values": [
- {
- "start_time": 1692951068900,
 - "max_value": 2.155,
 - "duration": 1.8,
 - "distance": 2.289,
 - "initial_speed": 0.138,
 - "end_speed": 1.875
 
} 
] 
} 
}, - "decelerations": {
- "threshold_2": {
- "threshold": 3,
 - "values": [ ]
 
}, - "threshold_1": {
- "threshold": 2,
 - "values": [
- {
- "start_time": 1692951394200,
 - "max_value": -2.12,
 - "duration": 1.3,
 - "distance": 0.898,
 - "initial_speed": 2.078,
 - "end_speed": 0.405
 
} 
] 
} 
}, - "sprint": {
- "threshold_1": {
- "threshold": 5,
 - "values": [
- {
- "start_time": 1620647669100,
 - "duration": 0.9,
 - "max_value": 5.132300000000001,
 - "distance": 4.366224612946011
 
}, - {
- "start_time": 1620647994600,
 - "duration": 0.2,
 - "max_value": 5.0455000000000005,
 - "distance": 1.0167155193156558
 
}, - {
- "start_time": 1620647994900,
 - "duration": 0.4,
 - "max_value": 5.0509,
 - "distance": 1.9831344982124
 
}, - {
- "start_time": 1617113221100,
 - "duration": 1.1,
 - "max_value": 5.298100000000001,
 - "distance": 5.5218264995377
 
} 
] 
} 
}, - "hid": {
- "threshold_1": {
- "threshold": 4,
 - "values": [
- {
- "start_time": 1620647640600,
 - "duration": 2.3,
 - "max_value": 4.9205,
 - "distance": 10.234429367452526
 
}, - {
- "start_time": 1620647654400,
 - "duration": 1.8,
 - "max_value": 4.825,
 - "distance": 7.764227285098559
 
}, - {
- "start_time": 1620647668400,
 - "duration": 2.8,
 - "max_value": 5.132300000000001,
 - "distance": 12.575696540185104
 
} 
] 
}, - "threshold_2": {
- "threshold": 5,
 - "values": [
- {
- "start_time": 1620647669100,
 - "duration": 0.9,
 - "max_value": 5.132300000000001,
 - "distance": 4.366224612946011
 
}, - {
- "start_time": 1620647994600,
 - "duration": 0.2,
 - "max_value": 5.0455000000000005,
 - "distance": 1.0167155193156558
 
}, - {
- "start_time": 1620647994900,
 - "duration": 0.4,
 - "max_value": 5.0509,
 - "distance": 1.9831344982124
 
} 
] 
} 
}, - "time_per_speed_ranges": [
- {
- "duration": 157.7,
 - "ratio": 0.3787,
 - "threshold_low": 0,
 - "threshold_high": 0.2777777777777778
 
}, - {
- "duration": 120.6,
 - "ratio": 0.2896,
 - "threshold_low": 0.2777777777777778,
 - "threshold_high": 1.1111111111111112
 
} 
], - "distance_per_speed_ranges": [
- {
- "distance": 30.1702,
 - "ratio": 0.0691,
 - "threshold_low": 0,
 - "threshold_high": 0.2777777777777778
 
}, - {
- "distance": 78.8955,
 - "ratio": 0.1808,
 - "threshold_low": 0.2777777777777778,
 - "threshold_high": 1.1111111111111112
 
} 
], - "intensity": {
- "distance": [
- 280.1237,
 - 156.3435
 
], - "start_time": 1692951060000,
 - "span": 300,
 - "end_time": 1744791060000
 
}, - "hr_max": 0,
 - "hr_min": 0,
 - "hr_avg": 0,
 - "hr_plot": 0,
 - "athlete_max_hr": 0.9882,
 - "timePerHrZone": [
- {
- "percentage_hrmax": 100,
 - "range_bpm": [
- 0,
 - 160.65
 
], - "range_percent_hrmax": [
- 0,
 - 85
 
] 
}, - {
- "percentage_hrmax": 0,
 - "range_bpm": [
- 160.65,
 - 189
 
], - "range_percent_hrmax": [
- 85,
 - 100
 
] 
} 
] 
} 
} 
]V1 - Retrieves a time frame's computed data Deprecated
This operation is restricted to manager users who have READ permission on the referenced athlete between start_time and end_time of this time frame.
Authorizations:
path Parameters
| timeFrame required  | integer  Time frame ID  | 
Responses
Response samples
- 200
 - 403
 - 404
 
{- "first_timestamp": 1694432512600,
 - "last_timestamp": 1694432517600,
 - "last_computation": 1694432517600,
 - "total_distance": 4070.0806,
 - "max_speed": 5.8933,
 - "average_speed": 0.9882,
 - "accelerations": {
- "threshold_2": {
- "threshold": 3,
 - "values": [
- {
- "start_time": 1692951084100,
 - "max_value": 3.476,
 - "duration": 1.5,
 - "distance": 6.079,
 - "initial_speed": 1.134,
 - "end_speed": 4.244
 
}, - {
- "start_time": 1692951419300,
 - "max_value": 3.019,
 - "duration": 1.7,
 - "distance": 4.14,
 - "initial_speed": 0.356,
 - "end_speed": 3.076
 
} 
] 
}, - "threshold_1": {
- "threshold": 2,
 - "values": [
- {
- "start_time": 1692951068900,
 - "max_value": 2.155,
 - "duration": 1.8,
 - "distance": 2.289,
 - "initial_speed": 0.138,
 - "end_speed": 1.875
 
} 
] 
} 
}, - "decelerations": {
- "threshold_2": {
- "threshold": 3,
 - "values": [ ]
 
}, - "threshold_1": {
- "threshold": 2,
 - "values": [
- {
- "start_time": 1692951394200,
 - "max_value": -2.12,
 - "duration": 1.3,
 - "distance": 0.898,
 - "initial_speed": 2.078,
 - "end_speed": 0.405
 
} 
] 
} 
}, - "sprint": {
- "threshold_1": {
- "threshold": 5,
 - "values": [
- {
- "start_time": 1620647669100,
 - "duration": 0.9,
 - "max_value": 5.132300000000001,
 - "distance": 4.366224612946011
 
}, - {
- "start_time": 1620647994600,
 - "duration": 0.2,
 - "max_value": 5.0455000000000005,
 - "distance": 1.0167155193156558
 
}, - {
- "start_time": 1620647994900,
 - "duration": 0.4,
 - "max_value": 5.0509,
 - "distance": 1.9831344982124
 
}, - {
- "start_time": 1617113221100,
 - "duration": 1.1,
 - "max_value": 5.298100000000001,
 - "distance": 5.5218264995377
 
} 
] 
} 
}, - "hid": {
- "threshold_1": {
- "threshold": 4,
 - "values": [
- {
- "start_time": 1620647640600,
 - "duration": 2.3,
 - "max_value": 4.9205,
 - "distance": 10.234429367452526
 
}, - {
- "start_time": 1620647654400,
 - "duration": 1.8,
 - "max_value": 4.825,
 - "distance": 7.764227285098559
 
}, - {
- "start_time": 1620647668400,
 - "duration": 2.8,
 - "max_value": 5.132300000000001,
 - "distance": 12.575696540185104
 
} 
] 
}, - "threshold_2": {
- "threshold": 5,
 - "values": [
- {
- "start_time": 1620647669100,
 - "duration": 0.9,
 - "max_value": 5.132300000000001,
 - "distance": 4.366224612946011
 
}, - {
- "start_time": 1620647994600,
 - "duration": 0.2,
 - "max_value": 5.0455000000000005,
 - "distance": 1.0167155193156558
 
}, - {
- "start_time": 1620647994900,
 - "duration": 0.4,
 - "max_value": 5.0509,
 - "distance": 1.9831344982124
 
} 
] 
} 
}, - "time_per_speed_ranges": [
- {
- "duration": 157.7,
 - "ratio": 0.3787,
 - "threshold_low": 0,
 - "threshold_high": 0.2777777777777778
 
}, - {
- "duration": 120.6,
 - "ratio": 0.2896,
 - "threshold_low": 0.2777777777777778,
 - "threshold_high": 1.1111111111111112
 
} 
], - "distance_per_speed_ranges": [
- {
- "distance": 30.1702,
 - "ratio": 0.0691,
 - "threshold_low": 0,
 - "threshold_high": 0.2777777777777778
 
}, - {
- "distance": 78.8955,
 - "ratio": 0.1808,
 - "threshold_low": 0.2777777777777778,
 - "threshold_high": 1.1111111111111112
 
} 
], - "intensity": {
- "distance": [
- 280.1237,
 - 156.3435
 
], - "start_time": 1692951060000,
 - "span": 300,
 - "end_time": 1744791060000
 
}, - "hr_max": 0,
 - "hr_min": 0,
 - "hr_avg": 0,
 - "hr_plot": 0,
 - "athlete_max_hr": 0.9882,
 - "timePerHrZone": [
- {
- "percentage_hrmax": 100,
 - "range_bpm": [
- 0,
 - 160.65
 
], - "range_percent_hrmax": [
- 0,
 - 85
 
] 
}, - {
- "percentage_hrmax": 0,
 - "range_bpm": [
- 160.65,
 - 189
 
], - "range_percent_hrmax": [
- 85,
 - 100
 
] 
} 
] 
}