---
title: "Update a custom source"
method: PATCH
path: "/v1/sources/custom-sources/{custom_source_id}"
tags: ["Sources"]
---

# Update a custom source

`PATCH /v1/sources/custom-sources/{custom_source_id}`

Update a custom source's name and description.

**⚠️ Beta Version**: This endpoint is in beta and may be subject to changes in future releases.

## Path parameters

- `custom_source_id` string, required

## Request body

- object — **⚠️ Beta Version**: This schema is in beta and may be subject to changes in future releases.
  - `name` string, required — The name of the custom source
  - `description` string, nullable — The description of the custom source

## Response `200`

The custom source was updated successfully

- object — **⚠️ Beta Version**: This schema is in beta and may be subject to changes in future releases.
  - `id` string — The ID of the custom source
  - `source_uuid` string — Unique identifier for the custom source
  - `name` string — The name of the custom source
  - `description` string, nullable — The description of the custom source

## Other responses

- `400` — Invalid data
- `401` — Invalid API key
- `403` — Forbidden
- `404` — Resource not found
- `503` — API under maintenance

---

[API](https://skmtc.dev/gitguardian/apis/gitguardian-api.md) · [All operations](https://skmtc.dev/gitguardian/apis/gitguardian-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gitguardian/gitguardian-api/revisions/52a17f47b772/schema)
