---
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[]
  - `is_disabled` boolean
  - `name` string
  - `pub_sub` ModelsPubSubConfig
    - `google` ModelsGooglePubSubConfig
      - `project_id` string
      - `service_account` integer[]
      - `subscription_id` string
    - `sqs` ModelsSQSPubSubConfig
      - `access_key_id` string
      - `default_region` string
      - `queue_name` string
      - `secret_key` string
    - `type` 'sqs' | 'google'
    - `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'

---

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