Update language versions via API (templates)
This method allows you to update language versions in a project template.
URL
/templates/<permalink>/language_versions/<language>
- Replace
<permalink>
with the permalink of your template. - Replace
<language>
with the name of the language you wish to update the version of.
HTTP Method
PUT
Supported Parameters
version
- the version you wish to change the chosen language to (supported languages can be found at the bottom of the page).
Example cURL Request
curl -H "Content-type: application/json" \
-H "Accept: application/json" \
--user adam@atechmedia.com:my-api-key \
-X PUT \
-d '{ \
"build_environment":{ \
"version":"7.2", \
} \
}' \
https://atech.deployhq.com/templates/api-created/build_languages/php
Supported languages and versions
Go
- 1.12 (default, currently 1.127)
- 1.11 (currently 1.11.2)
- 1.10 (currently 1.10.8)
Java
- 11 (default, currently 11.0.1)
- 10 (currently 10.0.1)
- 8 (currently 8u191)
NodeJS
- 10 (default, currently 10.16.0)
- 9 (currently 9.11.2)
- 8 (currently 8.16.0)
PHP
- 7.3 (default, currently 7.3.7)
- 7.2 (currently 7.2.20)
- 7.1 (currently 7.1.30)
- 7.0 (currently 7.0.33)
- 5.6 (currently 5.6.40)
Python
- 3.7 (default, currently 3.7.4)
- 3.5 (currently 3.5.7)
Ruby
- 2.5 (default, currently 2.5.5)
- 2.4 (currently 2.4.6)
- 2.3 (currently 2.3.8)