validateURLSlugMap
get
/ccadmin/v1/urlPatterns/{id}/validate
Validate URL slug uniqueness. Returns information on any duplicate URL slugs.
Request
Supported Media Types
- application/json
Path Parameters
-
id(required): string
ID of the URL pattern
Query Parameters
-
includeDuplicateDetails: boolean
Whether to return information on duplicate URL slugs.Default Value:
true
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : validateURLSlugMap_response
Type:
Show Source
object
-
containsDuplicates:
boolean
Default Value:
true
Whether or not there are duplicate URL patterns. -
duplicates:
array duplicates
Duplicate URL slugs.
Nested Schema : items
Type:
Show Source
object
-
nintendo-switch:
array nintendo-switch
Duplicate URL slug for the locale.
-
nintendo-switch (duplicate):
array nintendo-switch (duplicate)
Duplicate URL slug for the locale.
Nested Schema : nintendo-switch (duplicate)
Type:
array
Duplicate URL slug for the locale.
Show Source
Nested Schema : items
Type:
Show Source
object
-
displayName:
Default Value:
Nintendo Switch
Item Display name. -
id:
Default Value:
prod130047
ID for this item. -
itemDescriptor:
Default Value:
product
The item descriptor. -
seoUrlSlugDerived:
Default Value:
nintendo-switch
Item's URL slug.
Nested Schema : items
Type:
Show Source
object
-
displayName:
Default Value:
Nintendo Switch games
Item Display name. -
id:
Default Value:
video-games-123
ID for this item. -
itemDescriptor:
Default Value:
category
The item descriptor. -
seoUrlSlugDerived:
Default Value:
nintendo-switch
Item's URL slug.
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
Root Schema : errorModel
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
errors:
array errors
An optional list of errors if multiple errors were encountered
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code
-
type:
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code