retrieval

Update retrieval source

Update a retrieval source's name or provider configuration.

Required permission: retrieval.manage.

patch/v1/projects/{project_id}/retrieval/sources/{source_id}

Request

  • Base URL
    https://api.connic.co
  • Auth
    HTTP bearer

Path parameters

project_id, string uuid required

ID of the project the API key belongs to.

source_id, string uuid required

Retrieval source ID from GET /retrieval/sources.

Query parameters

environment_id, string uuid required

Environment ID from GET /environments.

Request body

UpdateRetrievalSourceRequest required
name, string nullable

New name. Omit to keep the current one.

config, object nullable

Keys to change, merged into the current config; omitted keys and empty integration_token, api_token, or client_secret values keep their stored values. Clears last_error and resets an error status to active.

Response

Successful Response

RetrievalSourceResponse required
id, string required
environment_id, string required

Environment the source syncs into.

type, string required

Source type: notion, confluence (Confluence Cloud), coda (Superhuman Docs), zendesk (Zendesk Help Center), sharepoint (SharePoint and OneDrive), or website. code is the source deployments create for the project's retrieval/ folder; it can't be updated or deleted.

name, string required
config, object required

Provider settings without integration_token, api_token, and client_secret. For code, deployment_id of the deployment whose files it holds.

status, string required

active, or error after a failed sync. Updating config resets error to active.

last_synced_at, string nullable required

Start time of the most recent successful sync; null until one succeeds.

last_error, string nullable required

Message from the most recent sync that failed or was skipped, or a JSON string with a file_issues list when it completed with file problems; null otherwise.

created_at, string required

Changes

No recorded changes to this operation across all 17 revisions of this API.