---
title: "Rotate Credential"
method: POST
path: "/api/v1/apps/connectors/credentials"
tags: ["Connector"]
---

# Rotate Credential

`POST /api/v1/apps/connectors/credentials`

Rotate credentials for a connector.

## Request body

- C1ApiAppV1ConnectorServiceRotateCredentialRequest — ConnectorServiceRotateCredentialRequest is a request for rotating connector credentials. It uses URL values for input.
  - `appId` string — The appId of the app the connector is attached to.
  - `connectorId` string — The connectorId of the connector that we are rotating the credentials for.

## Response `200`

ConnectorServiceRotateCredentialResponse is the response returned by the rotate method.

- C1ApiAppV1ConnectorServiceRotateCredentialResponse — ConnectorServiceRotateCredentialResponse is the response returned by the rotate method.
  - `credential` C1ApiAppV1ConnectorCredential — ConnectorCredential is used by a connector to authenticate with conductor one.
    - `appId` string — The appId of the app the connector is attached to.
    - `clientId` string — The client id of the ConnectorCredential.
    - `clientSecret` string — The client secret of the ConnectorCredential. It's only returned on creation.
    - `connectorId` string — The connectorId of the connector the credential is associated with.
    - `createdAt` string, date-time
    - `deletedAt` string, date-time
    - `displayName` string — The display name of the ConnectorCredential.
    - `expiresTime` string, date-time
    - `id` string — The id of the ConnectorCredential.
    - `lastUsedAt` string, date-time
    - `updatedAt` string, date-time

---

[API](https://skmtc.net/conductorone/apis/c1-api.md) · [All operations](https://skmtc.net/conductorone/apis/c1-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/conductorone/c1-api/revisions/d391405a35d3/schema)
