Skip to main content
POST
cURL
Check out the configuration docs for Salesforce OAuth Credentials Rotations to learn how to obtain the required parameters.
Creates a Salesforce OAuth Credentials secret rotation. Infisical will rotate the consumer secret of the specified External Client App via your Salesforce connection and write the rotated consumer key/secret pair to the specified secret path.

Request body

Sample request

Sample response

Body

application/json
name
string
required

The name of the Salesforce OAuth Credentials Rotation to create. Must be slug-friendly.

Required string length: 1 - 64
projectId
string
required

The ID of the project to create the rotation in.

Minimum string length: 1
connectionId
string<uuid>
required

The ID of the Salesforce Connection to use for rotation.

environment
string
required

The slug of the project environment to create the rotation in.

Required string length: 1 - 64
secretPath
string
required

The secret path of the project to create the rotation in.

Minimum string length: 1
rotationInterval
number
required

The interval, in days, to automatically rotate secrets.

Required range: x >= 1
parameters
object
required
secretsMapping
object
required
description
string | null

An optional description for the Salesforce OAuth Credentials Rotation.

Maximum string length: 256
isAutoRotationEnabled
boolean
default:true

Whether secrets should be automatically rotated when the specified rotation interval has elapsed.

rotateAtUtc
object

The hours and minutes rotation should occur at in UTC. Defaults to Midnight (00:00) UTC.

Response

Default Response

secretRotation
object
required