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/416c821b-12bd-4da5-8511-43de9e2fd76b/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":"394cfdd5-89ca-45ac-bc73-a689c50e42e2"}
Headers
cURL
curl "https://api.[your-domain.com]/v2/apps/416c821b-12bd-4da5-8511-43de9e2fd76b/copy_bits" -d '{"source_app_guid":"394cfdd5-89ca-45ac-bc73-a689c50e42e2"}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNiIsImVtYWlsIjoiZW1haWwtMTU3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxNDJ9.5gmnXz09ladybkqY1V1gLx2_U1VxldSBQxWL9A3WxB8" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "4a69416c-0869-4626-b57a-4b79ca104bc5",
"created_at": "2015-04-15T00:55:42Z",
"url": "/v2/jobs/4a69416c-0869-4626-b57a-4b79ca104bc5"
},
"entity": {
"guid": "4a69416c-0869-4626-b57a-4b79ca104bc5",
"status": "queued"
}
}
Headers