---
title: "Update Source Classification"
method: PATCH
path: "/sources/{source_id}/classification"
tags: ["Sources"]
---

# Update Source Classification

`PATCH /sources/{source_id}/classification`

## Path parameters

- `source_id` string, required

## Query parameters

- `type` 'repository' | 'documentation' | 'research_paper' | 'huggingface_dataset' | 'local_folder' | 'slack' | 'google_drive', nullable — Source type hint

## Request body

- ClassifyLocalFolderRequest — Request to classify local folder content.
  - `categories` string[], required — Categories to classify content into (2-10 categories)
  - `include_uncategorized` boolean — Whether to include an 'Uncategorized' bucket for edge cases

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

## Changes

- **2026-03-09** `2277d31213d1` — 1 info
  - added the enum value `google_drive` to the property `anyOf[subschema #1]/` of the `query` request parameter `type`
- **2026-02-20** `056a9334ce0b` — 1 info
  - added the enum value `slack` to the property `anyOf[subschema #1]/` of the `query` request parameter `type`
- **2026-02-14** `5b3db391b9ea` — 3 info
  - api tag `Sources` added
  - api tag `v2-api` removed
  - api tag `v2-api-sources` removed

[Change history](https://skmtc.dev/nozomio-labs/apis/nia-ai-api/changes/sources/:source_id/classification/patch.md)

---

[API](https://skmtc.dev/nozomio-labs/apis/nia-ai-api.md) · [All operations](https://skmtc.dev/nozomio-labs/apis/nia-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nozomio-labs/nia-ai-api/revisions/dbb602a3ef17/schema)
