Skip to main content
POST
Create or update a draft pull request

Authorizations

Authorization
string
header
required

Long-lived opaque API key minted by an approved user at /api. The secret is shown once, stored only as a SHA-256 digest, and disabled immediately when either the key or its API access grant is revoked.

Path Parameters

sandboxId
string
required
Pattern: ^c_[a-z2-9]{12}$

Body

application/json
repo
string
Maximum string length: 201
Pattern: ^[A-Za-z0-9._-]+\/[A-Za-z0-9._-]+$

Response

Current draft pull request and check status

actionState
enum<string>
required
Available options:
idle,
draft,
ready,
merged,
closed
checks
object
required
comments
object[]
required
pullRequest
object | null
required
repository
string
required
detailsPending
boolean