Skip to content

PageURIList_Load_Query#


Description#

This function loads a list of URI’s for a page.

Request Parameters#

Parameter
Type Description
page_id
edit_page
page_code
Number
String
String
The id number of the page
The code of the page
The code of the page
filter String A string for filtering returned data
sort String The order for sorting returned data
offset Number Used with the Count parameter for paginating results of large datasets. Default 0 is no offset.
count Number Maximum lines of data allowed to be returned in the response. This limit is used to prevent excessive amounts of data return

Response Parameters#

Parameter
Type Description
success Boolean Boolean value indicating if the API request was successful
total_count Number The total number of URI’s returned for the page
start_offset Number Pages of results. Default 0 is no offset.
id Number URI id for the page
uri String The relative path for the URI
store_id Number The id number of the store
screen String The screen description
page_id Number The id number of the page
cat_id Number The id number of the category
product_id Number The id number of the product
feed_id Number The id number of the feed
canonical Boolean Boolean value indicating if the URI is canonical
status Number The status response number for the URI

Example Request#

{
    "Store_Code": "{{Store_Code}}",
    "Miva_Request_Timestamp": "{{$timestamp}}",
    "Function": "PageURIList_Load_Query",
    "Page_ID": 44,
    "Filter": "",
    "Sort": "uri",
    "Offset": 0,
    "Count": 39
}

Example Response#

{
    "success": 1,
    "data": {
        "total_count": 1,
        "start_offset": 0,
        "data": [
            {
                "id": 26,
                "uri": "/customer-create.html",
                "store_id": 1,
                "screen": "",
                "page_id": 44,
                "cat_id": 0,
                "product_id": 0,
                "feed_id": 0,
                "canonical": true,
                "status": 200
            }
        ]
    }
}