validateURLSlugMap

get

/ccadmin/v1/urlPatterns/{id}/validate

Validate URL slug uniqueness. Returns information on any duplicate URL slugs.

Request

Supported Media Types
Path Parameters
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : validateURLSlugMap_response
Type: object
Show Source
Nested Schema : duplicates
Type: array
Duplicate URL slugs.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : en
Type: array
Duplicates for specified locale.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : nintendo-switch
Type: array
Duplicate URL slug for the locale.
Show Source
Nested Schema : nintendo-switch (duplicate)
Type: array
Duplicate URL slug for the locale.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
{
    "duplicates":{
        "en":{
            "nintendo-switch":{
                "itemDescriptor":"product",
                "displayName":"Nintendo Switch",
                "seoUrlSlugDerived":"nintendo-switch",
                "id":"prod130047"
            },
            "nintendo-switch (duplicate)":{
                "itemDescriptor":"category",
                "displayName":"Nintendo Switch games",
                "seoUrlSlugDerived":"nintendo-switch",
                "id":"video-games-123"
            }
        },
        "containsDuplicates":true
    }
}

Default Response

The error response
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top