---
title: "Exclude Source"
method: POST
path: "/api/skill-learning/sources/{source_kind}/{source_ref}/exclude"
tags: ["v2", "skill-learning", "private"]
---

# Exclude Source

`POST /api/skill-learning/sources/{source_kind}/{source_ref}/exclude`

## Request

- The document declares no server URL.
- Auth: HTTP bearer

Exclude a source from learning, including queued and published work.

Versions that depend on it become unavailable; a prior eligible version
is restored where one exists, otherwise the skill is paused.

## Path parameters

- `source_kind` string, required
- `source_ref` string, required

## Response `200`

Successful Response

- SourceExclusionResult
  - `source_id` string, required
  - `excluded` boolean, required
  - `invalidated_version_ids` string[]

## Other responses

- `401`: Authentication required
- `422`: Validation Error

## Changes

- **2026-10-16** `ad42c53e22ca`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/changes/api/skill-learning/sources/:source_kind/:source_ref/exclude/post.md)

---

[API](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server.md) - [All operations](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/llms.txt) - [OpenAPI document](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/revisions/c508818c16ad?raw)
