Skip to content
Developer

StudioTraining / Own

Studio training18 EndpointsCRM / StudioTraining / Own

Overview of the own training: profile, active plan, visible plans and key figures

GET/api/crm/studio_training/own/overview

Responses

200person_data, active_plan, plans, summary, weekly_sessions, last_session, member_edit_hoursobject

Request
curl --request GET \
  --url https://your-instance.iw-erp.de/api/crm/studio_training/own/overview \
  --header 'x-iw-jwt-token: <TOKEN>'
Response 200 application/json
{}

Own plans (active and archived, drafts stay with the trainer)

GET/api/crm/studio_training/own/plan

Responses

200List of StudioTrainingPlanarray<object>

Request
curl --request GET \
  --url https://your-instance.iw-erp.de/api/crm/studio_training/own/plan \
  --header 'x-iw-jwt-token: <TOKEN>'
Response 200 application/json
[
  {}
]

One own plan with its days, exercises and catalogue entries

GET/api/crm/studio_training/own/plan/{identifier}/tree

Path parameters

identifierrequiredstring

Responses

200plan, days, exercises, presetsobject

Request
curl --request GET \
  --url https://your-instance.iw-erp.de/api/crm/studio_training/own/plan/42/tree \
  --header 'x-iw-jwt-token: <TOKEN>'
Response 200 application/json
{}

The sets of the last session per exercise of a plan day, used to prefill a workout

GET/api/crm/studio_training/own/plan_day/{identifier}/last_performance

Path parameters

identifierrequiredstring

Responses

200List of plan_exercise_id, preset_id, session_id, performed_at, setsarray<object>

Request
curl --request GET \
  --url https://your-instance.iw-erp.de/api/crm/studio_training/own/plan_day/42/last_performance \
  --header 'x-iw-jwt-token: <TOKEN>'
Response 200 application/json
[
  {}
]

Own session log, newest first

GET/api/crm/studio_training/own/session

Query parameters

pageintegerPage, starting with 1
pageSizeintegerPage size, default 30, at most 200

Responses

200List of StudioTrainingSessionarray<object>

Request
curl --request GET \
  --url https://your-instance.iw-erp.de/api/crm/studio_training/own/session \
  --header 'x-iw-jwt-token: <TOKEN>'
Response 200 application/json
[
  {}
]

Log a session with all sets

POST/api/crm/studio_training/own/session

Request body application/json

object

Responses

200session, entries, editable_untilobject

Request
curl --request POST \
  --url https://your-instance.iw-erp.de/api/crm/studio_training/own/session \
  --header 'content-type: application/json' \
  --header 'x-iw-jwt-token: <TOKEN>' \
  --data '{}'
Response 200 application/json
{}

One own session with all sets

GET/api/crm/studio_training/own/session/{identifier}

Path parameters

identifierrequiredstring

Responses

200session, entries, editable_untilobject

Request
curl --request GET \
  --url https://your-instance.iw-erp.de/api/crm/studio_training/own/session/42 \
  --header 'x-iw-jwt-token: <TOKEN>'
Response 200 application/json
{}

Correct an own session. Only sessions logged in the member app, within the correction period.

PUT/api/crm/studio_training/own/session/{identifier}

Path parameters

identifierrequiredstring

Request body application/json

object

Responses

200session, entries, editable_untilobject

Request
curl --request PUT \
  --url https://your-instance.iw-erp.de/api/crm/studio_training/own/session/42 \
  --header 'content-type: application/json' \
  --header 'x-iw-jwt-token: <TOKEN>' \
  --data '{}'
Response 200 application/json
{}

Correct an own session. Only sessions logged in the member app, within the correction period.

PATCH/api/crm/studio_training/own/session/{identifier}

Path parameters

identifierrequiredstring

Request body application/json

object

Responses

200session, entries, editable_untilobject

Request
curl --request PATCH \
  --url https://your-instance.iw-erp.de/api/crm/studio_training/own/session/42 \
  --header 'content-type: application/json' \
  --header 'x-iw-jwt-token: <TOKEN>' \
  --data '{}'
Response 200 application/json
{}

Delete an own session. Only sessions logged in the member app, within the correction period.

DELETE/api/crm/studio_training/own/session/{identifier}

Path parameters

identifierrequiredstring

Responses

200The deleted StudioTrainingSessionobject

Request
curl --request DELETE \
  --url https://your-instance.iw-erp.de/api/crm/studio_training/own/session/42 \
  --header 'x-iw-jwt-token: <TOKEN>'
Response 200 application/json
{}

Own body values and test results

GET/api/crm/studio_training/own/measurement

Query parameters

measurementTypestringOne of the StudioTrainingMeasurement TYPE_* constants
pageintegerPage, starting with 1
pageSizeintegerPage size, default 30, at most 200

Responses

200List of StudioTrainingMeasurementarray<object>

Request
curl --request GET \
  --url https://your-instance.iw-erp.de/api/crm/studio_training/own/measurement \
  --header 'x-iw-jwt-token: <TOKEN>'
Response 200 application/json
[
  {}
]

Record an own body value (weight, girth, resting heart rate)

POST/api/crm/studio_training/own/measurement

Request body application/json

object

Responses

200The new StudioTrainingMeasurementobject

Request
curl --request POST \
  --url https://your-instance.iw-erp.de/api/crm/studio_training/own/measurement \
  --header 'content-type: application/json' \
  --header 'x-iw-jwt-token: <TOKEN>' \
  --data '{}'
Response 200 application/json
{}

Correct an own body value within the correction period

PUT/api/crm/studio_training/own/measurement/{identifier}

Path parameters

identifierrequiredstring

Request body application/json

object

Responses

200The StudioTrainingMeasurementobject

Request
curl --request PUT \
  --url https://your-instance.iw-erp.de/api/crm/studio_training/own/measurement/42 \
  --header 'content-type: application/json' \
  --header 'x-iw-jwt-token: <TOKEN>' \
  --data '{}'
Response 200 application/json
{}

Correct an own body value within the correction period

PATCH/api/crm/studio_training/own/measurement/{identifier}

Path parameters

identifierrequiredstring

Request body application/json

object

Responses

200The StudioTrainingMeasurementobject

Request
curl --request PATCH \
  --url https://your-instance.iw-erp.de/api/crm/studio_training/own/measurement/42 \
  --header 'content-type: application/json' \
  --header 'x-iw-jwt-token: <TOKEN>' \
  --data '{}'
Response 200 application/json
{}

Delete an own body value within the correction period

DELETE/api/crm/studio_training/own/measurement/{identifier}

Path parameters

identifierrequiredstring

Responses

200The deleted StudioTrainingMeasurementobject

Request
curl --request DELETE \
  --url https://your-instance.iw-erp.de/api/crm/studio_training/own/measurement/42 \
  --header 'x-iw-jwt-token: <TOKEN>'
Response 200 application/json
{}

Own device setups (seat positions, lever settings, ...)

GET/api/crm/studio_training/own/device_setup

Responses

200List of StudioDeviceSetuparray<object>

Request
curl --request GET \
  --url https://your-instance.iw-erp.de/api/crm/studio_training/own/device_setup \
  --header 'x-iw-jwt-token: <TOKEN>'
Response 200 application/json
[
  {}
]

Own progress: session summary, sessions per week, per exercise series and measurement series

GET/api/crm/studio_training/own/progress

Query parameters

daysintegerHistory window in days, default 365
presetintegerLimit the exercise series to one StudioTrainingPreset id

Responses

200summary, weekly_sessions, exercises, measurementsobject

Request
curl --request GET \
  --url https://your-instance.iw-erp.de/api/crm/studio_training/own/progress \
  --header 'x-iw-jwt-token: <TOKEN>'
Response 200 application/json
{}

Own gamification: training streak, badges and the running challenges with the own progress.

GET/api/crm/studio_training/own/gamification

Counts the recorded trainings and, depending on the settings, the check-ins of attendance lists, so members without training data take part with their check-ins.

Responses

200summary, badges, challengesobject

Request
curl --request GET \
  --url https://your-instance.iw-erp.de/api/crm/studio_training/own/gamification \
  --header 'x-iw-jwt-token: <TOKEN>'
Response 200 application/json
{}