---
title: "Update a named source"
method: PATCH
path: "/v3/named-sources/{name}"
tags: ["Named Sources"]
---

# Update a named source

`PATCH /v3/named-sources/{name}`

Changes the query a named source points to. The name can't change.

## Path parameters

- `name` string, required

## Request body

- object
  - `source` string, required

## Response `200`

The updated named source.

- NamedSource
  - `name` string
  - `source` string
  - `accountId` string
  - `userId` string
  - `createdAt` string
  - `updatedAt` string

## Other responses

- `400` — The request is malformed or a parameter failed validation.
- `401` — The token is missing, malformed or expired.
- `404` — The resource doesn't exist.

---

[API](https://skmtc.net/gitbookio/apis/carto-api.md) · [All operations](https://skmtc.net/gitbookio/apis/carto-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitbookio/carto-api/revisions/019f79ecdd6c/schema)
