Cloady Docs
API ReferenceEndpointsGit

Cherry-pick a Git commit

Apply the given commit to the current branch as a new commit. Refused while another merge, rebase, revert or cherry-pick is in progress. If the cherry-pick fails, it is aborted and the call fails. Works only on a development app: any other app answers 403 `read_only`. Runs git in the app's running container and returns its output.

POST
/api/workspaces/{workspaceSlug}/apps/{appSlug}/git/cherry-pick
AuthorizationBearer <token>

Personal API token (cldy_…)

In: header

Path Parameters

workspaceSlug*string
appSlug*string

Query Parameters

env?string

Value in

  • "production"
  • "preview"
  • "development"
region?string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/workspaces/string/apps/string/git/cherry-pick" \  -H "Content-Type: application/json" \  -d '{    "sha": "string"  }'
{  "ok": true,  "output": "string"}