generateURLSlugMap

put

/ccadmin/v1/urlPatterns/{id}/generate

Generate URL slugs for the URL pattern identified by the ID parameter.

Request

Supported Media Types
Path Parameters
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds. Highlights any duplicates.
Body ()
Root Schema : generateURLSlugMap_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