Insert a new session

Insert a new timing session into a device.

Returns the token_session identification token for the new inserted session. This token_session must be stored in the device in order to then authenticate and send passings.

New timing sessions are always active by default. If there's any other active session it will be closed.

Inserts a new and active timing session in the given device and returns the token_session.

POST https://api.runonrufus.com/v0/sessions

Headers

Name
Type
Description

api_key*

String

Account api key with WRITE or READ_WRITE access type.

Request Body

Name
Type
Description

deviceid*

String

Deviceid where to insert the new session.

alias

String

A name for the new session.

{
    "description":"Session inserted succesfully"
    "token_session":"2A19294BB886C3D5C7783309BBC6E385515C843893A6BC126FECE3904C6E2B25"
}
curl -X POST \
-H "Content-Type: application/json" \
-H "api_key: ror-ae4fc6c19681a20fad30" \
-d '{"deviceid": "65A1B7E0C6BC3D32C268C1506E3F6F39E225DC6ED79573E177E7243E8E38115B", "alias": "START-5K"}' \
https://api.runonrufus.com/v0/sessions

Last updated