curl --request DELETE \
--url https://YOURSITE.konstant.ly/openapi/v1/courses/123/assignments/users/1234567890 \
--header 'X-API-KEY: 1qaz2wsx3edc4rfv1qaz2wsx3edc4rfv'
{
// Empty response on success
}
{
"status": 404,
"message": "Not found"
}
Courses
Unassign User from Course
Unassign a specific user from a course
DELETE
/
courses
/
{courseId}
/
assignments
/
users
/
{userId}
curl --request DELETE \
--url https://YOURSITE.konstant.ly/openapi/v1/courses/123/assignments/users/1234567890 \
--header 'X-API-KEY: 1qaz2wsx3edc4rfv1qaz2wsx3edc4rfv'
{
// Empty response on success
}
{
"status": 404,
"message": "Not found"
}
Remove a course assignment from a specific user.
Path Parameters
integer
required
The unique identifier of the course
string
required
The unique identifier of the user to unassign
Request Headers
string
required
API Key. Go to your Konstantly site > Settings > API and copy the value from there.
Response
On successful unassignment, returns an empty response with HTTP status code 200.Error Responses
object
curl --request DELETE \
--url https://YOURSITE.konstant.ly/openapi/v1/courses/123/assignments/users/1234567890 \
--header 'X-API-KEY: 1qaz2wsx3edc4rfv1qaz2wsx3edc4rfv'
{
// Empty response on success
}
{
"status": 404,
"message": "Not found"
}
Was this page helpful?