Create
Create a Salesforce OAuth Credentials Rotation for the specified project.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | A unique, slug-friendly name for the rotation (max 100 characters). |
projectId | string (UUID) | Yes | The project ID. |
connectionId | string (UUID) | Yes | ID of the Salesforce app connection. |
environment | string | Yes | Environment slug (e.g. dev, prod). |
secretPath | string | Yes | Path where the generated secrets will be stored. |
isAutoRotationEnabled | boolean | No | Whether to rotate automatically on the schedule. Defaults to true. |
rotationInterval | number | Yes | Days between rotations (minimum 1). |
rotateAtUtc | object | No | Time of day (UTC) to run rotation: { "hours", "minutes" }. Defaults to { "hours": 0, "minutes": 0 }. |
parameters.appId | string | Yes | The identifier of the Salesforce External Client App to rotate the consumer secret for. |
parameters.appName | string | Yes | The developer name of the Salesforce External Client App to rotate the consumer secret for. |
secretsMapping.consumerKey | string | Yes | Secret key name to store the rotated consumer key (e.g. SALESFORCE_CONSUMER_KEY). |
secretsMapping.consumerSecret | string | Yes | Secret key name to store the rotated consumer secret (e.g. SALESFORCE_CONSUMER_SECRET). |
description | string | No | Optional description. |
Sample request
Sample response
Body
The name of the Salesforce OAuth Credentials Rotation to create. Must be slug-friendly.
1 - 64The ID of the project to create the rotation in.
1The ID of the Salesforce Connection to use for rotation.
The slug of the project environment to create the rotation in.
1 - 64The secret path of the project to create the rotation in.
1The interval, in days, to automatically rotate secrets.
x >= 1An optional description for the Salesforce OAuth Credentials Rotation.
256Whether secrets should be automatically rotated when the specified rotation interval has elapsed.
The hours and minutes rotation should occur at in UTC. Defaults to Midnight (00:00) UTC.
Response
Default Response