v1
latestOpenAPI 3.1.02026-08-064323122.5 KBTrainer Task
Create a task
This endpoint create trainer task in a gym. The trainer task is active until it is completed.
post/api/v2/tasks
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
Created
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.