Enable or disable a Buildpack
PUT /v2/buildpacks/:guid
Fields
Name |
Description |
Default |
Valid Values |
Example Values |
name
|
The name of the buildpack. To be used by app buildpack field. (only alphanumeric characters)
|
|
|
|
position
|
The order in which the buildpacks are checked during buildpack auto-detection.
|
|
|
|
enabled
|
Whether or not the buildpack will be used for staging
|
true
|
|
|
locked
|
Whether or not the buildpack is locked to prevent updates
|
false
|
|
|
filename
|
The name of the uploaded buildpack file
|
|
|
|
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Buildpack
|
|
|
Request
Headers
Route
PUT /v2/buildpacks/eedd6a28-b61a-4147-97bc-a4ca75d72151
Body
{
"enabled": false
}
cURL
curl "https://api.[your-domain.com]/v2/buildpacks/eedd6a28-b61a-4147-97bc-a4ca75d72151" -d '{
"enabled": false
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyNyIsImVtYWlsIjoiZW1haWwtOThAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNDMxMDEyNn0.W-Bnig1ZdpqH5fP8erzoLlRfxKRUzU34qdS07hj_nFQ" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "eedd6a28-b61a-4147-97bc-a4ca75d72151",
"url": "/v2/buildpacks/eedd6a28-b61a-4147-97bc-a4ca75d72151",
"created_at": "2015-02-12T01:42:06Z",
"updated_at": "2015-02-12T01:42:06Z"
},
"entity": {
"name": "name_1",
"position": 1,
"enabled": false,
"locked": false,
"filename": "name-423"
}
}
Request
Headers
Route
PUT /v2/buildpacks/eedd6a28-b61a-4147-97bc-a4ca75d72151
Body
{
"enabled": true
}
cURL
curl "https://api.[your-domain.com]/v2/buildpacks/eedd6a28-b61a-4147-97bc-a4ca75d72151" -d '{
"enabled": true
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyNyIsImVtYWlsIjoiZW1haWwtOThAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNDMxMDEyNn0.W-Bnig1ZdpqH5fP8erzoLlRfxKRUzU34qdS07hj_nFQ" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "eedd6a28-b61a-4147-97bc-a4ca75d72151",
"url": "/v2/buildpacks/eedd6a28-b61a-4147-97bc-a4ca75d72151",
"created_at": "2015-02-12T01:42:06Z",
"updated_at": "2015-02-12T01:42:06Z"
},
"entity": {
"name": "name_1",
"position": 1,
"enabled": true,
"locked": false,
"filename": "name-423"
}
}