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/978f4726-cb1f-4adc-ba55-016f149ee21e/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":"fe01bad9-a04b-41a0-ad2d-4834dce5e680"}
Headers
cURL
curl "https://api.[your-domain.com]/v2/apps/978f4726-cb1f-4adc-ba55-016f149ee21e/copy_bits" -d '{"source_app_guid":"fe01bad9-a04b-41a0-ad2d-4834dce5e680"}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQiLCJlbWFpbCI6ImVtYWlsLTRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NDc4MjkxOX0.Y7riEJ1W-v2nqPGM_E3xJl985xRGRxB5uxkx-XyZXks" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "ea07e840-f324-404f-9b89-e59e94180c44",
"created_at": "2015-10-07T00:35:19Z",
"url": "/v2/jobs/ea07e840-f324-404f-9b89-e59e94180c44"
},
"entity": {
"guid": "ea07e840-f324-404f-9b89-e59e94180c44",
"status": "queued"
}
}
Headers