Delete Course Group
URL
https://root_url/partner/api/course.api.php?action=delCourseGroup
HTTP Request Methods
Request Data
Key |
Required |
More Restrictions |
Instructions |
Description |
SID |
Yes |
Null |
School ID |
It is available through the eeo.cn application |
safeKey |
Yes |
Fixed 32-bit all lowercase characters |
School authentication security key |
safeKey=MD5(SECRET+timeStamp) |
timeStamp |
Yes |
Null |
Timestamp used by safeKey |
Unix Epoch timeStamp is the number of seconds passed by 00:00 (world standard time) on January 1, 1970 |
courseId |
Yes |
|
course ID |
|
groupId |
Yes |
|
group ID |
no |
Response Data
Key |
Type |
Sample Value |
Meaning |
error_info |
object |
|
Return message object |
└ errno |
number |
1 |
Error code |
└ error |
string |
"Program normal execution" |
Error list |
Sample
POST /partner/api/course.api.php?action=delCourseGroup HTTP/1.1
Host: www.eeo.cn
Content-Type: application/x-www-form-urlencoded
Cache-Control: no-cache
SID=1234567&safeKey=5458edceccc78c6698de624e94364285&timeStamp=1493026245&courseId=176465&groupId=139
- Shell cURL analog request instruction
curl -H "Content-Type: application/x-www-form-urlencoded" -X "POST" \
-d "SID=1234567" \
-d "safeKey=c8e0b0e20c95c3adba9f263e04c598e7" \
-d "timeStamp=1637133036" \
-d "courseId=176465" \
-d "groupId=139" \
"https://root_url/partner/api/course.api.php?action=delCourseGroup"
Response Sample(The normal return json
packet example)
{
"error_info": {
"errno": 1,
"error": "程序正常执行"}
}
Error Code |
Description |
1 |
Successful execution. |
100 |
Incomplete or incorrect parameters. |
102 |
No permission(Security verification failed.). |
104 |
Operation failure(Unknown error). |
890 |
Failed to set the group. |
893 |
Operation failed. The course group does not exist. |