Files

4.4 KiB
Raw Permalink Blame History

Skip to content

Return to top

Create (Public)

=================================================================================================================

POST

/applications/public

Create new application based on a public git repository.

Authorizations


bearerAuth

Go to Keys & Tokens / API tokens and create a new token. Use the token as the bearer token.

Type

HTTP (bearer)

Request Body


application/json

SchemaJSON

JSON

{

"project_uuid": "string",

"server_uuid": "string",

"environment_name": "string",

"environment_uuid": "string",

"git_repository": "string",

"git_branch": "string",

"build_pack": "string",

"ports_exposes": "string",

"destination_uuid": "string",

"name": "string",

"description": "string",

"domains": "string",

"git_commit_sha": "string",

"docker_registry_image_name": "string",

"docker_registry_image_tag": "string",

"is_static": true,

"is_spa": true,

"is_auto_deploy_enabled": true,

"is_force_https_enabled": true,

"static_image": "string",

"install_command": "string",

"build_command": "string",

"start_command": "string",

"ports_mappings": "string",

"base_directory": "string",

"publish_directory": "string",

"health_check_enabled": true,

"health_check_path": "string",

"health_check_port": "string",

"health_check_host": "string",

"health_check_method": "string",

"health_check_return_code": 0,

"health_check_scheme": "string",

"health_check_response_text": "string",

"health_check_interval": 0,

"health_check_timeout": 0,

"health_check_retries": 0,

"health_check_start_period": 0,

"limits_memory": "string",

"limits_memory_swap": "string",

"limits_memory_swappiness": 0,

"limits_memory_reservation": "string",

"limits_cpus": "string",

"limits_cpuset": "string",

"limits_cpu_shares": 0,

"custom_labels": "string",

"custom_docker_run_options": "string",

"post_deployment_command": "string",

"post_deployment_command_container": "string",

"pre_deployment_command": "string",

"pre_deployment_command_container": "string",

"manual_webhook_secret_github": "string",

"manual_webhook_secret_gitlab": "string",

"manual_webhook_secret_bitbucket": "string",

"manual_webhook_secret_gitea": "string",

"redirect": "string",

"instant_deploy": true,

"dockerfile": "string",

"dockerfile_location": "string",

"docker_compose_location": "string",

"docker_compose_custom_start_command": "string",

"docker_compose_custom_build_command": "string",

"docker_compose_domains": [

{

"name": "string",

"domain": "string"

}

],

"watch_paths": "string",

"use_build_server": true,

"is_http_basic_auth_enabled": true,

"http_basic_auth_username": "string",

"http_basic_auth_password": "string",

"connect_to_docker_network": true,

"force_domain_override": true,

"autogenerate_domain": true,

"is_container_label_escape_enabled": true,

"is_preserve_repository_enabled": false

}

Responses


201400401409

Application created successfully.

Content-Type

application/json

SchemaJSON

JSON

{

"uuid": "string"

}

POST

/applications/public

Playground


Authorization

bearerAuth

Body

Try it out

Samples


Powered by VitePress OpenAPI