Lock or unlock a Buildpack
PUT /v2/buildpacks/:guid
Request
Route
PUT /v2/buildpacks/95c44db6-e13f-443b-aa69-71621f63eed0
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Buildpack
|
|
|
Body
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
|
|
|
|
{
"locked": true
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/buildpacks/95c44db6-e13f-443b-aa69-71621f63eed0" -d '{
"locked": true
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ0MCIsImVtYWlsIjoiZW1haWwtMzA4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDZ9.YFsBn17gWJh7rK-MOHgZvAM8NXgbg4z0SRlc2017Amo" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "95c44db6-e13f-443b-aa69-71621f63eed0",
"url": "/v2/buildpacks/95c44db6-e13f-443b-aa69-71621f63eed0",
"created_at": "2015-10-07T00:35:46Z",
"updated_at": "2015-10-07T00:35:46Z"
},
"entity": {
"name": "name_1",
"position": 1,
"enabled": true,
"locked": true,
"filename": "name-2388"
}
}
Headers
Request
Route
PUT /v2/buildpacks/95c44db6-e13f-443b-aa69-71621f63eed0
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Buildpack
|
|
|
Body
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
|
|
|
|
{
"locked": false
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/buildpacks/95c44db6-e13f-443b-aa69-71621f63eed0" -d '{
"locked": false
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ0MCIsImVtYWlsIjoiZW1haWwtMzA4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDZ9.YFsBn17gWJh7rK-MOHgZvAM8NXgbg4z0SRlc2017Amo" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "95c44db6-e13f-443b-aa69-71621f63eed0",
"url": "/v2/buildpacks/95c44db6-e13f-443b-aa69-71621f63eed0",
"created_at": "2015-10-07T00:35:46Z",
"updated_at": "2015-10-07T00:35:46Z"
},
"entity": {
"name": "name_1",
"position": 1,
"enabled": true,
"locked": false,
"filename": "name-2388"
}
}
Headers