Skip to content

Cycling Data

get

curl https://app.rejoule.io/cycling/data/ \
    -H "Authorization: User <token>"

The following query parameters are available:

Name Type Description
limit integer Number of results to return per page.
offset integer The initial index from which to return the results.
id string id
organization string organization
test string test
index string index
step string step
cycle string cycle
loop string loop
mode string mode
timestamp string timestamp
recorded_test_time string recorded_test_time
recorded_timestamp string recorded_timestamp

post

Member Role required

Editing requires an Member role in the organization the resource belongs to. Find out more.

curl https://app.rejoule.io/cycling/data/ \
    -X POST \
    -H "Authorization: User <token>" \
    -F "organization=2" \
    -F "test=15" \
    -F "index=7" \
    -F "mode=hello-world" \
    -F "voltage=None" \
    -F "current=None"

get

curl https://app.rejoule.io/cycling/data/{id}/ \
    -H "Authorization: User <token>"

The response object contains the following fields:

Name Type Description
id integer
organization integer
test integer
index integer
step integer
cycle integer
loop integer
mode string
timestamp string
recorded_test_time number
recorded_timestamp string
voltage number
current number
external_1 number
external_2 number
external_3 number
external_4 number
external_5 number
external_6 number
external_7 number
external_8 number
external_9 number
external_10 number

put

Member Role required

Editing requires an Member role in the organization the resource belongs to. Find out more.

curl https://app.rejoule.io/cycling/data/{id}/ \
    -X PUT \
    -H "Authorization: User <token>" \
    -F "organization=9" \
    -F "test=3" \
    -F "index=10" \
    -F "mode=hello-world" \
    -F "voltage=None" \
    -F "current=None"

delete

Owner Role required

Deleting requires an Owner role in the organization the resource belongs to. Find out more.

curl https://app.rejoule.io/cycling/data/{id}/ \
    -X DELETE \
    -H "Authorization: User <token>"