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

# Update

> Update the specified Stripe API Key Rotation.



## OpenAPI

````yaml PATCH /api/v2/secret-rotations/stripe-api-key/{rotationId}
openapi: 3.0.3
info:
  title: Infisical API
  description: List of all available APIs that can be consumed
  version: 0.0.1
servers:
  - url: https://us.infisical.com
    description: Production server (US)
  - url: https://eu.infisical.com
    description: Production server (EU)
  - url: http://localhost:8080
    description: Local server
security: []
paths:
  /api/v2/secret-rotations/stripe-api-key/{rotationId}:
    patch:
      tags:
        - Secret Rotations
      description: Update the specified Stripe API Key Rotation.
      operationId: updateStripeAPIKeyRotation
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: rotationId
          required: true
          description: The ID of the Stripe API Key Rotation to be updated.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 64
                  description: >-
                    The updated name of the Stripe API Key Rotation. Must be
                    slug-friendly.
                description:
                  type: string
                  maxLength: 256
                  nullable: true
                  description: The updated description of the Stripe API Key Rotation.
                isAutoRotationEnabled:
                  type: boolean
                  description: >-
                    Whether secrets should be automatically rotated when the
                    specified rotation interval has elapsed.
                rotationInterval:
                  type: number
                  minimum: 1
                  description: >-
                    The updated interval, in days, to automatically rotate
                    secrets.
                rotateAtUtc:
                  type: object
                  properties:
                    hours:
                      type: number
                      minimum: 0
                      maximum: 23
                    minutes:
                      type: number
                      minimum: 0
                      maximum: 59
                  required:
                    - hours
                    - minutes
                  additionalProperties: false
                  description: >-
                    The updated hours and minutes rotation should occur at in
                    UTC.
                parameters:
                  type: object
                  properties:
                    keyName:
                      type: string
                      minLength: 1
                      maxLength: 80
                      description: >-
                        The name for each Stripe API key this rotation creates,
                        up to 80 characters. Infisical appends a timestamp so
                        the old and new key can be told apart. Defaults to
                        'infisical-managed'.
                    permissions:
                      type: array
                      items:
                        type: string
                        enum:
                          - account_link_write
                          - adjustment_read
                          - api_key_write
                          - apple_pay_domain_read
                          - apple_pay_domain_write
                          - application_fee_read
                          - application_fee_write
                          - balance_read
                          - balance_transaction_source_read
                          - billing_analytics_meter_usage_read
                          - billing_clock_read
                          - billing_clock_write
                          - billing_intent_read
                          - billing_meter_event_read
                          - billing_meter_event_write
                          - billing_meter_read
                          - billing_meter_write
                          - billing_profile_read
                          - billing_profile_write
                          - billing_settings_read
                          - billing_settings_write
                          - capital_for_platforms_financing_offer_read
                          - capital_for_platforms_financing_offer_write
                          - capital_for_platforms_financing_summary_read
                          - capital_for_platforms_financing_transaction_read
                          - charge_read
                          - charge_write
                          - checkout_session_read
                          - checkout_session_write
                          - confirmation_token_client_read
                          - confirmation_token_client_write
                          - confirmation_token_read
                          - connected_account_read
                          - coupon_read
                          - coupon_write
                          - credit_note_read
                          - credit_note_write
                          - customer_portal_read
                          - customer_portal_write
                          - customer_read
                          - customer_session_read
                          - customer_session_write
                          - customer_write
                          - dispute_read
                          - dispute_write
                          - edit_link_write
                          - entitlement_read
                          - event_read
                          - fee_domain_resources_read
                          - file_read
                          - file_write
                          - financial_account_read
                          - inbound_transfer_read
                          - invoice_read
                          - invoice_write
                          - issuing_authorization_read
                          - issuing_authorization_write
                          - issuing_card_read
                          - issuing_card_write
                          - issuing_cardholder_read
                          - issuing_cardholder_write
                          - issuing_credit_ledger_read
                          - issuing_credit_ledger_write
                          - issuing_dispute_read
                          - issuing_dispute_write
                          - issuing_read
                          - issuing_token_network_data_read
                          - issuing_token_read
                          - issuing_token_write
                          - issuing_transaction_read
                          - issuing_transaction_write
                          - issuing_verification_write
                          - issuing_write
                          - mandate_read
                          - mandate_write
                          - order_read
                          - order_write
                          - outbound_payment_read
                          - outbound_transfer_read
                          - payment_intent_read
                          - payment_intent_write
                          - payment_links_read
                          - payment_links_write
                          - payment_method_configurations_read
                          - payment_method_configurations_write
                          - payment_method_domain_read
                          - payment_method_domain_write
                          - payment_method_read
                          - payment_method_write
                          - payment_records_read
                          - payment_records_write
                          - payout_intent_read
                          - payout_read
                          - payout_write
                          - plan_read
                          - plan_write
                          - product_catalog_import_read
                          - product_catalog_import_write
                          - product_read
                          - product_write
                          - promotion_code_read
                          - promotion_code_write
                          - provisioning_account_request_read
                          - provisioning_account_request_write
                          - provisioning_project_read
                          - provisioning_project_write
                          - provisioning_resource_read
                          - provisioning_resource_write
                          - quote_read
                          - quote_write
                          - rate_card_subscription_write
                          - rate_card_write
                          - received_credit_read
                          - received_debit_read
                          - recipient_verification_read
                          - report_runs_and_report_types_read
                          - report_runs_and_report_types_write
                          - review_read
                          - review_write
                          - secret_read
                          - secret_write
                          - setup_intent_read
                          - setup_intent_write
                          - shipping_rate_read
                          - shipping_rate_write
                          - sku_read
                          - sku_write
                          - source_read
                          - source_write
                          - subscription_read
                          - subscription_write
                          - tax_calculations_and_transactions_read
                          - tax_calculations_and_transactions_write
                          - tax_locations_read
                          - tax_locations_write
                          - tax_rate_read
                          - tax_rate_write
                          - tax_settings_read
                          - tax_settings_write
                          - terminal_configuration_read
                          - terminal_configuration_write
                          - terminal_connection_token_write
                          - terminal_location_read
                          - terminal_location_write
                          - terminal_reader_read
                          - terminal_reader_write
                          - token_read
                          - token_write
                          - top_up_read
                          - top_up_write
                          - transaction_read
                          - transfer_read
                          - transfer_write
                          - treasury_transaction_read
                          - usage_record_read
                          - usage_record_write
                          - webhook_read
                          - webhook_write
                      minItems: 1
                      maxItems: 158
                      description: >-
                        The permissions granted to the generated Stripe API key.
                        Stripe has no wildcard permission, so this is the full
                        list of what the key may do.
                  required:
                    - permissions
                  additionalProperties: false
                secretsMapping:
                  type: object
                  properties:
                    apiKey:
                      type: string
                      minLength: 1
                      description: >-
                        The name of the secret that the rotated Stripe API key
                        will be mapped to.
                  required:
                    - apiKey
                  additionalProperties: false
              additionalProperties: false
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  secretRotation:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      name:
                        type: string
                      description:
                        type: string
                        nullable: true
                      isAutoRotationEnabled:
                        type: boolean
                        default: true
                      activeIndex:
                        type: number
                        default: 0
                      folderId:
                        type: string
                        format: uuid
                      connectionId:
                        type: string
                        format: uuid
                      createdAt:
                        type: string
                        format: date-time
                      updatedAt:
                        type: string
                        format: date-time
                      rotationInterval:
                        type: number
                      rotationStatus:
                        type: string
                      lastRotationAttemptedAt:
                        type: string
                        format: date-time
                      lastRotatedAt:
                        type: string
                        format: date-time
                      lastRotationJobId:
                        type: string
                        nullable: true
                      nextRotationAt:
                        type: string
                        format: date-time
                        nullable: true
                      isLastRotationManual:
                        type: boolean
                        default: true
                      connection:
                        type: object
                        properties:
                          app:
                            type: string
                            enum:
                              - stripe
                          name:
                            type: string
                          id:
                            type: string
                            format: uuid
                        required:
                          - app
                          - name
                          - id
                        additionalProperties: false
                      environment:
                        type: object
                        properties:
                          slug:
                            type: string
                          name:
                            type: string
                          id:
                            type: string
                            format: uuid
                        required:
                          - slug
                          - name
                          - id
                        additionalProperties: false
                      projectId:
                        type: string
                      folder:
                        type: object
                        properties:
                          id:
                            type: string
                          path:
                            type: string
                        required:
                          - id
                          - path
                        additionalProperties: false
                      rotateAtUtc:
                        type: object
                        properties:
                          hours:
                            type: number
                            minimum: 0
                            maximum: 23
                          minutes:
                            type: number
                            minimum: 0
                            maximum: 59
                        required:
                          - hours
                          - minutes
                        additionalProperties: false
                      lastRotationMessage:
                        type: string
                        nullable: true
                      type:
                        type: string
                        enum:
                          - stripe-api-key
                      parameters:
                        type: object
                        properties:
                          keyName:
                            type: string
                            minLength: 1
                            maxLength: 80
                            description: >-
                              The name for each Stripe API key this rotation
                              creates, up to 80 characters. Infisical appends a
                              timestamp so the old and new key can be told
                              apart. Defaults to 'infisical-managed'.
                          permissions:
                            type: array
                            items:
                              type: string
                              enum:
                                - account_link_write
                                - adjustment_read
                                - api_key_write
                                - apple_pay_domain_read
                                - apple_pay_domain_write
                                - application_fee_read
                                - application_fee_write
                                - balance_read
                                - balance_transaction_source_read
                                - billing_analytics_meter_usage_read
                                - billing_clock_read
                                - billing_clock_write
                                - billing_intent_read
                                - billing_meter_event_read
                                - billing_meter_event_write
                                - billing_meter_read
                                - billing_meter_write
                                - billing_profile_read
                                - billing_profile_write
                                - billing_settings_read
                                - billing_settings_write
                                - capital_for_platforms_financing_offer_read
                                - capital_for_platforms_financing_offer_write
                                - capital_for_platforms_financing_summary_read
                                - >-
                                  capital_for_platforms_financing_transaction_read
                                - charge_read
                                - charge_write
                                - checkout_session_read
                                - checkout_session_write
                                - confirmation_token_client_read
                                - confirmation_token_client_write
                                - confirmation_token_read
                                - connected_account_read
                                - coupon_read
                                - coupon_write
                                - credit_note_read
                                - credit_note_write
                                - customer_portal_read
                                - customer_portal_write
                                - customer_read
                                - customer_session_read
                                - customer_session_write
                                - customer_write
                                - dispute_read
                                - dispute_write
                                - edit_link_write
                                - entitlement_read
                                - event_read
                                - fee_domain_resources_read
                                - file_read
                                - file_write
                                - financial_account_read
                                - inbound_transfer_read
                                - invoice_read
                                - invoice_write
                                - issuing_authorization_read
                                - issuing_authorization_write
                                - issuing_card_read
                                - issuing_card_write
                                - issuing_cardholder_read
                                - issuing_cardholder_write
                                - issuing_credit_ledger_read
                                - issuing_credit_ledger_write
                                - issuing_dispute_read
                                - issuing_dispute_write
                                - issuing_read
                                - issuing_token_network_data_read
                                - issuing_token_read
                                - issuing_token_write
                                - issuing_transaction_read
                                - issuing_transaction_write
                                - issuing_verification_write
                                - issuing_write
                                - mandate_read
                                - mandate_write
                                - order_read
                                - order_write
                                - outbound_payment_read
                                - outbound_transfer_read
                                - payment_intent_read
                                - payment_intent_write
                                - payment_links_read
                                - payment_links_write
                                - payment_method_configurations_read
                                - payment_method_configurations_write
                                - payment_method_domain_read
                                - payment_method_domain_write
                                - payment_method_read
                                - payment_method_write
                                - payment_records_read
                                - payment_records_write
                                - payout_intent_read
                                - payout_read
                                - payout_write
                                - plan_read
                                - plan_write
                                - product_catalog_import_read
                                - product_catalog_import_write
                                - product_read
                                - product_write
                                - promotion_code_read
                                - promotion_code_write
                                - provisioning_account_request_read
                                - provisioning_account_request_write
                                - provisioning_project_read
                                - provisioning_project_write
                                - provisioning_resource_read
                                - provisioning_resource_write
                                - quote_read
                                - quote_write
                                - rate_card_subscription_write
                                - rate_card_write
                                - received_credit_read
                                - received_debit_read
                                - recipient_verification_read
                                - report_runs_and_report_types_read
                                - report_runs_and_report_types_write
                                - review_read
                                - review_write
                                - secret_read
                                - secret_write
                                - setup_intent_read
                                - setup_intent_write
                                - shipping_rate_read
                                - shipping_rate_write
                                - sku_read
                                - sku_write
                                - source_read
                                - source_write
                                - subscription_read
                                - subscription_write
                                - tax_calculations_and_transactions_read
                                - tax_calculations_and_transactions_write
                                - tax_locations_read
                                - tax_locations_write
                                - tax_rate_read
                                - tax_rate_write
                                - tax_settings_read
                                - tax_settings_write
                                - terminal_configuration_read
                                - terminal_configuration_write
                                - terminal_connection_token_write
                                - terminal_location_read
                                - terminal_location_write
                                - terminal_reader_read
                                - terminal_reader_write
                                - token_read
                                - token_write
                                - top_up_read
                                - top_up_write
                                - transaction_read
                                - transfer_read
                                - transfer_write
                                - treasury_transaction_read
                                - usage_record_read
                                - usage_record_write
                                - webhook_read
                                - webhook_write
                            minItems: 1
                            maxItems: 158
                            description: >-
                              The permissions granted to the generated Stripe
                              API key. Stripe has no wildcard permission, so
                              this is the full list of what the key may do.
                        required:
                          - permissions
                        additionalProperties: false
                      secretsMapping:
                        type: object
                        properties:
                          apiKey:
                            type: string
                            minLength: 1
                            description: >-
                              The name of the secret that the rotated Stripe API
                              key will be mapped to.
                        required:
                          - apiKey
                        additionalProperties: false
                    required:
                      - id
                      - name
                      - folderId
                      - connectionId
                      - createdAt
                      - updatedAt
                      - rotationInterval
                      - rotationStatus
                      - lastRotationAttemptedAt
                      - lastRotatedAt
                      - connection
                      - environment
                      - projectId
                      - folder
                      - rotateAtUtc
                      - type
                      - parameters
                      - secretsMapping
                    additionalProperties: false
                required:
                  - secretRotation
                additionalProperties: false
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 400
                  message:
                    type: string
                  error:
                    type: string
                  details: {}
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 401
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 403
                  message:
                    type: string
                  details: {}
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 404
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '422':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 422
                  message: {}
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - error
                additionalProperties: false
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 500
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false

````

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