/applications/{uuid}/previewsCreate a preview deployment
Creates or redeploys a preview deployment for a pull request on an application. Provide pull_request_id and the relevant source details: Git-based applications need git_type unless they use a GitHub or GitLab App source, and Bitbucket also needs commit. For a new Docker Image preview, provide docker_tag; set instant_deploy to false to create the preview without queuing deployment, such as when you need to configure domains first.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Preview deployment details for a pull request. Include the source-specific fields required for the application type.
A 400 is returned for an invalid token, and a 401 when the request is unauthenticated. A 404 indicates a missing resource, a 422 indicates validation failed, and a 429 means the deployment queue is full; pull_request_id is required and must be between 1 and 2147483647. The uuid path parameter must identify an existing application.