Skip to Content
Applications

Update an existing application

PUT
/applications/{application_id}

Path Parameters

application_id*integer

The ID of the application.

Range1 <= value

Header Parameters

Accept*string

application/json

Authorization*string

Bearer {{access_token}}

Content-Type*string

application/json

Request Body

A JSON object containing the resource data

application/json
  1. body
id*integer

The unique ID of the given Application.

name*string

The application's unique name. Must not be greater than 60 characters.

build_command?string

The optional command that should be executed once during deployment to build the source code and get the application in a ready state.

engine_version*string

The language runtime engine version to be used to execute this application on the deployed servers. Must be at least 1 character. Must not be greater than 10 characters.

framework*string

The base framework on top of which the application has been implemented - it might have impact on the steps to be performed during application deployment. Must not be greater than 30 characters.

programming_language*string

The programming language runtime environment to be used to serve the application. E.g.: if a front-end web app is developed using Node.js and should be served statically (an SPA application, for instance), then this field value should be nodejs and the framework should be html. Must not be greater than 30 characters.

repository?string

The full name of a repository (repository_owner/repository_name) containing the application source code. Must not be greater than 100 characters.

credential_id?integer

Numeric ID of the credential to source provider where the repository is hosted. This field is required when repository is present.

root_directory?string

The relative directory where package manager's manifest files (package.json, composer.json, yarn.lock, etc) are located. It needs to be set for applications where the actual source code is not located in the top level directory of the repository. Must start with one of / Must not be greater than 255 characters.

default_branch*string

The version control branch that, by default, will be used when a deployment is triggered and no other branch name is informed. Must not be greater than 200 characters.

deployments_keep?integer

The number of deployment history, logs and artifacts to keep stored in both devopness servers and user's servers. OR The number of deployment artifacts to be retained in the user's servers, making it easier and faster to rollback to previous versions. Must be at least 1. Must not be greater than 10.

install_dependencies_command?string

Indicates command that Devopness must execute to install application dependencies.

Response Body

No Content

Example Request
curl -X PUT 'https://api.devopness.com/applications/123' \  -H 'Accept: application/json' \  -H 'Authorization: Bearer <your_api_token>' \  -H 'Content-Type: application/json' \  -H 'Content-Type: application/json' \  -d '{  "id": 1,  "name": "my-awesome-app",  "engine_version": "3.12",  "framework": "fastapi",  "programming_language": "python",  "default_branch": "main"}'
Example Response
Empty