Header

Create a build cached file

This method allows you to create a new build cached file within a project.

URL

/project/<permalink>/build_cache_files
  • Replace <permalink> with the permalink of the project.

HTTP Method

POST

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 POST \
-d '{ \
  "build_cache_file":{ \
    "path":"vendor/**" \
  } \
}' 
https://atech.deployhq.com/projects/api-created/build_cache_files/

Example response

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

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