Skip to main content
POST
/
projects
/
{projectId}
/
environments
/
{environmentId}
/
branch
Branch an environment
curl --request POST \
  --url {schemes}://api.upsun.com/projects/{projectId}/environments/{environmentId}/branch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "name": "<string>",
  "clone_parent": true,
  "type": "development",
  "resources": {
    "init": "default"
  }
}
'
{
  "status": "<string>",
  "code": 123
}

Authorizations

Authorization
string
header
required

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

Path Parameters

projectId
string
required
environmentId
string
required

Body

application/json
title
string
required
name
string
required
clone_parent
boolean

Clone data from the parent environment

type
enum<string>

The type of environment (staging or development)

Available options:
development,
staging
resources
Resources · object

Response

default - application/json
status
string
required

The status text of the response

code
integer
required

The status code of the response

Last modified on March 25, 2026