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

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : setSearchSchedule_response
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
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Nested Schema : items
Type: object

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": "*"
}