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/79f2ccad-de3f-4a1b-972b-6489e8f0562d/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":"83a0f50f-893a-4e00-9f03-67196928c3a2"}
Headers
cURL
curl "https://api.[your-domain.com]/v2/apps/79f2ccad-de3f-4a1b-972b-6489e8f0562d/copy_bits" -d '{"source_app_guid":"83a0f50f-893a-4e00-9f03-67196928c3a2"}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxMCIsImVtYWlsIjoiZW1haWwtMzAwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYyMTZ9.SQbzy9ijWYoa30N4dAcZSrRQlkps0Prep4H6EQiBq1s" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "86042957-d1ef-47f1-97ed-49606608daf8",
"created_at": "2015-08-06T00:36:56Z",
"url": "/v2/jobs/86042957-d1ef-47f1-97ed-49606608daf8"
},
"entity": {
"guid": "86042957-d1ef-47f1-97ed-49606608daf8",
"status": "queued"
}
}
Headers