---
title: "Update integration settings"
method: PUT
path: "/orgs/{orgID}/projects/{projectID}/integrations/{integrationID}"
tags: ["Integrations"]
---

# Update integration settings

`PUT /orgs/{orgID}/projects/{projectID}/integrations/{integrationID}`

## Request

- Base URL: `https://api.omnara.com/v1`
- URL: `https://api.omnara.com/v1/orgs/{orgID}/projects/{projectID}/integrations/{integrationID}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `__Host-omnara_session` and API key in header `X-Omnara-Csrf`

Replaces integration-owned settings while preserving credentials. The request contains only settings; name and integration_kind are immutable and accepted only on create. Preserve integration-level fields when editing the launcher. Settings follow capabilities.settings.input_schema from the integration catalog.

## Path parameters

- `orgID` string, required
- `projectID` string, required: Project ID (proj_...).
- `integrationID` string, required

## Request body

- UpdateIntegrationRequest: Replaces integration settings. Name and integration_kind are immutable and only accepted on create. Preserve integration-level fields when editing launcher settings.
  - `settings` IntegrationSettings, required: Integration-owned settings JSON. Validate against capabilities.settings.input_schema from the integration catalog. Public profile references use aprf_ IDs and resolve at runtime. GitHub integrations use GitHubIntegrationSettings; Slack and Discord integrations use ChatIntegrationSettings.

## Response `200`

Updated integration settings.

- Integration
  - `id` string, required
  - `project_id` string, required: Project ID (proj_...).
  - `name` string, required: Immutable, project-unique integration name used in config keys and qualified tool names.
  - `integration_kind` 'slack_thread' | 'discord_thread' | 'github_pr', required: Registered integration implementation; independent of the saved integration's name and immutable ID.
  - `state` 'active' | 'disconnected', required
  - `setup_revision` integer, required: Credential and transport revision. Launcher edits leave this value unchanged.
  - `last_oauth_flow_id` string
  - `runtime_failure` IntegrationRuntimeFailure: Most recent connection failure for the active integration's current setup and credential version. Returned only by Get integration, not list or mutation responses. Omission does not establish provider connectivity; a runtime lease is not a connection check.
    - `message` string, required: Connection failure recorded by the integration runtime.
    - `retry_at` string, date-time, required: Earliest time the runtime may retry. A retry can start later.
  - `settings` IntegrationSettings, required: Integration-owned settings JSON. Validate against capabilities.settings.input_schema from the integration catalog. Public profile references use aprf_ IDs and resolve at runtime. GitHub integrations use GitHubIntegrationSettings; Slack and Discord integrations use ChatIntegrationSettings.
  - `provider_tenant_id` string: Verified provider identity, omitted until first connection. Retained after disconnect.
  - `provider_account_ref` string: Verified provider account, omitted until first connection. Retained after disconnect.
  - `provider_agent_display_name` string, required: Provider account display label, at most 512 UTF-8 bytes. Leading and trailing whitespace is trimmed on save. Empty means no label; an omitted or empty value clears the label on account-management updates.
  - `bot_mention` string: GitHub App mention including the leading @, derived from the verified App slug. Omitted when the verified slug is unavailable or the integration is not GitHub. Retained after disconnect.
  - `credential_secret_id` string: Secret ID (sec_...).
  - `provider_config` IntegrationProviderConfig, required: Non-secret provider configuration, validated for the selected provider. Slack and GitHub integrations require an empty object. Discord accepts only public_key (optional, a 32-byte hex-encoded Ed25519 verification key for interaction callbacks). Omnara manages one Gateway connection per Discord integration. Credentials and integration behavior are not accepted here.
  - `capabilities` IntegrationCapabilities, required
    - `settings` IntegrationCapabilityDefinition: Schema for this integration's complete settings document, including its optional launcher.
      - `description` string
      - `input_schema` object, required: Static argument schema for this operation or interaction handler. Shipped integration tools accept action arguments and, except standalone tools, use one of the agent's conversations; execution fails if it has none. Shipped interaction handlers use the assigned conversation and accept empty arguments.
    - `tools` object, required
    - `subscription` IntegrationSubscriptionDefinition: Present when the integration supports forwarding from a conversation. The integration owns forwarding policy.
      - `conversation_schema` object, required: Schema for one concrete provider conversation address.
    - `interaction_handler` IntegrationCapabilityDefinition
      - `description` string
      - `input_schema` object, required: Static argument schema for this operation or interaction handler. Shipped integration tools accept action arguments and, except standalone tools, use one of the agent's conversations; execution fails if it has none. Shipped interaction handlers use the assigned conversation and accept empty arguments.
    - `schedule` IntegrationCapabilityDefinition
      - `description` string
      - `input_schema` object, required: Static argument schema for this operation or interaction handler. Shipped integration tools accept action arguments and, except standalone tools, use one of the agent's conversations; execution fails if it has none. Shipped interaction handlers use the assigned conversation and accept empty arguments.
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `400`: The request was invalid.
- `401`: Authentication is required or invalid.
- `403`: The authenticated principal is not authorized.
- `404`: The requested resource was not found or is not visible.
- `409`: The request conflicts with current resource state or idempotency history.
- `4XX`: Any other client error. The body carries the shared Error envelope restricted to client error codes; statuses with a dedicated response above are documented precisely.
- `5XX`: Any other server error. The body carries the shared Error envelope restricted to server error codes.

## Changes

- **2026-10-07** `680248a0ba72`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/omnara/apis/omnara-api-2/changes/orgs/:orgID/projects/:projectID/integrations/:integrationID/put.md)

---

[API](https://skmtc.dev/omnara/apis/omnara-api-2.md) - [All operations](https://skmtc.dev/omnara/apis/omnara-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/omnara/apis/omnara-api-2/revisions/343aebb1dff1?raw)
