> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tembo.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Update organization settings

> Configure organization defaults for agent/model, VM size and keep-alive; inference credentials and subscription fallback; agent prompts and commit/PR instructions; bot feedback, signing, reports, and insights. Only supplied settings are changed.



## OpenAPI

````yaml https://api.tembo.io/public-api/openapi/public patch /v1/organizations/{organizationId}/settings
openapi: 3.1.0
info:
  title: Tembo Public API
  description: >-
    Manage agents, sessions, repositories, and organization resources with the
    Tembo API.
  version: 1.0.0
servers:
  - url: https://api.tembo.io
    description: Tembo API
  - url: https://{deployment-origin}/api/public-api
    description: Self-hosted Tembo
    variables:
      deployment-origin:
        default: tembo.example.com
        description: Hostname of your self-hosted Tembo deployment
security: []
paths:
  /v1/organizations/{organizationId}/settings:
    patch:
      tags:
        - Organizations
      summary: Update organization settings
      description: >-
        Configure organization defaults for agent/model, VM size and keep-alive;
        inference credentials and subscription fallback; agent prompts and
        commit/PR instructions; bot feedback, signing, reports, and insights.
        Only supplied settings are changed.
      operationId: updateOrganizationSettings
      parameters:
        - in: path
          name: organizationId
          schema:
            type: string
          required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                ampApiKey:
                  type: string
                  maxLength: 64000
                  description: API key for Amp agent access.
                anthropicApiKey:
                  type: string
                  maxLength: 64000
                  description: Anthropic API key for organization-provided inference.
                awsBedrockAccessKeyId:
                  type: string
                  maxLength: 64000
                  description: AWS access key ID for Bedrock inference.
                awsBedrockRegion:
                  type: string
                  maxLength: 64000
                  description: AWS region for Bedrock inference.
                awsBedrockSecretAccessKey:
                  type: string
                  maxLength: 64000
                  description: AWS secret access key for Bedrock inference.
                cloneDepth:
                  type: integer
                  exclusiveMinimum: 0
                  description: Git clone history depth used for repositories.
                commitInstructions:
                  type: string
                  maxLength: 64000
                  description: Organization instructions for agent commit messages.
                cursorApiKey:
                  type: string
                  maxLength: 64000
                  description: API key for Cursor agent access.
                customReviewBots:
                  type: array
                  items:
                    type: string
                    pattern: ^[A-Za-z0-9][A-Za-z0-9-]*(\[bot\])?$
                    minLength: 1
                    maxLength: 100
                  maxItems: 25
                  description: >-
                    Additional GitHub bot logins Tembo responds to without an
                    @tembo mention.
                customSystemPrompt:
                  type: string
                  maxLength: 64000
                  description: Custom system instructions supplied to organization agents.
                defaultAgent:
                  type: string
                  maxLength: 64000
                  description: Default coding agent and model key for the organization.
                defaultKeepAliveMinutes:
                  type: integer
                  minimum: 0
                  maximum: 10080
                  description: >-
                    Default VM keep-alive duration in minutes. 0 preserves
                    built-in per-source durations.
                defaultSandboxSize:
                  type: string
                  enum:
                    - nano
                    - micro
                    - small
                    - medium
                    - large
                    - xl
                    - xxl
                    - ultra
                  description: Default VM size for organization sessions.
                deleteBranchWhenPrClosed:
                  type: boolean
                  description: >-
                    Delete agent-created branches when their pull requests
                    close.
                draftPrs:
                  type: boolean
                  description: Create agent pull requests as drafts by default.
                enableCoderabbitBot:
                  type: boolean
                  description: Enable handling of CodeRabbit bot feedback.
                enableCursorBot:
                  type: boolean
                  description: Enable handling of Cursor bot feedback.
                enableGeminiCodeAssistBot:
                  type: boolean
                  description: Enable handling of Gemini Code Assist bot feedback.
                enableGithubActionsBot:
                  type: boolean
                  description: Enable handling of GitHub Actions bot feedback.
                enableGraphiteBot:
                  type: boolean
                  description: Enable handling of Graphite bot feedback.
                enableGreptileBot:
                  type: boolean
                  description: Enable handling of Greptile bot feedback.
                experimentalMcp:
                  type: boolean
                  description: Enable experimental MCP features for the organization.
                featureMentionAuthor:
                  type: boolean
                  description: >-
                    Enable mentioning the author in supported integration
                    responses.
                gcpVertexAiLocation:
                  type: string
                  maxLength: 64000
                  description: Google Cloud location for Vertex AI inference.
                gcpVertexAiProject:
                  type: string
                  maxLength: 64000
                  description: Google Cloud project for Vertex AI inference.
                gcpVertexAiServiceAccountJson:
                  type: string
                  maxLength: 64000
                  description: Service-account JSON credentials for Vertex AI inference.
                kernelApiKey:
                  type: string
                  maxLength: 64000
                  description: API key for Kernel browser access.
                maxBotReviews:
                  type: integer
                  minimum: 0
                  description: Maximum number of bot review iterations.
                maxSolutions:
                  type: integer
                  minimum: 0
                  description: Maximum number of generated solutions.
                openaiApiKey:
                  type: string
                  maxLength: 64000
                  description: OpenAI API key for organization-provided inference.
                xaiApiKey:
                  type: string
                  maxLength: 64000
                  description: xAI API key for organization-provided inference.
                openrouterApiKey:
                  type: string
                  maxLength: 64000
                  description: OpenRouter API key for organization-provided inference.
                pgStatStatementsResetFrequency:
                  type: string
                  maxLength: 64000
                  description: >-
                    Reset frequency for PostgreSQL pg_stat_statements
                    collection.
                pmSystemPrompt:
                  type: string
                  maxLength: 64000
                  description: Custom system instructions for the project-management agent.
                prTitleInstructions:
                  type: string
                  maxLength: 64000
                  description: Organization instructions for agent pull request titles.
                pullRequestInsightsEnabled:
                  type: boolean
                  description: >-
                    Enable or disable pull request contribution insight
                    collection.
                shouldSignCommits:
                  type: boolean
                  description: >-
                    Sign agent-created commits when signing credentials are
                    configured.
                slackReviewOnTembo:
                  type: boolean
                  description: Use Tembo review links in Slack review notifications.
                slowQueryThresholdMs:
                  type: number
                  minimum: 0
                  description: >-
                    Threshold in milliseconds for identifying slow database
                    queries.
                sshPublicKeys:
                  type: string
                  maxLength: 64000
                  description: >-
                    SSH public keys authorized for organization workspace
                    access.
                weeklyReportEnabled:
                  type: boolean
                  description: Enable or disable the organization weekly report.
              additionalProperties: false
      responses:
        '200':
          description: Update organization settings
          content:
            application/json:
              schema:
                type: object
                properties:
                  organizationId:
                    type: string
                  settings:
                    type: object
                    properties:
                      cloneDepth:
                        type: integer
                        exclusiveMinimum: 0
                        description: Git clone history depth used for repositories.
                      commitInstructions:
                        type: string
                        maxLength: 64000
                        description: Organization instructions for agent commit messages.
                      customReviewBots:
                        type: array
                        items:
                          type: string
                          pattern: ^[A-Za-z0-9][A-Za-z0-9-]*(\[bot\])?$
                          minLength: 1
                          maxLength: 100
                        maxItems: 25
                        description: >-
                          Additional GitHub bot logins Tembo responds to without
                          an @tembo mention.
                      customSystemPrompt:
                        type: string
                        maxLength: 64000
                        description: >-
                          Custom system instructions supplied to organization
                          agents.
                      defaultAgent:
                        type: string
                        maxLength: 64000
                        description: >-
                          Default coding agent and model key for the
                          organization.
                      defaultKeepAliveMinutes:
                        type: integer
                        minimum: 0
                        maximum: 10080
                        description: >-
                          Default VM keep-alive duration in minutes. 0 preserves
                          built-in per-source durations.
                      defaultSandboxSize:
                        type: string
                        enum:
                          - nano
                          - micro
                          - small
                          - medium
                          - large
                          - xl
                          - xxl
                          - ultra
                        description: Default VM size for organization sessions.
                      deleteBranchWhenPrClosed:
                        type: boolean
                        description: >-
                          Delete agent-created branches when their pull requests
                          close.
                      draftPrs:
                        type: boolean
                        description: Create agent pull requests as drafts by default.
                      enableCoderabbitBot:
                        type: boolean
                        description: Enable handling of CodeRabbit bot feedback.
                      enableCursorBot:
                        type: boolean
                        description: Enable handling of Cursor bot feedback.
                      enableGeminiCodeAssistBot:
                        type: boolean
                        description: Enable handling of Gemini Code Assist bot feedback.
                      enableGithubActionsBot:
                        type: boolean
                        description: Enable handling of GitHub Actions bot feedback.
                      enableGraphiteBot:
                        type: boolean
                        description: Enable handling of Graphite bot feedback.
                      enableGreptileBot:
                        type: boolean
                        description: Enable handling of Greptile bot feedback.
                      experimentalMcp:
                        type: boolean
                        description: Enable experimental MCP features for the organization.
                      fallbackToApiOnSubscriptionLimit:
                        type: boolean
                        description: >-
                          Use the API key or Tembo inference when every
                          connected subscription is out of usage.
                      featureMentionAuthor:
                        type: boolean
                        description: >-
                          Enable mentioning the author in supported integration
                          responses.
                      maxBotReviews:
                        type: integer
                        minimum: 0
                        description: Maximum number of bot review iterations.
                      maxSolutions:
                        type: integer
                        minimum: 0
                        description: Maximum number of generated solutions.
                      onDemandMaxCreditUsage:
                        type: number
                        minimum: 0
                      pgStatStatementsResetFrequency:
                        type: string
                        maxLength: 64000
                        description: >-
                          Reset frequency for PostgreSQL pg_stat_statements
                          collection.
                      pmSystemPrompt:
                        type: string
                        maxLength: 64000
                        description: >-
                          Custom system instructions for the project-management
                          agent.
                      prTitleInstructions:
                        type: string
                        maxLength: 64000
                        description: >-
                          Organization instructions for agent pull request
                          titles.
                      pullRequestInsightsEnabled:
                        type: boolean
                        description: >-
                          Enable or disable pull request contribution insight
                          collection.
                      shouldSignCommits:
                        type: boolean
                        description: >-
                          Sign agent-created commits when signing credentials
                          are configured.
                      slackReviewOnTembo:
                        type: boolean
                        description: Use Tembo review links in Slack review notifications.
                      slowQueryThresholdMs:
                        type: number
                        minimum: 0
                        description: >-
                          Threshold in milliseconds for identifying slow
                          database queries.
                      sshPublicKeys:
                        type: string
                        maxLength: 64000
                        description: >-
                          SSH public keys authorized for organization workspace
                          access.
                      weeklyReportEnabled:
                        type: boolean
                        description: Enable or disable the organization weekly report.
                    required:
                      - cloneDepth
                      - commitInstructions
                      - customReviewBots
                      - customSystemPrompt
                      - defaultAgent
                      - defaultKeepAliveMinutes
                      - defaultSandboxSize
                      - deleteBranchWhenPrClosed
                      - draftPrs
                      - enableCoderabbitBot
                      - enableCursorBot
                      - enableGeminiCodeAssistBot
                      - enableGithubActionsBot
                      - enableGraphiteBot
                      - enableGreptileBot
                      - experimentalMcp
                      - fallbackToApiOnSubscriptionLimit
                      - featureMentionAuthor
                      - maxBotReviews
                      - maxSolutions
                      - onDemandMaxCreditUsage
                      - pgStatStatementsResetFrequency
                      - pmSystemPrompt
                      - prTitleInstructions
                      - pullRequestInsightsEnabled
                      - shouldSignCommits
                      - slackReviewOnTembo
                      - slowQueryThresholdMs
                      - sshPublicKeys
                      - weeklyReportEnabled
                    additionalProperties: false
                required:
                  - organizationId
                  - settings
                additionalProperties: false
        '400':
          description: Invalid request or missing organization information.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '403':
          description: Organization administrator access is required
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '404':
          description: Organization resource not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '409':
          description: Organization operation conflicts with existing state
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '500':
          description: Organization operation failed
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '503':
          description: Required organization storage is unavailable
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
      security:
        - apiKey: []
      x-codeSamples:
        - lang: typescript
          label: TypeScript SDK
          source: >
            import Tembo from '@tembo-io/sdk';


            const client = new Tembo();


            const setting = await
            client.organizations.settings.update('organizationId', {});
        - lang: rust
          label: Rust SDK
          source: |
            use tembo_rs::*;

            let client = Tembo::from_env()?;

            let response = client
                .organizations()
                .settings()
                .update("example", SettingsUpdateBody::new())
                .send()
                .await?;
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.