Authorization: ********************{
"assignments": [
{
"coach_id": 2,
"assignment_type": "primary",
"effective_from": "2024-01-01"
},
{
"coach_id": 5,
"assignment_type": "assistant",
"effective_from": "2024-01-01",
"effective_to": "2024-03-31"
}
]
}curl --location --request POST 'http://perfit-api.test.muke.design/api/admin/courses//assign-coaches' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"assignments": [
{
"coach_id": 2,
"assignment_type": "primary",
"effective_from": "2024-01-01"
},
{
"coach_id": 5,
"assignment_type": "assistant",
"effective_from": "2024-01-01",
"effective_to": "2024-03-31"
}
]
}'{
"code": 200,
"message": "教练配置成功",
"data": []
}