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

# Update key quorum

> Create an intent to update a key quorum. The intent must be authorized by the key quorum members before it can be executed.



## OpenAPI

````yaml patch /v1/intents/key_quorums/{key_quorum_id}
openapi: 3.1.0
info:
  version: 0.0.1
  title: Privy API
  description: >-
    REST API for Privy's wallet infrastructure — provision and manage wallets
    across EVM, Solana, and Bitcoin, authenticate users, sign transactions, and
    configure programmable policies and authorization intents.
  contact:
    name: Privy
    url: https://www.privy.io/
    email: support@privy.io
servers:
  - url: https://api.privy.io
security: []
tags:
  - name: Accounts
    description: Operations related to asset accounts
  - name: Aggregations
    description: Operations related to aggregations for tracking and measuring metrics
  - name: Apps
    description: Operations related to app settings and allowlist management
  - name: Client Auth
    description: OAuth token exchange and device authorization operations
  - name: Condition Sets
    description: Operations related to condition sets
  - name: Embedded wallets
    description: Operations related to embedded wallet creation and authentication
  - name: Fiat
    description: Operations related to fiat onramping and offramping
  - name: Intents
    description: Operations related to authorization intents for wallet actions
  - name: Key quorums
    description: Operations related to key quorums
  - name: Kraken Embed
    description: >-
      Operations for Kraken Embed integration, including quotes, trades, user
      management, and portfolio operations
  - name: OAuth
    description: >-
      OAuth 2.0 endpoints including Device Authorization Grant (RFC 8628) for
      CLI and limited-input device login flows
  - name: Organizations
    description: Operations related to organization secret management
  - name: Policies
    description: Operations related to policies
  - name: Shared
    description: Common schemas shared across resources
  - name: Swaps
    description: Operations for swapping tokens within wallets
  - name: Transactions
    description: Operations related to transactions
  - name: User signers
    description: Operations related to user signers
  - name: Users
    description: Operations related to users
  - name: Wallet Actions
    description: Operations related to wallet actions
  - name: Wallets
    description: Operations related to wallets
  - name: Webhooks
    description: >-
      Webhook events that Privy sends to your configured endpoint when specific
      actions occur in your app
  - name: Yield
    description: >-
      Operations for depositing and withdrawing funds from ERC-4626 yield vaults
      (Morpho, Aave)
paths:
  /v1/intents/key_quorums/{key_quorum_id}:
    patch:
      tags:
        - Intents
      summary: Create key quorum update intent
      description: >-
        Create an intent to update a key quorum. The intent must be authorized
        by the key quorum members before it can be executed.
      operationId: createKeyQuorumUpdateIntent
      parameters:
        - schema:
            type: string
            description: ID of the key quorum.
          required: true
          name: key_quorum_id
          in: path
        - schema:
            type: string
            description: ID of your Privy app.
          required: true
          name: privy-app-id
          in: header
        - schema:
            type: string
            description: >-
              Request expiry. Value is a Unix timestamp in milliseconds
              representing the deadline by which the request must be processed.
          required: false
          name: privy-request-expiry
          in: header
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/KeyQuorumUpdateRequestBody'
      responses:
        '200':
          description: Created key quorum update intent.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KeyQuorumIntentResponse'
      security:
        - appSecretAuth: []
components:
  schemas:
    KeyQuorumUpdateRequestBody:
      type: object
      properties:
        public_keys:
          type: array
          items:
            type: string
          description: >-
            List of P-256 public keys of the keys that should be authorized to
            sign on the key quorum, in base64-encoded DER format.
        authorization_threshold:
          type: number
          description: >-
            The number of keys that must sign for an action to be valid. Must be
            less than or equal to total number of key quorum members.
        display_name:
          type: string
          maxLength: 50
        user_ids:
          type: array
          items:
            type: string
          description: >-
            List of user IDs of the users that should be authorized to sign on
            the key quorum.
        key_quorum_ids:
          type: array
          items:
            type: string
          maxItems: 5
          description: >-
            List of key quorum IDs that should be members of this key quorum.
            Key quorums can only be nested 1 level deep.
      description: >-
        Request input for updating an existing key quorum. At least one field
        must be provided.
      title: KeyQuorumUpdateRequestBody
      x-stainless-model: key_quorums.key_quorum_update_request_body
    KeyQuorumIntentResponse:
      allOf:
        - $ref: '#/components/schemas/BaseIntentResponse'
        - type: object
          properties:
            intent_type:
              type: string
              enum:
                - KEY_QUORUM
            request_details:
              type: object
              properties:
                method:
                  type: string
                  enum:
                    - PATCH
                url:
                  type: string
                body:
                  allOf:
                    - $ref: '#/components/schemas/KeyQuorumUpdateRequestBody'
                    - additionalProperties: false
              required:
                - method
                - url
                - body
              description: >-
                The original key quorum update request that would be sent to the
                key quorum endpoint
            current_resource_data:
              allOf:
                - $ref: '#/components/schemas/KeyQuorum'
                - description: >-
                    Current state of the key quorum before any changes. If
                    undefined, the resource was deleted and no longer exists
            action_result:
              allOf:
                - $ref: '#/components/schemas/BaseActionResult'
                - type: object
                  properties:
                    response_body:
                      $ref: '#/components/schemas/KeyQuorum'
                    prior_state:
                      allOf:
                        - $ref: '#/components/schemas/KeyQuorum'
                        - description: State of the key quorum immediately before execution
                  required:
                    - response_body
                    - prior_state
              description: >-
                Result of key quorum update execution (only present if status is
                'executed' or 'failed')
              title: BaseActionResult
              x-stainless-model: intents.base_action_result
          required:
            - intent_type
            - request_details
      description: Response for a key quorum intent
      title: KeyQuorumIntentResponse
      x-stainless-model: intents.key_quorum_intent_response
    BaseIntentResponse:
      type: object
      properties:
        intent_id:
          type: string
          description: Unique ID for the intent
        created_by_display_name:
          type: string
          description: Display name of the user who created the intent
        created_by_id:
          type: string
          description: >-
            ID of the user who created the intent. If undefined, the intent was
            created using the app secret
        created_at:
          type: number
          description: Unix timestamp when the intent was created
        resource_id:
          type: string
          description: ID of the resource being modified (wallet_id, policy_id, etc)
        authorization_details:
          type: array
          items:
            $ref: '#/components/schemas/IntentAuthorization'
          description: >-
            Detailed authorization information including key quorum members,
            thresholds, and signature status
        status:
          $ref: '#/components/schemas/IntentStatus'
        custom_expiry:
          type: boolean
          description: >-
            Whether this intent has a custom expiry time set by the client. If
            false, the intent expires after a default duration.
        expires_at:
          type: number
          description: Unix timestamp when the intent expires
        rejected_at:
          type: number
          description: >-
            Unix timestamp when the intent was rejected, present when status is
            'rejected'
        dismissed_at:
          type: number
          description: >-
            Unix timestamp when the intent was dismissed, present when status is
            'dismissed'
        dismissal_reason:
          type: string
          description: >-
            Human-readable reason for dismissal, present when status is
            'dismissed'
      required:
        - intent_id
        - created_by_display_name
        - created_at
        - resource_id
        - authorization_details
        - status
        - custom_expiry
        - expires_at
      description: Common fields shared by all intent response types.
      title: BaseIntentResponse
      x-stainless-model: intents.base_intent_response
    KeyQuorum:
      type: object
      properties:
        id:
          type: string
          format: cuid2
        display_name:
          type:
            - string
            - 'null'
          maxLength: 50
        authorization_threshold:
          type:
            - number
            - 'null'
          minimum: 1
        authorization_keys:
          type: array
          items:
            $ref: '#/components/schemas/AuthorizationKey'
        user_ids:
          type:
            - array
            - 'null'
          items:
            type: string
        key_quorum_ids:
          type: array
          items:
            type: string
          minItems: 1
          maxItems: 5
          description: List of nested key quorum IDs that are members of this key quorum.
      required:
        - id
        - display_name
        - authorization_threshold
        - authorization_keys
        - user_ids
      description: A key quorum for authorizing wallet operations.
      title: KeyQuorum
      example:
        id: tb54eps4z44ed0jepousxi4n
        display_name: Prod key quorum
        authorization_threshold: 1
        authorization_keys:
          - public_key: |-
              MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEx4aoeD72yykviK+f/ckqE2CItVIG
              1rCnvC3/XZ1HgpOcMEMialRmTrqIK4oZlYd1RfxU3za/C9yjhboIuoPD3g==
            display_name: null
          - public_key: |-
              MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAErzZtQr/bMIh3Y8f9ZqseB9i/AfjQ
              hu+agbNqXcJy/TfoNqvc/Y3Mh7gIZ8ZLXQEykycx4mYSpqrxp1lBKqsZDQ==
            display_name: null
        user_ids: null
      x-stainless-model: key_quorums.key_quorum
    BaseActionResult:
      type: object
      properties:
        status_code:
          type: number
          description: HTTP status code from the action execution
        executed_at:
          type: number
          description: Unix timestamp when the action was executed
        authorized_by_display_name:
          type: string
          description: Display name of the key quorum that authorized execution
        authorized_by_id:
          type: string
          description: ID of the key quorum that authorized execution
      required:
        - status_code
        - executed_at
      description: Common fields for intent action execution results.
      title: BaseActionResult
      x-stainless-model: intents.base_action_result
    IntentAuthorization:
      type: object
      properties:
        members:
          type: array
          items:
            $ref: '#/components/schemas/IntentAuthorizationMember'
          description: Members in this authorization quorum
        threshold:
          type: number
          description: Number of signatures required to satisfy this quorum
        display_name:
          type: string
          description: Display name of the key quorum
      required:
        - members
        - threshold
      description: Authorization quorum for an intent
      title: IntentAuthorization
      x-stainless-model: intents.intent_authorization
    IntentStatus:
      type: string
      enum:
        - pending
        - processing
        - executed
        - failed
        - expired
        - rejected
        - dismissed
      description: Current status of an intent.
      title: IntentStatus
      x-stainless-model: intents.intent_status
    AuthorizationKey:
      type: object
      properties:
        public_key:
          type: string
        display_name:
          type:
            - string
            - 'null'
          maxLength: 50
      required:
        - public_key
        - display_name
      additionalProperties: false
      description: A public key authorized to sign on a key quorum.
      title: AuthorizationKey
      x-stainless-model: key_quorums.authorization_key
    IntentAuthorizationMember:
      oneOf:
        - $ref: '#/components/schemas/IntentAuthorizationUserMember'
        - $ref: '#/components/schemas/IntentAuthorizationKeyMember'
        - $ref: '#/components/schemas/IntentAuthorizationKeyQuorum'
      discriminator:
        propertyName: type
        mapping:
          user:
            $ref: '#/components/schemas/IntentAuthorizationUserMember'
          key:
            $ref: '#/components/schemas/IntentAuthorizationKeyMember'
          key_quorum:
            $ref: '#/components/schemas/IntentAuthorizationKeyQuorum'
      description: >-
        A member of an intent authorization quorum. Can be a user, key, or
        nested key quorum.
      title: IntentAuthorizationMember
      x-stainless-model: intents.intent_authorization_member
    IntentAuthorizationUserMember:
      type: object
      properties:
        type:
          type: string
          enum:
            - user
        user_id:
          type: string
          description: User ID of the key quorum member
        signed_at:
          type:
            - number
            - 'null'
          description: Unix timestamp when this member signed, or null if not yet signed.
      required:
        - type
        - user_id
        - signed_at
      description: A user member of an intent authorization quorum.
      title: IntentAuthorizationUserMember
      x-stainless-model: intents.intent_authorization_user_member
    IntentAuthorizationKeyMember:
      type: object
      properties:
        type:
          type: string
          enum:
            - key
        public_key:
          type: string
          description: Public key of the key quorum member
        signed_at:
          type:
            - number
            - 'null'
          description: Unix timestamp when this member signed, or null if not yet signed.
      required:
        - type
        - public_key
        - signed_at
      description: A key member of an intent authorization quorum.
      title: IntentAuthorizationKeyMember
      x-stainless-model: intents.intent_authorization_key_member
    IntentAuthorizationKeyQuorum:
      type: object
      properties:
        type:
          type: string
          enum:
            - key_quorum
        key_quorum_id:
          type: string
          description: ID of the child key quorum member
        display_name:
          type: string
          description: Display name for the child key quorum (if any)
        threshold_met:
          type: boolean
          description: Whether this child key quorum has met its signature threshold
        threshold:
          type: number
          description: Number of signatures required from this child quorum
        members:
          type: array
          items:
            $ref: '#/components/schemas/IntentAuthorizationKeyQuorumMember'
          description: Members of this child quorum
      required:
        - type
        - key_quorum_id
        - threshold_met
        - threshold
        - members
      description: A nested key quorum member of an intent authorization quorum.
      title: IntentAuthorizationKeyQuorum
      x-stainless-model: intents.intent_authorization_key_quorum
    IntentAuthorizationKeyQuorumMember:
      oneOf:
        - $ref: '#/components/schemas/IntentAuthorizationUserMember'
        - $ref: '#/components/schemas/IntentAuthorizationKeyMember'
      discriminator:
        propertyName: type
        mapping:
          user:
            $ref: '#/components/schemas/IntentAuthorizationUserMember'
          key:
            $ref: '#/components/schemas/IntentAuthorizationKeyMember'
      description: >-
        A leaf member (user or key) of a nested key quorum in an intent
        authorization.
      title: IntentAuthorizationKeyQuorumMember
      x-stainless-model: intents.intent_authorization_key_quorum_member
  securitySchemes:
    appSecretAuth:
      type: http
      scheme: basic
      description: >-
        Basic Auth header with your app ID as the username and your app secret
        as the password.

````