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/73712caa-deca-4df5-9e6b-25c6fa1568af/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":"fcd8b4de-e065-4d99-a5d9-48d16a3f09d1"}
Headers
cURL
curl "https://api.[your-domain.com]/v2/apps/73712caa-deca-4df5-9e6b-25c6fa1568af/copy_bits" -d '{"source_app_guid":"fcd8b4de-e065-4d99-a5d9-48d16a3f09d1"}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQyIiwiZW1haWwiOiJlbWFpbC00MkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI1OTQ4NjU5fQ.YQ1BJrUCenQK3AQ5XJemsyCsxsmaFd7tJ5Uce-g9lZc" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "0e51da68-6a51-40e6-a355-6b588217eec0",
"created_at": "2015-03-03T00:50:59Z",
"url": "/v2/jobs/0e51da68-6a51-40e6-a355-6b588217eec0"
},
"entity": {
"guid": "0e51da68-6a51-40e6-a355-6b588217eec0",
"status": "queued"
}
}
Headers