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/58a334df-e188-42c6-96a6-93bb3c3a6b6c/copy_bits
Body
{"source_app_guid":"ebab95f8-c266-4fe8-9398-fe957027e26f"}
cURL
curl "https://api.[your-domain.com]/v2/apps/58a334df-e188-42c6-96a6-93bb3c3a6b6c/copy_bits" -d '{"source_app_guid":"ebab95f8-c266-4fe8-9398-fe957027e26f"}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1MSIsImVtYWlsIjoiZW1haWwtMTkxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxMzV9.9j3ciE_lf5QhEL6wOUFziGmnmckJmQYNiyMHUUC9U2U" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "c47b1462-e200-4da7-b949-86b06d389290",
"created_at": "2015-02-12T01:42:15Z",
"url": "/v2/jobs/c47b1462-e200-4da7-b949-86b06d389290"
},
"entity": {
"guid": "c47b1462-e200-4da7-b949-86b06d389290",
"status": "queued"
}
}