Skip to main content
POST
/
lms
/
courses
/
{course_id}
/
deactivate
Deactivate course
curl --request POST \
  --url https://api.kombo.dev/v1/lms/courses/{course_id}/deactivate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Integration-Id: <x-integration-id>' \
  --data '{}'
{
"status": "success",
"data": {
"id": "26vafvWSRmbhNcxJYqjCzuJg",
"remote_id": "32",
"provider_id": "7xPdr68N8kG9EzLwjsN9xyz",
"remote_created_at": "2022-08-07T14:01:29.196Z",
"remote_deleted_at": null,
"changed_at": "2022-08-07T14:01:29.196Z",
"remote_data": null,
"custom_fields": null,
"integration_fields": [],
"provider": {
"id": "7xPdr68N8kG9EzLwjsN9xyz",
"remote_id": "provider-12345",
"name": "Kombo Academy"
},
"revisions": [
{
"id": "3KMdr68N8kG9EzLwjsN9aoz",
"remote_id": "revision-12345",
"course_id": "26vafvWSRmbhNcxJYqjCzuJg",
"title": "Building LMS integrations with Kombo",
"description": "Learn how to build and integrate Learning Management System (LMS) integrations with Kombo. This course covers the unified LMS API, course management, user enrollment, progress tracking, and best practices for building robust LMS connectors.",
"status": "ACTIVE",
"remote_created_at": "2022-08-07T14:01:29.196Z",
"remote_deleted_at": null,
"changed_at": "2022-08-07T14:01:29.196Z",
"remote_data": null,
"custom_fields": null,
"integration_fields": [],
"skill_assignments": [
{
"skill": {
"id": "4EeSSSd9Fr8iiW9mPKmjEVWK",
"remote_id": "skill-123",
"name": "LMS Integration"
}
}
]
}
]
},
"warnings": [
{
"message": "This is an example warning!"
}
]
}
This feature is currently available for the following integrations:You’d like to see this feature for another integration? Please reach out! We’re always happy to discuss extending our coverage.
Deactivates a course, making it unavailable for new enrollments while preserving existing progress records.
This endpoint requires the permission Manage courses to be enabled in your scope config.

Authorizations

Authorization
string
header
required

Create an API key on the Secrets page in the Kombo dashboard.

Headers

X-Integration-Id
string
required

ID of the integration you want to interact with.

Path Parameters

course_id
string
required

The ID of the course in Kombo or its ID in the remote system by prefixing it with remote: (e.g., remote:12312)

Body

application/json

POST /lms/courses/:course_id/deactivate Request body

The body is of type object.

Response

POST /lms/courses/:course_id/deactivate Positive response

status
string
required
Allowed value: "success"
data
object
required
Example:
{
"id": "26vafvWSRmbhNcxJYqjCzuJg",
"remote_id": "32",
"provider_id": "7xPdr68N8kG9EzLwjsN9xyz",
"remote_created_at": "2022-08-07T14:01:29.196Z",
"remote_deleted_at": null,
"changed_at": "2022-08-07T14:01:29.196Z",
"remote_data": null,
"custom_fields": null,
"integration_fields": [],
"provider": {
"id": "7xPdr68N8kG9EzLwjsN9xyz",
"remote_id": "provider-12345",
"name": "Kombo Academy"
},
"revisions": [
{
"id": "3KMdr68N8kG9EzLwjsN9aoz",
"remote_id": "revision-12345",
"course_id": "26vafvWSRmbhNcxJYqjCzuJg",
"title": "Building LMS integrations with Kombo",
"description": "Learn how to build and integrate Learning Management System (LMS) integrations with Kombo. This course covers the unified LMS API, course management, user enrollment, progress tracking, and best practices for building robust LMS connectors.",
"status": "ACTIVE",
"remote_created_at": "2022-08-07T14:01:29.196Z",
"remote_deleted_at": null,
"changed_at": "2022-08-07T14:01:29.196Z",
"remote_data": null,
"custom_fields": null,
"integration_fields": [],
"skill_assignments": [
{
"skill": {
"id": "4EeSSSd9Fr8iiW9mPKmjEVWK",
"remote_id": "skill-123",
"name": "LMS Integration"
}
}
]
}
]
}
warnings
object[]
required

These are the interaction warnings that are shown in the dashboard. They are meant to provide debug information to you. We recommend logging them to the console.