Download OpenAPI specification:Download
This API aims to give access to ASI's devices' data on the behalf of these device's users. A getting started guide is available on https://api.asi.swiss/doc/getting_started.html. A JSON schema guide is available on https://api.asi.swiss/doc/jsonschema_guide.html. This API plans to have 4 releases per year and keep compatibility with the 4 latest released versions. Note that every endpoint has a trailing slash that is not optional.
Version 0.1.14 (latest)
uuid
of this objects are now internal fields so they will soon be removed from API resource representationVersion 0.1.13
Version 0.1.12
/activate/
and /deactivate/
, replaced by /own/
and /release-ownership/
This operation is restricted to authenticated users.
{- "id": 1,
- "username": "jon.doe@example.com",
- "email": "jon.doe@example.com",
- "external_id": "string",
- "managed_by": 1,
- "athlete_profile": {
- "id": 1,
- "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",
- "max_heart_rate": 140
}
}
Manager users are users that can interact with athletes and teams. They mainly assign performance data to athletes and invite into teams.
This operation create a manager 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 a manager.
username required | string User's name used to authenticate himselft/herself |
email required | string <email> User's contact email address |
external_id | string User's external ID used from another organisation |
object (ManagerProfile) |
{- "username": "jon.doe@example.com",
- "email": "jon.doe@example.com",
- "external_id": "string",
- "manager_profile": {
- "first_name": "Jürgen",
- "last_name": "Klopp"
}
}
{- "id": 1,
- "username": "jon.doe@example.com",
- "email": "jon.doe@example.com",
- "external_id": "string",
- "manager_profile": {
- "id": 1,
- "first_name": "Jürgen",
- "last_name": "Klopp"
}
}
This operation is restricted to the manager himself.
manager required | integer <int64> Manager ID |
{- "id": 1,
- "username": "jon.doe@example.com",
- "email": "jon.doe@example.com",
- "external_id": "string",
- "manager_profile": {
- "id": 1,
- "first_name": "Jürgen",
- "last_name":