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/7c2e126c-4c60-4d5c-b67e-a8947457a404/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":"2d9e68c6-5a0f-49f6-bcc5-32fbeebdf3ee"}
Headers
cURL
curl "https://api.[your-domain.com]/v2/apps/7c2e126c-4c60-4d5c-b67e-a8947457a404/copy_bits" -d '{"source_app_guid":"2d9e68c6-5a0f-49f6-bcc5-32fbeebdf3ee"}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTUzIiwiZW1haWwiOiJlbWFpbC01MkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM1MTAyODQ3fQ.WfOTz7xerp1iv6RFeiuYMatfOrt29r8uJ6yUMnDdC_g" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "4ecb7ce7-a9c7-47fb-a8eb-b2fd17fcff38",
"created_at": "2015-06-16T23:40:47Z",
"url": "/v2/jobs/4ecb7ce7-a9c7-47fb-a8eb-b2fd17fcff38"
},
"entity": {
"guid": "4ecb7ce7-a9c7-47fb-a8eb-b2fd17fcff38",
"status": "queued"
}
}
Headers