POST
/
pipelines
/
{id}
/
create-preview-app
curl --request POST \
  --url https://api.sevalla.com/v2/pipelines/{id}/create-preview-app \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "branch": "main",
  "pull_request_number": 14
}'
{
  "app": {
    "id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
    "name": "test-app",
    "displayName": "Test App"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required
Example:

"54fb80af-576c-4fdc-ba4f-b596c83f15a1"

Body

application/json

Response

200
application/json

Preview app created successfully

The response is of type object.