v1
latestOpenAPI 3.1.02026-08-064323122.5 KBTrainer Task
Update a task
This endpoint updates trainer task in a gym.
put/api/v2/tasks/{taskId}
Path parameters
taskIdinteger required
Request body
idstring
The ID of the task
namestring required
Task name
type'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' | 'JAWON_FITNESS_TEST'
Task type
dueDatestring date required
Task completion deadline date. format: yyyy-MM-dd
authorIdstring required
The author of the task. EGYM account ID
targetIdstring required
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
Ok
idstring
The ID of the task
namestring required
Task name
type'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' | 'JAWON_FITNESS_TEST'
Task type
dueDatestring date required
Task completion deadline date. format: yyyy-MM-dd
authorIdstring required
The author of the task. EGYM account ID
targetIdstring required
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.