Copy the app bits for an App
POST /v2/apps/:guid/copy_bits
This endpoint will copy the package bits in the blobstore from the source app to the destination app.
It will always return a job which you can query for success or failure.
This operation will require the app to restart in order for the changes to take effect.
Request
Route
POST /v2/apps/d518ce7e-6c9d-4a31-af90-02791025e46a/copy_bits
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the App
|
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
source_app_guid
|
The guid for the source app
|
|
|
|
{"source_app_guid":"4e8b9e31-4a27-4c12-a0fc-3449ac9ad65c"}
Headers
cURL
curl "https://api.[your-domain.com]/v2/apps/d518ce7e-6c9d-4a31-af90-02791025e46a/copy_bits" -d '{"source_app_guid":"4e8b9e31-4a27-4c12-a0fc-3449ac9ad65c"}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0NSIsImVtYWlsIjoiZW1haWwtMjQyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1NDV9.bX6phmd15Po3e4xvYon-l27RZ_8YeOCEAtxg_JQ0f-Y" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "07ce3ded-8cb1-43f9-a0aa-3a3e43d0427a",
"created_at": "2015-09-11T18:39:05Z",
"url": "/v2/jobs/07ce3ded-8cb1-43f9-a0aa-3a3e43d0427a"
},
"entity": {
"guid": "07ce3ded-8cb1-43f9-a0aa-3a3e43d0427a",
"status": "queued"
}
}
Headers