Update an existing application
application_id*integerThe ID of the application.
1 <= valueAccept*stringapplication/json
Content-Type*stringapplication/json
A JSON object containing the resource data
application/json- body
id*integerThe unique ID of the given Application.
name*stringThe application's unique name. Must not be greater than 60 characters.
build_command?stringThe optional command that should be executed once during deployment to build the source code and get the application in a ready state.
engine_version*stringThe 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*stringThe 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*stringThe 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?stringThe full name of a repository (repository_owner/repository_name) containing the application source code. Must not be greater than 100 characters.
credential_id?integerNumeric ID of the credential to source provider where the repository is hosted. This field is required when repository is present.
root_directory?stringThe 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*stringThe 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?integerThe 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?stringIndicates command that Devopness must execute to install application dependencies.
No Content
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"}'