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

# Rotate Credentials

> Replace the cache password and issue a new rediss:// connection string once.



## OpenAPI

````yaml /openapi.json post /v1/orgs/{orgId}/projects/{projectId}/caches/{cacheId}/credentials/rotate
openapi: 3.1.0
info:
  title: Korve API
  version: 0.1.0
  description: >-
    Typed control plane for deploying applications and explicitly provisioning
    their managed infrastructure.
servers:
  - url: https://api.korve.dev
security: []
paths:
  /v1/orgs/{orgId}/projects/{projectId}/caches/{cacheId}/credentials/rotate:
    post:
      tags:
        - caches
      summary: Rotate Credentials
      description: >-
        Replace the cache password and issue a new rediss:// connection string
        once.
      operationId: caches.rotateCredentials
      parameters:
        - name: orgId
          in: path
          required: true
          schema:
            type: string
          description: The organization's id (UUID) or slug — either form is accepted.
        - name: projectId
          in: path
          required: true
          schema:
            type: string
          description: The project's id (UUID) or slug — either form is accepted.
        - name: cacheId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: New credentials.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                  status:
                    type: string
                    enum:
                      - provisioning
                      - ready
                      - failed
                  connectionString:
                    type: string
                    description: >-
                      A rediss:// URL shown exactly once. Rotate credentials to
                      issue another.
                required:
                  - id
                  - name
                  - status
                  - connectionString
                additionalProperties: false
        '404':
          description: No such cache.
      security:
        - apiKey: []
        - session: []
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: korve_api_key
    session:
      type: apiKey
      in: cookie
      name: korve.session_token

````