{
"name": "数据结构复习",
"start_date": "2025-12-10",
"end_date": "2026-01-05",
"mode": "auto",
"config": {
"total_slots": 16,
"allow_filler_course": true,
"strategy": "steady",
"excluded_slots": [
1,
6
]
},
"items": [
{
"order": 1,
"content": "绪论、线性表",
"embedded_time": {
"date": "2025-12-22",
"section_from": 1,
"section_to": 2
}
},
{
"order": 2,
"content": "栈、队列、串与数组",
"embedded_time": null
}
]
}curl --location --request PUT 'http://test-cn.your-api-server.com/task-class/update?task_class_id=undefined' \
--header 'Authorization;' \
--header 'X-Idempotency-Key: test001' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data '{
"name": "数据结构复习",
"start_date": "2025-12-10",
"end_date": "2026-01-05",
"mode": "auto",
"config": {
"total_slots": 16,
"allow_filler_course": true,
"strategy": "steady",
"excluded_slots": [
1,
6
]
},
"items": [
{
"order": 1,
"content": "绪论、线性表",
"embedded_time": {
"date": "2025-12-22",
"section_from": 1,
"section_to": 2
}
},
{
"order": 2,
"content": "栈、队列、串与数组",
"embedded_time": null
}
]
}'{
"status": "10000",
"info": "success"
}