---
updatedAt: 2025-09-17T01:09:18.000Z
agentTools:
  projectIndex: https://docs.teachable.com/llms.txt
---

# /v1/unenroll

Unenroll a user from a course.

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "title": "teachable-public-api",
    "description": "The documentation for the Teachable Public API. All endpoints are currently\nsubject to change.",
    "version": "0.0.1"
  },
  "paths": {
    "/v1/unenroll": {
      "post": {
        "tags": [
          "Enroll"
        ],
        "description": "Unenroll a user from a course.",
        "operationId": "UnenrollUser",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Enrollment"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "204 response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "404 response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "message": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          }
        },
        "required": [
          "message"
        ]
      },
      "Enrollment": {
        "type": "object",
        "properties": {
          "user_id": {
            "type": "integer",
            "format": "int32",
            "description": "The unique ID of the user."
          },
          "course_id": {
            "type": "integer",
            "format": "int32",
            "description": "The unique ID of the course."
          }
        },
        "required": [
          "user_id",
          "course_id"
        ]
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "apiKey"
      }
    }
  },
  "servers": [
    {
      "url": "https://developers.teachable.com/",
      "description": "The production API server"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ]
}
```