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/aba4381d-d2ae-4ac8-81ea-c6ed38120ef8/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":"75b4c57a-272c-4067-82d0-3f646f17e70e"}
Headers
cURL
curl "https://api.[your-domain.com]/v2/apps/aba4381d-d2ae-4ac8-81ea-c6ed38120ef8/copy_bits" -d '{"source_app_guid":"75b4c57a-272c-4067-82d0-3f646f17e70e"}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwNSIsImVtYWlsIjoiZW1haWwtMTM3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjc0ODA4NTN9.SlOBABAizqDVFIC8ACEMR6tUqwbooVw52qR5ap2z8Wk" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "cf005f42-f0d2-4557-8ed0-e812fa5373e6",
"created_at": "2015-03-20T18:27:33Z",
"url": "/v2/jobs/cf005f42-f0d2-4557-8ed0-e812fa5373e6"
},
"entity": {
"guid": "cf005f42-f0d2-4557-8ed0-e812fa5373e6",
"status": "queued"
}
}
Headers