Skip to content

Take a person out of a class

DELETE
/v1/integration-api/classes/{id}/members/{personId}
curl --request DELETE \
--url https://api.academy.example.com/v1/integration-api/classes/example/members/example \
--header 'Authorization: Bearer <token>'

Versioned integration contract.

id
required
string
personId
required
string

Success

Media typeapplication/json
object
classId
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
personId
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
role
required
Any of:
string
Allowed values: learner teacher
changed
required
boolean

Example

{
"classId": "6f1c2a10-0000-4000-8000-0000000000e1",
"personId": "6f1c2a10-0000-4000-8000-0000000000a1",
"role": null,
"changed": true
}

Error; error and message identify the reason

Media typeapplication/json
object
error
required

Stable code, e.g. insufficient_scope, not_found, validation_failed

string
message
string

Example generated

{
"error": "example",
"message": "example"
}