Skip to content

CategoryURI_Insert#


Description#

This function inserts a URI for a category.

Request Parameters#

Parameter
Type Description
category_id
category_code
edit_category
Number
String
String
The category id being updated
The category code being updated
The category name being updated
status Number The status response number for the URI
canonical Boolean Boolean value indicating if the URI is canonical
uri String The relative path for the URI being inserted

Response Parameters#

Parameter
Type Description
success Boolean Boolean value indicating if the API request was successful

Example Request#

{
    "Store_code": "beta",
    "Function": "CategoryURI_Insert",
    "Category_ID": 2,
    "Status": 200,
    "Canonical": 0,
    "URI": "/category-number-two.html"
}

Example Response#

{
    "success": 1
}

Error Responses#

Error Code Error Message Error Description
MER-JSN-00018 Invalid value for field ‘URI’: URI ‘/category-two.html’ is already in use Invalid value for field ‘URI’: URI ‘/category-two.html’ is already in use