This call creates a new revision for an existing app. It adds a new CWL app description, and stores it as the named revision for the specified app.
Recall from the API Overview that the
app_idhas the form
For this particular call, you need to explicitly specify the app revision number.
POST /v2/apps/RFranklin/my-project/my-app/4/raw HTTP/1.1 Host: cgc-api.sbgenomics.com X-SBG-Auth-Token: 3210a98c1db9318fa9d9273156740f74
curl --data-binary '@my-app.json' -s -H "X-SBG-Auth-Token: 3210a98c1db9318fa9d9273156740f74" -H "content-type: application/json" -X POST "https://cgc-api.sbgenomics.com/v2/apps/RFranklin/my-project/my-app/4/raw"
|Your CGC authentication token.|
|The ID for the app you are you want to upload. It should reference the project that you want the app to be added to, a short name for the app (containing no non-alphanumeric characters or spaces), and a revision number.|
|string||Selector specifying a subset of fields to include in the response.|
The body of the request should be a CWL app description, saved as a JSON file. For a template of this description, try making the call to get raw app information about an app already in one of your projects.