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
  • application/json
Path Parameters
id
Type: string
Required: true
The ID of the profileContextList to be updated.
Body Parameter
Root Schema : updateProfileContextList_request
Nested Schema : profileContexts
Type: array
The ordered list of profileContexts.
Nested Schema : items
Type: object
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.
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.
Nested Schema : items
Type: object

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : updateProfileContextList_response
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.
Nested Schema : items
Type: object
Nested Schema : defaultPriceListGroup
Type: object
The default priceListGroup for the profile contexts
Nested Schema : priceListGroupList
Type: array
The array of available priceListGroups. This list should contain the defaultPriceListGroup, as well.
Nested Schema : items
Type: object
Example 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
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Nested Schema : items
Type: object

Examples

Sample Request:

{
  "profileContexts": [{
    "priceListGroupList": [{"id": "defaultPriceGroup"}],
    "propertyName": "active",
    "defaultPriceListGroup": {"id": "defaultPriceGroup"}
  }],
  "id": "defaultProfileContextList"
}

Sample Response Payload returned by endpoint:

{
  "profileContexts": [{
    "priceListGroupList": [{"id": "defaultPriceGroup"}],
    "propertyName": "active",
    "defaultPriceListGroup": {"id": "defaultPriceGroup"}
  }],
  "links": [{
    "rel": "self",
    "href": "http://localhost:9080/ccadmin/v1/profileContextLists/defaultProfileContextList"
  }],
  "id": "defaultProfileContextList"
}