setSearchSchedule
put
/ccadmin/v1/search/schedule
Set Search Schedule. Schedule a recurring baseline index using an atg.service.scheduler.CalendarSchedule. This method allows setting the schedule from a parseString, and from component parts (hours, minutes, etc). The parseString property will override component part properties, if present.
Request
Supported Media Types
- application/json
Body Parameter
Root Schema : setSearchSchedule_request
{
"occurrences":"*",
"hours":"2",
"months":"*",
"minutes":"01",
"daysOfMonth":"*",
"timeZone":"EST",
"daysOfWeek":"*"
}
- daysOfMonth
-
Type:
stringThe day or days of the month on which the schedule occurs. Not used if parseString is specified. If neither parseString or daysOfMonth is specified, defaults to all days of the month (equivalent to "*"). - daysOfWeek
-
Type:
stringThe day or days of the week on which the schedule occurs. Not used if parseString is specified. If neither parseString nor daysOfWeek is specified, defaults to all days of the the week (equivalent to "*"). - hours
-
Type:
stringThe hours of the day on which the schedule occurs. Not used if parseString is specified. If neither parseString nor hours is specified, defaults to all hours of the day (equivalent to "*"). - locale
-
Type:
stringThe optional locale to use. Defaults to the US locale. - minutes
-
Type:
stringRequired:trueThe minutes of the hour on which the schedule occurs. Not used if parseString is specified. If neither parseString nor minutes is specified, defaults to all minutes of the hour (equivalent to "*"). - months
-
Type:
stringThe month or months on which the schedule occurs. Not used if parseString is specified. If neither parseString or months is specified, defaults to all months (equivalent to "*"). - occurrences
-
Type:
stringThe occurence of the day or days of the week on which the schedule occurs. Not used if parseString is specified. If neither parseString or occurences is specified, defaults to all occurences in the month (equivalent to "*"). - parseString
-
Type:
stringThe complete atg.service.scheduler.CalendarSchedule parse string. If present, will be used instead of hours, minutes, etc. A null parseString value will delete the baseline schedule - timeZone
-
Type:
stringThe optional time zone to use when interpretting the schedule. If not specified, defaults to the time zone of the server JVM.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : setSearchSchedule_response
- daysOfMonth
-
Type:
stringThe day or days of the month on which the schedule occurs. - daysOfWeek
-
Type:
stringThe day or days of the week on which the schedule occurs. - hours
-
Type:
stringThe hours of the day on which the schedule occurs. - minutes
-
Type:
stringThe minutes of the hour on which the schedule occurs. - months
-
Type:
stringThe month or months on which the schedule occurs. Not used if parseString is specified. - occurrences
-
Type:
stringThe occurence of the day or days of the week on which the schedule occurs. - parseString
-
Type:
stringThe complete atg.service.scheduler.CalendarSchedule parse string. - timeZone
-
Type:
stringThe time zone of the schedule.
Example application/json
{
"occurrences":"*",
"hours":"2",
"months":"*",
"parseString":"* * * * * 35",
"minutes":"01",
"daysOfMonth":"*",
"timeZone":"EST",
"daysOfWeek":"*"
}
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|
|------------------|------------------|
|34080|Search index Invalid Schedule|
|31042|Search admin index internal error|
|34081|Search schedule index internal error|
Body
Root Schema : errorModel
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
Examples
Sample Request:
{
"occurrences": "*",
"hours": "2",
"months": "*",
"minutes": "01",
"daysOfMonth": "*",
"timeZone": "EST",
"daysOfWeek": "*"
}
Sample Response Payload returned by endpoint:
{
"occurrences": "*",
"hours": "2",
"months": "*",
"parseString": "* * * * * 35",
"minutes": "01",
"daysOfMonth": "*",
"timeZone": "EST",
"daysOfWeek": "*"
}