Add new Version of the Workload Profile

POST {{baseUrl}}/orgs/:orgId/workload-profiles/:profileId/versions

Creates a Workload Profile Version from the uploaded Helm chart. The version is retrieved from the chart's metadata (Charts.yaml file).

The request has content type multipart/form-data and the request body includes two parts:

  1. file with application/x-gzip content type which is an archive containing a Helm chart.

  2. metadata with application/json content type which defines the version's metadata.

Request body example:

    Content-Type: multipart/form-data; boundary=----boundary
    ----boundary
    Content-Disposition: form-data; name="metadata"
    Content-Type: application/json; charset=UTF-8
    {
      "features": {
         "humanitec/service": {},
         "humanitec/volumes": {},
         "custom": {"schema": {}}
      },
      "notes": "Notes related to this version of the profile"
    }
    ----boundary
    Content-Disposition: form-data; name="file"; filename="my-workload-1.0.1.tgz"
    Content-Type: application/x-gzip
    [TGZ_DATA]
    ----boundary

NOTE:

A Workload Profile must be created before a version can be added to it.

Request Body

{"notes"=>"com"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{"created_at":"2020-06-22T09:37:23.523Z","created_by":"do enim incididunt ut","features":{},"notes":"est nostrud","org_id":"aute in culpa","profile_id":"aliqua nulla","version":"officia ut et exercitation"}