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/08eee0fe-4c71-42e5-aeee-61f47ec60e05/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":"7b0f4f18-fb68-4ecd-8fe6-248fca356727"}
Headers
cURL
curl "https://api.[your-domain.com]/v2/apps/08eee0fe-4c71-42e5-aeee-61f47ec60e05/copy_bits" -d '{"source_app_guid":"7b0f4f18-fb68-4ecd-8fe6-248fca356727"}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxMiIsImVtYWlsIjoiZW1haWwtMjA4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3MjB9.WCXrB5ed_M65U-I3-JsiSdb-616vJ9UTAEGW2LRBVqk" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "9c5aa0be-3f51-4965-8bbe-a702b2f64b75",
"created_at": "2016-05-12T00:45:20Z",
"url": "/v2/jobs/9c5aa0be-3f51-4965-8bbe-a702b2f64b75"
},
"entity": {
"guid": "9c5aa0be-3f51-4965-8bbe-a702b2f64b75",
"status": "queued"
}
}
Headers