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/cbe9611e-1d11-42a3-bad6-df30737a4294/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":"bbf7349d-5c04-4860-8f09-21154c785a0b"}
Headers
cURL
curl "https://api.[your-domain.com]/v2/apps/cbe9611e-1d11-42a3-bad6-df30737a4294/copy_bits" -d '{"source_app_guid":"bbf7349d-5c04-4860-8f09-21154c785a0b"}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwIiwiZW1haWwiOiJlbWFpbC00MEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMyNzc0OTgwfQ.UIM9us3ynbg2Zrx49BIlyb7UyKajeKGp3v7UP1T8cKw" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "5748cc1a-fb85-48de-95d6-81b085ffd966",
"created_at": "2015-05-21T01:03:00Z",
"url": "/v2/jobs/5748cc1a-fb85-48de-95d6-81b085ffd966"
},
"entity": {
"guid": "5748cc1a-fb85-48de-95d6-81b085ffd966",
"status": "queued"
}
}
Headers