---
title: "Update a source"
method: PUT
path: "/v1/projects/{projectID}/sources/{sourceID}"
tags: ["Sources"]
---

# Update a source

`PUT /v1/projects/{projectID}/sources/{sourceID}`

This endpoint updates a source

## Path parameters

- `projectID` string, required
- `sourceID` string, required

## Request body

- ModelsUpdateSource
  - `custom_response` ModelsUpdateCustomResponse
    - `body` string
    - `content_type` string
  - `forward_headers` string[]
  - `idempotency_keys` string[]
  - `is_disabled` boolean
  - `name` string
  - `pub_sub` ModelsPubSubConfig
    - `google` ModelsGooglePubSubConfig
      - `project_id` string
      - `service_account` integer[]
      - `subscription_id` string
    - `kafka` ModelsKafkaPubSubConfig
      - `auth` ModelsKafkaAuth
        - `hash` string
        - `password` string
        - `tls` boolean
        - `type` string
        - `username` string
      - `brokers` string[]
      - `consumer_group_id` string
      - `topic_name` string
    - `sqs` ModelsSQSPubSubConfig
      - `access_key_id` string
      - `default_region` string
      - `queue_name` string
      - `secret_key` string
    - `type` 'sqs' | 'google' | 'kafka'
    - `workers` integer
  - `type` 'http' | 'rest_api' | 'pub_sub' | 'db_change_stream'
  - `verifier` ModelsVerifierConfig
    - `api_key` ModelsApiKey
      - `header_name` string
      - `header_value` string
    - `basic_auth` ModelsBasicAuth
      - `password` string
      - `username` string
    - `hmac` ModelsHMac
      - `encoding` 'base64' | 'hex'
      - `hash` string
      - `header` string
      - `secret` string
    - `type` 'noop' | 'hmac' | 'basic_auth' | 'api_key'

## Changes

- **2024-01-30** `5a219dba9f40` — 1 breaking, 2 info
  - removed the success response with the status `202`
  - api operation id `UpdateSource` removed and replaced with ``
  - added the success response with the status `200`

[Change history](https://skmtc.dev/frain-dev/apis/convoy-api-reference/changes/v1/projects/:projectID/sources/:sourceID/put.md)

---

[API](https://skmtc.dev/frain-dev/apis/convoy-api-reference.md) · [All operations](https://skmtc.dev/frain-dev/apis/convoy-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/frain-dev/convoy-api-reference/revisions/5a219dba9f40/schema)
