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.
Fields
Name |
Description |
Default |
Valid Values |
Example Values |
source_app_guid
|
The guid for the source app
|
|
|
|
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the App
|
|
|
Request
Headers
Route
POST /v2/apps/5ef32131-1d5d-441f-b7c4-9f5b408bd387/copy_bits
Body
{"source_app_guid":"5d48f4ea-2dff-4594-9e16-52bc01ae3127"}
cURL
curl "https://api.[your-domain.com]/v2/apps/5ef32131-1d5d-441f-b7c4-9f5b408bd387/copy_bits" -d '{"source_app_guid":"5d48f4ea-2dff-4594-9e16-52bc01ae3127"}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2IiwiZW1haWwiOiJlbWFpbC0xNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDIyOTkwODYzfQ.AHYwC9cLGACfXrXp03Do3uNLffwZmWOW6Yo8c3fDvdA" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "bd63d226-d6e1-4da5-91e4-f8cff8dd1e12",
"created_at": "2015-01-27T19:14:23Z",
"url": "/v2/jobs/bd63d226-d6e1-4da5-91e4-f8cff8dd1e12"
},
"entity": {
"guid": "bd63d226-d6e1-4da5-91e4-f8cff8dd1e12",
"status": "queued"
}
}