Skip to main content

Creates a new scheduled search.

Request Body required

The scheduled search to persist.

  • name string

    The name of the scheduled search.

  • description string

    The description of the scheduled search.

  • savedSearchId string required

    The ID of the saved search that will be executed.

  • schedule object required

    The schedule information.

  • type string required

    Possible values: [DAILY, WEEKLY, MONTHLY, CALENDAR]

    Enum representing the currently supported schedule types.

    Additional values may be added in the future without notice.

  • days object

    The days to execute the search.

    If type is WEEKLY, the values will be MON, TUE, WED, THU, FRI, SAT, and SUN.

    If type is MONTHLY, the values will be a number in double quotes, like "1", "10", or "28". Optionally, the value "L" can be used to refer to the last day of the month.

  • type string required

    Possible values: [LIST, RANGE]

    Enum representing the currently supported selector types.

    LIST - the values array contains one or more distinct values.

    RANGE - the values array contains two values: the start and end of the range, inclusive.

    Additional values may be added in the future without notice.

  • values string[] required

    The selected values.

  • interval int32

    The selected interval for RANGE selectors.

  • hours object required

    The hours selected.

  • type string required

    Possible values: [LIST, RANGE]

    Enum representing the currently supported selector types.

    LIST - the values array contains one or more distinct values.

    RANGE - the values array contains two values: the start and end of the range, inclusive.

    Additional values may be added in the future without notice.

  • values string[] required

    The selected values.

  • interval int32

    The selected interval for RANGE selectors.

  • expiration date-time

    A date-time in ISO-8601 format

  • timeZoneId string

    The GMT formatted timezone the schedule will run in (ex. GMT-06:00). If no timezone is specified, the org's default timezone is used.

  • recipients object[] required

    A list of identities that should receive the scheduled search report via email.

  • type string required

    Possible values: [IDENTITY]

    The type of object being referenced

  • id string required

    The ID of the referenced object

  • enabled boolean

    Default value: false

    Indicates if the scheduled search is enabled.

  • emailEmptyResults boolean

    Default value: false

    Indicates if email generation should not be suppressed if search returns no results.

  • displayQueryDetails boolean

    Default value: false

    Indicates if the generated email should include the query and search results preview (which could include PII).

Responses

The persisted scheduled search.


Schema
  • id string

    The scheduled search ID.

  • owner object

    The owner of the scheduled search

  • type string

    Possible values: [IDENTITY]

    The type of object being referenced

  • id string

    The ID of the referenced object

  • ownerId string deprecated

    The ID of the scheduled search owner.

    Please use the id in the owner object instead.

  • name string

    The name of the scheduled search.

  • description string

    The description of the scheduled search.

  • savedSearchId string

    The ID of the saved search that will be executed.

  • created date-time

    The date the scheduled search was initially created.

  • modified date-time

    The last date the scheduled search was modified.

  • schedule object

    The schedule information.

  • type string

    Possible values: [DAILY, WEEKLY, MONTHLY, CALENDAR]

    Enum representing the currently supported schedule types.

    Additional values may be added in the future without notice.

  • days object

    The days to execute the search.

    If type is WEEKLY, the values will be MON, TUE, WED, THU, FRI, SAT, and SUN.

    If type is MONTHLY, the values will be a number in double quotes, like "1", "10", or "28". Optionally, the value "L" can be used to refer to the last day of the month.

  • type string

    Possible values: [LIST, RANGE]

    Enum representing the currently supported selector types.

    LIST - the values array contains one or more distinct values.

    RANGE - the values array contains two values: the start and end of the range, inclusive.

    Additional values may be added in the future without notice.

  • values string[]

    The selected values.

  • interval int32

    The selected interval for RANGE selectors.

  • hours object

    The hours selected.

  • type string

    Possible values: [LIST, RANGE]

    Enum representing the currently supported selector types.

    LIST - the values array contains one or more distinct values.

    RANGE - the values array contains two values: the start and end of the range, inclusive.

    Additional values may be added in the future without notice.

  • values string[]

    The selected values.

  • interval int32

    The selected interval for RANGE selectors.

  • expiration date-time

    A date-time in ISO-8601 format

  • timeZoneId string

    The GMT formatted timezone the schedule will run in (ex. GMT-06:00). If no timezone is specified, the org's default timezone is used.

  • recipients object[]

    A list of identities that should receive the scheduled search report via email.

  • type string

    Possible values: [IDENTITY]

    The type of object being referenced

  • id string

    The ID of the referenced object

  • enabled boolean

    Default value: false

    Indicates if the scheduled search is enabled.

  • emailEmptyResults boolean

    Default value: false

    Indicates if email generation should not be suppressed if search returns no results.

  • displayQueryDetails boolean

    Default value: false

    Indicates if the generated email should include the query and search results preview (which could include PII).

Loading...