Deploy

Duplicate project

Changed on

Duplicate project.

Auth: Required (bearer token). Scope: Organization-scoped in authenticated context. Side effects: May mutate server state.

post/api/v1/deploy/application/project/duplicate

Request

  • Base URL
    http://:8080
  • URL
    http://:8080/api/v1/deploy/application/project/duplicate
  • Auth
    none declared

Headers

Acceptstring

Request body */*

branchstring nullable

Git branch override for the duplicate

domainsstring[] nullable

Custom domains for the duplicated project

environmentstring required

Environment for the duplicated project

primary_server_idstring uuid

Primary server ID for routing

routing_strategystring nullable

Routing strategy for multi-server deployments

server_idsstring[] nullable

Server IDs to deploy the duplicate to

source_project_idstring uuid required

ID of the project to duplicate

Example request

{
  "branch": "develop",
  "environment": "staging",
  "primary_server_id": "550e8400-e29b-41d4-a716-446655440000",
  "routing_strategy": "round-robin",
  "source_project_id": "550e8400-e29b-41d4-a716-446655440000"
}

Response

Created

messagestring
statusstring

Changes

    • breaking

      the request property became required

    • breaking

      the request property became required

    • breaking

      removed the success response with the status

    • info

      api tag Deploy added

    • info

      api tag api/v1/deploy removed

    • info

      api tag application removed

    • info

      api tag project removed

    • info

      added the success response with the status

    • info

      added the optional property /////// to the response with the status (media type: application/json)

    • info

      added the optional property /////// to the response with the status (media type: application/xml)

    • info

      added the optional property //// to the response with the status (media type: application/json)

    • info

      added the optional property //// to the response with the status (media type: application/xml)

    • info

      added the optional property ////// to the response with the status (media type: application/json)

    • info

      added the optional property ////// to the response with the status (media type: application/xml)

    • info

      added the optional property / to the response with the status (media type: application/json)

    • info

      added the optional property / to the response with the status (media type: application/xml)