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/fcbd2760-fbfd-41b0-8fc5-8867d318b53f/copy_bits
Body
{"source_app_guid":"35af40c9-ac2c-4163-8266-8703d7bcbcd6"}
cURL
curl "https://api.[your-domain.com]/v2/apps/fcbd2760-fbfd-41b0-8fc5-8867d318b53f/copy_bits" -d '{"source_app_guid":"35af40c9-ac2c-4163-8266-8703d7bcbcd6"}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyNiIsImVtYWlsIjoiZW1haWwtODhAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNDQ3MTY5MH0.4XSAJS9ojCxSe4M83D2RcvRN5dgH7lNXA7HTzLgqOTE" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "0f8d615f-85da-4d2f-ae36-c3c0a897891b",
"created_at": "2015-02-13T22:34:50Z",
"url": "/v2/jobs/0f8d615f-85da-4d2f-ae36-c3c0a897891b"
},
"entity": {
"guid": "0f8d615f-85da-4d2f-ae36-c3c0a897891b",
"status": "queued"
}
}