updateProfileContextList

put

/ccadmin/v1/profileContextLists/{id}

Update Profile Context List. Update a profileContextList item. Note that when a profileContextList is updated, the JSON should contain a representation of all profileContexts. If the JSON array from the profileContexts property contains a single element, for example, then all other profileContexts will be deleted. Note that the "propertyName" property is all that is needed to identify an existing profileContext, so providing other properties that are unchanged is optional.

Request

Supported Media Types
Path Parameters
  • The ID of the profileContextList to be updated.
Body ()
Root Schema : updateProfileContextList_request
Type: object
Show Source
Example:
{
    "profileContexts":[
        {
            "priceListGroupList":[
                {
                    "id":"defaultPriceGroup"
                }
            ],
            "propertyName":"active",
            "defaultPriceListGroup":{
                "id":"defaultPriceGroup"
            }
        }
    ],
    "id":"defaultProfileContextList"
}
Nested Schema : profileContexts
Type: array
The ordered list of profileContexts.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : defaultPriceListGroup
Type: object
The default priceListGroup for the profileContext. Properties other than "id" may be visible, but are not editable via this endpoint.
Show Source
  • The ID of the default priceListGroup. Note that updating this ID merely updates a reference to an existing priceListGroup, and does not modify the priceListGroup itself.
Nested Schema : priceListGroupList
Type: array
The list of available priceListGroups for the profileContext. Properties other than "id" may be visible, but cannot be updated by this endpoint.
Show Source
Nested Schema : items
Type: object
Show Source
  • The ID of the priceListGroup. Note that updating the ID property just updates a reference to an existing priceListGroup, and does not modify the priceListGroup itself.
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : updateProfileContextList_response
Type: object
Show Source
Nested Schema : profileContexts
Type: array
The ordered list of profileContexts. If present, this list much contain a representation of every profileContext to be retained. For existing profileContexts, only the "propertyName" property need be provided.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : defaultPriceListGroup
Type: object
The default priceListGroup for the profile contexts
Show Source
  • The ID of the default price list group. Note that updating this ID merely updates a reference to an existing priceListGroup, and does not modify the priceListGroup itself.
Nested Schema : priceListGroupList
Type: array
The array of available priceListGroups. This list should contain the defaultPriceListGroup, as well.
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
{
    "profileContexts":[
        {
            "priceListGroupList":[
                {
                    "id":"defaultPriceGroup"
                }
            ],
            "propertyName":"active",
            "defaultPriceListGroup":{
                "id":"defaultPriceGroup"
            }
        }
    ],
    "links":[
        {
            "rel":"self",
            "href":"http://localhost:9080/ccadmin/v1/profileContextLists/defaultProfileContextList"
        }
    ],
    "id":"defaultProfileContextList"
}

Default Response

The error response
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top