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
}

Remove a course assignment from a specific user.

Path Parameters

courseId
integer
required

The unique identifier of the course

userId
string
required

The unique identifier of the user to unassign

Request Headers

X-API-KEY
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

404
object

Returned when either the course or user is not found

curl --request DELETE \
--url https://YOURSITE.konstant.ly/openapi/v1/courses/123/assignments/users/1234567890 \
--header 'X-API-KEY: 1qaz2wsx3edc4rfv1qaz2wsx3edc4rfv'
{
    // Empty response on success
}