updateURLPattern

put

/ccadmin/v1/urlPatterns/{id}

Update URLPattern. Updates a particular URL Patterns used to build Store Front URLs.

Request

Supported Media Types
  • application/json
Path Parameters
id
Type: string
Required: true
Body Parameter
Root Schema : updateURLPattern_request

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : updateURLPattern_response
Nested Schema : items
Type: array
The list of URL pattern objects.
Nested Schema : items
Type: object
Nested Schema : availableProperties
Type: array
Properties available to use in URL Patterns
Nested Schema : translations
Type: object
List of translated URL Patterns
Example application/json

[
    {
        "availableProperties":[
            "description",
            "displayName",
            "id",
            "parentCategory",
            "seoDescriptionDerived",
            "seoTitleDerived",
            "seoUrlSlugDerived"
        ],
        "default":"/{seoTitleDerived}/category/{id}",
        "translations":{
            "1":"/{seoTitleDerived}/category/{id}"
        },
        "name":"Category Page",
        "repositoryId":"categoryPageRoute",
        "autoRedirect":true,
        "value":"/{seoTitleDerived}/category/{id}",
        "example":"/skirts/category/cat70008"
    },
    {
        "availableProperties":[
            "brand",
            "description",
            "displayName",
            "id",
            "parentCategory",
            "seoDescriptionDerived",
            "seoTitleDerived",
            "seoUrlSlugDerived",
            "type"
        ],
        "default":"/{seoTitleDerived}/product/{id}",
        "translations":{
            "1":"/{seoTitleDerived}/product/{id}"
        },
        "name":"Product Page",
        "repositoryId":"productPageRoute",
        "autoRedirect":true,
        "value":"/{seoTitleDerived}/product/{id}",
        "example":"/a-line-skirt/product/xprod2535"
    }
]
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:

PUT /ccadminui/v1/urlPatterns/categoryPageRoute

Sample Response Payload returned by endpoint:

[
  {
    "availableProperties": [
      "description",
      "displayName",
      "id",
      "parentCategory",
      "seoDescriptionDerived",
      "seoTitleDerived",
      "seoUrlSlugDerived"
    ],
    "default": "/{seoTitleDerived}/category/{id}",
    "translations": {"1": "/{seoTitleDerived}/category/{id}"},
    "name": "Category Page",
    "repositoryId": "categoryPageRoute",
    "autoRedirect": true,
    "value": "/{seoTitleDerived}/category/{id}",
    "example": "/skirts/category/cat70008"
  },
  {
    "availableProperties": [
      "brand",
      "description",
      "displayName",
      "id",
      "parentCategory",
      "seoDescriptionDerived",
      "seoTitleDerived",
      "seoUrlSlugDerived",
      "type"
    ],
    "default": "/{seoTitleDerived}/product/{id}",
    "translations": {"1": "/{seoTitleDerived}/product/{id}"},
    "name": "Product Page",
    "repositoryId": "productPageRoute",
    "autoRedirect": true,
    "value": "/{seoTitleDerived}/product/{id}",
    "example": "/a-line-skirt/product/xprod2535"
  }
]