listSiteProperties

get

/ccagent/v1/profiles/{id}/siteProperties

Get Site properties related to specific customer.

Request

Supported Media Types
  • application/json
Path Parameters
id
Type: string
Required: true
The customer profile id.

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : listSiteProperties_response
Nested Schema : items
Type: array
The list of site related properties for the profile
Nested Schema : items
Type: object
Nested Schema : properties
Type: object
The site related properties for the profile
Nested Schema : site
Type: object
The site data
Example application/json

{
    "totalResults":1,
    "endingIndex":250,
    "offset":0,
    "totalResultsParam":true,
    "count":1,
    "limit":250,
    "links":[
        {
            "rel":"self",
            "href":"http://blr2213237.idc.oracle.com:9080/ccagentui/v1/profiles/se-570031/siteProperties?siteProperties=%5Bobject%20Object%5D"
        }
    ],
    "sort":null,
    "items":[
        {
            "site":{
                "id":"SiteA"
            },
            "properties":{
                "receiveEmail":"yes"
            }
        }
    ],
    "listingRequest":{
        "endingIndex":250,
        "correctedView":null,
        "queryOptions":{
            "precachedPropertyNames":null,
            "doNotCacheQuery":false,
            "sortDirectives":null,
            "endingIndex":250,
            "ignoreDuplicates":false,
            "nthIndex":1,
            "uncachedItems":false,
            "uncachedItemsSet":false,
            "startingIndex":0
        },
        "rqlString":null,
        "QErrorCodeMap":null,
        "QPropertyAliasMap":null,
        "sort":null,
        "startingIndex":0,
        "QIgnoreCase":true,
        "QString":null,
        "filterProperties":[
            "displayName",
            "id"
        ],
        "includeRqlInQueryGeneration":true,
        "rqlStatement":null,
        "expanded":false,
        "scimParser":null,
        "useSCIMForQ":true,
        "limit":250,
        "siteId":null,
        "after":null,
        "calculateTotalAvailable":true
    },
    "startingIndex":0,
    "totalNumberOfItems":1
}
Default Response
The error response. The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud: |Error Code|Description| |------------------|------------------| |22030|User is not logged in| |22031|Internal error during get profile| |22032|Error occured due to invalid data|
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 Response Payload returned by endpoint:

{
  "totalResults": 1,
  "endingIndex": 250,
  "offset": 0,
  "totalResultsParam": true,
  "count": 1,
  "limit": 250,
  "links": [{
    "rel": "self",
    "href": "http://blr2213237.idc.oracle.com:9080/ccagentui/v1/profiles/se-570031/siteProperties?siteProperties=%5Bobject%20Object%5D"
  }],
  "sort": null,
  "items": [{
    "site": {"id": "SiteA"},
    "properties": {"receiveEmail": "yes"}
  }],
  "listingRequest": {
    "endingIndex": 250,
    "correctedView": null,
    "queryOptions": {
      "precachedPropertyNames": null,
      "doNotCacheQuery": false,
      "sortDirectives": null,
      "endingIndex": 250,
      "ignoreDuplicates": false,
      "nthIndex": 1,
      "uncachedItems": false,
      "uncachedItemsSet": false,
      "startingIndex": 0
    },
    "rqlString": null,
    "QErrorCodeMap": null,
    "QPropertyAliasMap": null,
    "sort": null,
    "startingIndex": 0,
    "QIgnoreCase": true,
    "QString": null,
    "filterProperties": [
      "displayName",
      "id"
    ],
    "includeRqlInQueryGeneration": true,
    "rqlStatement": null,
    "expanded": false,
    "scimParser": null,
    "useSCIMForQ": true,
    "limit": 250,
    "siteId": null,
    "after": null,
    "calculateTotalAvailable": true
  },
  "startingIndex": 0,
  "totalNumberOfItems": 1
}