Deployment Steps
sfp server API reference for Deployment Steps: 15 endpoints.
/sfp/api/deployment-steps/historyAuthorization
access-token In: header
Query Parameters
Response Body
curl -X GET "https://example.com/sfp/api/deployment-steps/history?repositoryIdentifier=acme%2Fsalesforce-core"/sfp/api/deployment-stepsAuthorization
access-token In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://example.com/sfp/api/deployment-steps" \ -H "Content-Type: application/json" \ -d '{ "repositoryIdentifier": "acme/salesforce-core", "type": "pre", "title": "Activate the Order Capture feature toggle" }'/sfp/api/deployment-stepsAuthorization
access-token In: header
Query Parameters
Only steps authored on this pull request
"open"Value in
- "open"
- "cancelled"
- "all"
Response Body
curl -X GET "https://example.com/sfp/api/deployment-steps?repositoryIdentifier=acme%2Fsalesforce-core"/sfp/api/deployment-steps/{stepId}/detailsAuthorization
access-token In: header
Path Parameters
Query Parameters
Response Body
curl -X GET "https://example.com/sfp/api/deployment-steps/string/details?repositoryIdentifier=acme%2Fsalesforce-core"/sfp/api/deployment-steps/{stepId}Authorization
access-token In: header
Path Parameters
Query Parameters
Response Body
curl -X GET "https://example.com/sfp/api/deployment-steps/string?repositoryIdentifier=acme%2Fsalesforce-core"/sfp/api/deployment-steps/{stepId}/completeCompletion is attested per environment: whichever domain surfaced the step, completing it clears the step for every deploy to that environment.
Authorization
access-token In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://example.com/sfp/api/deployment-steps/string/complete" \ -H "Content-Type: application/json" \ -d '{ "repositoryIdentifier": "acme/salesforce-core", "environment": "string" }'/sfp/api/deployment-steps/{stepId}/reopenRe-gates the step for that environment. Use after a rollback undid the action, or when an attestation was recorded in error.
Authorization
access-token In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://example.com/sfp/api/deployment-steps/string/reopen" \ -H "Content-Type: application/json" \ -d '{ "repositoryIdentifier": "acme/salesforce-core", "environment": "string" }'/sfp/api/deployment-steps/{stepId}/linkThe override honoured by the same read path as the computed verdict — the escape hatch for cherry-picked delivery and mis-anchored steps.
Authorization
access-token In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://example.com/sfp/api/deployment-steps/string/link" \ -H "Content-Type: application/json" \ -d '{ "repositoryIdentifier": "acme/salesforce-core", "releaseCandidate": "sales:Sprint_26.20", "mode": "include" }'/sfp/api/deployment-steps/anchors/migrationsAuthorization
access-token In: header
Query Parameters
Response Body
curl -X GET "https://example.com/sfp/api/deployment-steps/anchors/migrations?repositoryIdentifier=acme%2Fsalesforce-core"/sfp/api/deployment-steps/anchors/migrations/{headCommit}/cancelAuthorization
access-token In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://example.com/sfp/api/deployment-steps/anchors/migrations/string/cancel" \ -H "Content-Type: application/json" \ -d '{ "repositoryIdentifier": "acme/salesforce-core" }'/sfp/api/deployment-steps/anchors/prepareAuthorization
access-token In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://example.com/sfp/api/deployment-steps/anchors/prepare" \ -H "Content-Type: application/json" \ -d '{ "repositoryIdentifier": "acme/salesforce-core", "releaseBranch": "release/1.4", "commitMapping": [ { "original": "string", "rewritten": "string" } ] }'/sfp/api/deployment-steps/anchors/migrateReported by sfp releasecandidate unbundle after it force-pushes a reconstructed release branch. Re-anchors every step whose commit was re-applied under a new SHA (an anchor on a merge commit follows the re-applied commits of its lineage), and flags the steps the branch used to carry but no longer does.
Authorization
access-token In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://example.com/sfp/api/deployment-steps/anchors/migrate" \ -H "Content-Type: application/json" \ -d '{ "repositoryIdentifier": "acme/salesforce-core", "releaseBranch": "release/1.4", "commitMapping": [ { "original": "string", "rewritten": "string" } ] }'/sfp/api/deployment-steps/{stepId}/cancelA cancelled step never pends again, whatever the ancestry says. The record is kept for audit.
Authorization
access-token In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://example.com/sfp/api/deployment-steps/string/cancel" \ -H "Content-Type: application/json" \ -d '{ "repositoryIdentifier": "acme/salesforce-core" }'/sfp/api/deployment-steps/gate/checkResolves whether the environment gates on manual steps, computes what is still outstanding for the candidate, records the audit snapshot, and returns the steps the caller still has to surface in a checklist. Fails with 5xx when the pending set cannot be established, so the caller retries rather than proceeding.
Authorization
access-token In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://example.com/sfp/api/deployment-steps/gate/check" \ -H "Content-Type: application/json" \ -d '{ "repositoryIdentifier": "acme/salesforce-core", "environment": "prod", "releaseCandidate": "sales:Sprint_26.20", "runId": "string" }'/sfp/api/environments/by-name/{name}/deployment-stepsPer domain: the pre steps the next deploy is waiting on, the post steps that became due from the environment's current release, and the attestations recorded here. A domain that cannot be evaluated is reported with its error rather than failing the whole view.
Authorization
access-token In: header
Path Parameters
Query Parameters
Restrict the view to one domain
Response Body
curl -X GET "https://example.com/sfp/api/environments/by-name/string/deployment-steps?repositoryIdentifier=acme%2Fsalesforce-core"