Edit an existing config file

This method allows you to edit an existing config file within a template.


  • Replace <permalink> with the permalink of the template.
  • Replace <identifier> with the identifier of the config file

HTTP Method


Supported Parameters

  • path - the full path and name of the config file (required)
  • body - the body of the config file (required)
  • build - if the config file should be used in build pipeline (required - true or false)
  • servers - a list of server identifiers to send the config file to during the deployment

Example cURL Request

curl -H "Content-type: application/json" \
-H "Accept: application/json" \
--user adam@atechmedia.com:my-api-key \
-X PUT \
-d '{ \
  "config_file":{ \
    "path":"database.yml", \ 
    "body":"development:\n  adapter: mysql2", \ 
    "build":true, \ 
    "servers":[] \
  } \
}' \

Example Response

  "body":"development:\n  adapter: mysql2",