Header

Edit an existing build cache file via API (templates)

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

URL

/templates/<permalink>/build_cache_files/<identifier>
  • Replace <permalink> with the permalink of the template.
  • Replace <identifier> with the identifier of the build cache file

HTTP METHOD

PUT

Supported Parameters

  • path - the path of the build cache file

Example cURL request

curl -H "Content-type: application/json" \
-H "Accept: application/json" \
--user adam@atechmedia.com:my-api-key \
-X PUT \
-d '{ \
 "build_cache_file":{ \ 
   "path":"vendor" \
  } \
}' \
https://atech.deployhq.com/templates/api-created/build_cache_files/5c0c7e7c-3c02-4058-b3a8-f3e798754612

Example response

{
  "parent_id":8677,
  "parent_type":"template",
  "id":8668,
  "path":"vendor",
  "project_id":null,
  "identifier":"5c0c7e7c-3c02-4058-b3a8-f3e798754612",
  "created_at":"2019-08-01T14:31:34.000+01:00",
  "updated_at":"2019-08-01T14:36:54.000+01:00"
}
Tree

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