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/c384fdca-17f1-4935-9978-c51977fc2d79/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":"daa71e85-470d-4df9-bc33-556270066122"}
Headers
cURL
curl "https://api.[your-domain.com]/v2/apps/c384fdca-17f1-4935-9978-c51977fc2d79/copy_bits" -d '{"source_app_guid":"daa71e85-470d-4df9-bc33-556270066122"}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQiLCJlbWFpbCI6ImVtYWlsLTRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2NjAwODg4MX0.OdPvTMwWPrNvLSqGmCHUTGXhAOOy5RkUfgoaeXuz_m8" \
-H "Host: example.org" \
-H "Content-Type: application/json" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "14792cbc-1f2e-49d8-8876-410393e666e7",
"created_at": "2016-06-08T16:41:21Z",
"url": "/v2/jobs/14792cbc-1f2e-49d8-8876-410393e666e7"
},
"entity": {
"guid": "14792cbc-1f2e-49d8-8876-410393e666e7",
"status": "queued"
}
}
Headers