Skip to content

Trainer Task

These operations are needed to create and update trainer tasks.

Retrieve task details

Request

This endpoint returns the details of a specific trainer task.

Security
mms
Path
taskIdinteger, (int64)required
curl -i -X GET \
  'https://developer.egym.com/_mock/mms-api-v2/apis/mms-v2/api/v2/tasks/{taskId}' \
  -H 'x-api-key: YOUR_API_KEY_HERE'

Responses

Ok

Bodyapplication/json
idstringread-only

The ID of the task

namestring, non-emptyrequired

Task name

typestring

Task type

Enum:"GENERAL""ANAMNESIS""COORDINATION_FITNESS_TEST""HEALTH_FITNESS_TEST""PWC_FITNESS_TEST""MAX_FORCE_FITNESS_TEST""MOBILITY_SCREEN_FITNESS_TEST""BLOOD_PRESSURE_FITNESS_TEST""POLAR_FITNESS_TEST""INBODY_FITNESS_TEST"
dueDatestring, (date)required

Task completion deadline date. format: yyyy-MM-dd

authorIdstring, non-emptyrequired

The author of the task. EGYM account ID

targetIdstring, non-emptyrequired

The account of task related to. EGYM account ID

completerIdstring

The account who solved the task. EGYM account ID

completedboolean

If this task has been completed in the gym this will be true, false otherwise.

Response
{ "id": "string", "name": "string", "type": "GENERAL", "dueDate": "2019-08-24", "authorId": "string", "targetId": "string", "completerId": "string", "completed": true }