Header

Edit an excluded file

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

URL

/templates/<permalink>/excluded_file/<identifier>
  • Replace <permalink> with the permalink of the template.
  • Replace <identifier> with the identifier of the excluded file

HTTP Method

PUT

Supported Parameters

  • path - the full path and name of the config file (required)
  • 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":"node_modules/**", \ 
    "servers":[] \
  } \
}' \
https://atech.deployhq.com/templates/api-created/excluded_files/ade7a338-c326-4a0c-9010-262541894656

Example response

{
  "identifier":"ade7a338-c326-4a0c-9010-262541894656",
  "path":"node_modules/**",
  "servers":[]
}

Proudly powered by Katapult. Running on 100% renewable energy.