Header

Create an excluded file

This method allows you to add a new excluded file to an existing template.

URL

/templates/<permalink>/excluded_files
  • Replace <permalink> with the permalink of your template.

HTTP Method

POST

Supported Parameters

  • path - the full path for the excluded file (required)
  • servers - a list of server identifiers to apply the excluded file rule to

Example cURL Request

curl -H "Content-type: application/json" \
-H "Accept: application/json" \
--user adam@atechmedia.com:my-api-key \
-X POST \
-d '{ \
  "config_file":{ \
    "path":"node_modules/**", \ 
    "servers":[] \
  } \
}' \
https://atech.deployhq.com/templates/api-created/excluded_files

Example response

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