A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
Service Token Accesses
read_deploy_request, create_deploy_requests
OAuth Scopes
| Resource | Scopes |
|---|---|
| Organization | write_deploy_requests |
| Database | write_deploy_requests |
The name of the deploy request's organization
The name of the deploy request's database
The name of the branch the deploy request is created from
The name of the branch the deploy request will be merged into
Notes about the deploy request
Whether or not to enable auto_cutover for the deploy request. When enabled, will auto cutover to the new schema as soon as it is ready.
Whether or not to enable auto_delete_branch for the deploy request. When enabled, will delete the branch once the DR successfully completes.
Returns the created deploy request
The ID of the deploy request
The number of the deploy request
The name of the branch the deploy request was created from
The ID of the branch the deploy request was created from
Whether or not the deploy request branch was deleted
When the deploy request branch was deleted
The name of the branch the deploy request will be merged into
Whether or not the branch the deploy request will be merged into is sharded
The number of shards the branch the deploy request will be merged into has
Whether or not the deploy request is approved
Whether the deploy request is open or closed
open, closed The deployment state of the deploy request
pending, ready, no_changes, queued, submitting, in_progress, pending_cutover, in_progress_vschema, in_progress_cancel, in_progress_cutover, complete, complete_cancel, complete_error, complete_pending_revert, in_progress_revert, in_progress_revert_vschema, complete_revert, complete_revert_error, cancelled, error The number of comments on the deploy request
The PlanetScale app address for the deploy request
Notes on the deploy request
The HTML body of the deploy request
When the deploy request was created
When the deploy request was last updated
When the deploy request was closed
When the deploy request was deployed