Deploy Remote Branch or Ref to Production

Version 4.0.25.2 (latest)

Deploy a Remote Branch or Ref to Production

Git must have been configured and deploy permission required.

Deploy is a one/two step process

  1. If this is the first deploy of this project, create the production project with git repository.
  2. Pull the branch or ref into the production project.

Can only specify either a branch or a ref.

Request

POST /projects/{project_id}/deploy_ref_to_production
Datatype
Description
Request
HTTP Request
path
HTTP Path
project_id
string
Id of project
query
HTTP Query
branch
string
Branch to deploy to production
ref
string
Ref to deploy to production

Response

Datatype
Description
(string)
string
Datatype
Description
(object)
message
string
Error details
documentation_url
string
Documentation link
Datatype
Description
(object)
message
string
Error details
documentation_url
string
Documentation link
Datatype
Description
(object)
message
string
Error details
field
string
Field with error
code
string
Error code
message
string
Error info message
documentation_url
string
Documentation link
documentation_url
string
Documentation link
Datatype
Description
(object)
message
string
Error details
documentation_url
string
Documentation link