Associate one Or more stemcells with products

Associate one Or more stemcells with products
Associate one or more stemcells with products

Associating one or more stemcells with products. Note that this endpoint cannot be used to unassign stemcells. Stemcell assignments can only be replaced or added.

Request
URI
PATCH
https://{opsmanager-installation}/api/v0/stemcell_associations
COPY
Request Body
{
    "products": [
        {
            "guid": "string",
            "staged_stemcells": [
                {
                    "name": "string",
                    "os": "string",
                    "version": "string"
                }
            ]
        }
    ]
}
array of products
products
Optional

products

Responses
200

OK

Returns EmptyResponse of type(s) application/json
Operation doesn't return any data structure

400

Setup is not completed

Returns RequireSetupCompleted of type(s) application/json
{
    "errors": {
        "errors": [
            "string"
        ]
    }
}

401

Unauthorized

Returns UnauthorizedResponse of type(s) application/json
{
    "errors": {
        "errors": [
            "string"
        ]
    }
}

403

Forbidden

Returns ForbiddenResponse of type(s) application/json
{
    "errors": {
        "errors": [
            "string"
        ]
    }
}

422

Unprocessable Content

Returns CommonErrors of type(s) application/json
{
    "errors": [
        "string"
    ]
}
array of string
errors
Required

errors


Code Samples
COPY
                    curl -X PATCH -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]'