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/972f2170-64f4-4765-91cd-20ab2e966c71/copy_bits
Body
{"source_app_guid":"7aaf79af-8fc5-4746-99c0-42f433a45b3c"}
cURL
curl "https://api.[your-domain.com]/v2/apps/972f2170-64f4-4765-91cd-20ab2e966c71/copy_bits" -d '{"source_app_guid":"7aaf79af-8fc5-4746-99c0-42f433a45b3c"}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4NyIsImVtYWlsIjoiZW1haWwtMTM5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5NzJ9.Uq2REl5bhK2PU1dkndnAyZa5w-33eIiTzrKYztRcT9k" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "e59c0832-4d4f-4628-a262-910570442d4e",
"created_at": "2014-12-24T01:39:32+00:00",
"url": "/v2/jobs/e59c0832-4d4f-4628-a262-910570442d4e"
},
"entity": {
"guid": "e59c0832-4d4f-4628-a262-910570442d4e",
"status": "queued"
}
}