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/151c2a62-2c6e-4fb3-b4dc-611009592a11/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":"e4d696fa-8a8f-44da-9e5e-105db9ce5c6c"}
Headers
cURL
curl "https://api.[your-domain.com]/v2/apps/151c2a62-2c6e-4fb3-b4dc-611009592a11/copy_bits" -d '{"source_app_guid":"e4d696fa-8a8f-44da-9e5e-105db9ce5c6c"}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ1MCIsImVtYWlsIjoiZW1haWwtMzIxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTQ0NTE2Mzd9.x45sqwdkLYE4oNpzFIhEQ-cZW6CHvEIwYwJNz8y2Kq8" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "70dfb5f2-f90c-4bc4-b787-d25f797bdee9",
"created_at": "2016-01-26T22:20:37Z",
"url": "/v2/jobs/70dfb5f2-f90c-4bc4-b787-d25f797bdee9"
},
"entity": {
"guid": "70dfb5f2-f90c-4bc4-b787-d25f797bdee9",
"status": "queued"
}
}
Headers