List head page tags.
get
/ccadmin/v1/sites/{siteId}/headTags
List the page tags in the head section of the specified site.
Request
Supported Media Types
- application/json
Path Parameters
-
siteId(required): string
The repository ID of the site whose page tags are listed.
Query Parameters
-
fields: string
This controls which fields are returned in the response body.
-
limit: integer
This is the field to specify the number of records to be fetched per REST call.
-
offset: integer
This field specifies the offset/starting index from which the data to be fetched.
-
q: string
The search query string in SCIM format. Results will be filtered based on this query.
-
sort: string
This field specifies the sort order of the list to be fetched.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : listPageTags_response
Type:
Show Source
object
-
items:
array items
The list of page tags in the head section of this site
-
limit:
integer
The limit
-
offset:
integer
The offset
-
sort:
array sort
Array having the order and property of sites.
-
total:
integer
The total count
-
totalResults:
integer
The total results count
Nested Schema : items
Type:
array
The list of page tags in the head section of this site
Show Source
Nested Schema : items
Type:
Show Source
object
-
content:
string
The page tag HTML
-
enabled:
boolean
Whether the page tag should appear in the site's HTML
-
id:
string
The page tag id generated on the server
-
name:
integer
The name of the page tag
-
order:
integer
1-based position of the page tag in the page tag list
Nested Schema : items
Type:
Show Source
object
-
order:
string
The sort order: either asc or desc.
-
property:
string
The property sorted on.
Example Response (application/json)
{
"totalResults":1,
"offset":0,
"limit":20,
"items":[
{
"name":"taya tag",
"id":"8571b3a7-0a74-4516-978c-5090f31d8faf",
"enabled":true,
"content":"",
"order":1
}
]
}
Default Response
The error response.
The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
|Error Code|Description|
|------------------|------------------|
|52900|The page tag repository was not initialized.|
|529010|The site ID in the path is invalid.|
|52912|Missing request.|
|52901|An error occurred performing the tag query.
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