mirror of
https://github.com/LukeHagar/api-specs.git
synced 2025-12-09 20:37:50 +00:00
Automated commit by github action: 3950157884
This commit is contained in:
@@ -23,16 +23,21 @@ put:
|
|||||||
$ref: '../schemas/search/scheduled/ScheduledSearch.yaml'
|
$ref: '../schemas/search/scheduled/ScheduledSearch.yaml'
|
||||||
'400':
|
'400':
|
||||||
$ref: '../responses/400.yaml'
|
$ref: '../responses/400.yaml'
|
||||||
|
'401':
|
||||||
|
$ref: '../responses/401.yaml'
|
||||||
'403':
|
'403':
|
||||||
$ref: '../responses/403.yaml'
|
$ref: '../responses/403.yaml'
|
||||||
'404':
|
'404':
|
||||||
$ref: '../responses/404.yaml'
|
$ref: '../responses/404.yaml'
|
||||||
|
'429':
|
||||||
|
$ref: '../responses/429.yaml'
|
||||||
|
'500':
|
||||||
|
$ref: '../responses/500.yaml'
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
- Scheduled Search
|
- Scheduled Search
|
||||||
description: |
|
description: Returns the specified scheduled search.
|
||||||
Returns the specified scheduled search.
|
summary: Get a Scheduled Search
|
||||||
summary: Return a Scheduled Search by ID
|
|
||||||
operationId: scheduledSearchGet
|
operationId: scheduledSearchGet
|
||||||
parameters:
|
parameters:
|
||||||
- $ref: '../parameters/path/search/id.yaml'
|
- $ref: '../parameters/path/search/id.yaml'
|
||||||
@@ -43,21 +48,39 @@ get:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '../schemas/search/scheduled/ScheduledSearch.yaml'
|
$ref: '../schemas/search/scheduled/ScheduledSearch.yaml'
|
||||||
|
'400':
|
||||||
|
$ref: '../responses/400.yaml'
|
||||||
|
'401':
|
||||||
|
$ref: '../responses/401.yaml'
|
||||||
|
'403':
|
||||||
|
$ref: '../responses/403.yaml'
|
||||||
'404':
|
'404':
|
||||||
$ref: '../responses/404.yaml'
|
$ref: '../responses/404.yaml'
|
||||||
|
'429':
|
||||||
|
$ref: '../responses/429.yaml'
|
||||||
|
'500':
|
||||||
|
$ref: '../responses/500.yaml'
|
||||||
delete:
|
delete:
|
||||||
tags:
|
tags:
|
||||||
- Scheduled Search
|
- Scheduled Search
|
||||||
description: |
|
description: |
|
||||||
Deletes the specified scheduled search.
|
Deletes the specified scheduled search.
|
||||||
operationId: scheduledSearchDelete
|
operationId: scheduledSearchDelete
|
||||||
summary: Delete a Scheduled Search by ID
|
summary: Delete a Scheduled Search
|
||||||
parameters:
|
parameters:
|
||||||
- $ref: '../parameters/path/search/id.yaml'
|
- $ref: '../parameters/path/search/id.yaml'
|
||||||
responses:
|
responses:
|
||||||
'204':
|
'204':
|
||||||
description: No Content - Indicates the request was successful but there is no content to be returned in the response.
|
description: No Content - Indicates the request was successful but there is no content to be returned in the response.
|
||||||
|
'400':
|
||||||
|
$ref: '../responses/400.yaml'
|
||||||
|
'401':
|
||||||
|
$ref: '../responses/401.yaml'
|
||||||
'403':
|
'403':
|
||||||
$ref: '../responses/403.yaml'
|
$ref: '../responses/403.yaml'
|
||||||
'404':
|
'404':
|
||||||
$ref: '../responses/404.yaml'
|
$ref: '../responses/404.yaml'
|
||||||
|
'429':
|
||||||
|
$ref: '../responses/429.yaml'
|
||||||
|
'500':
|
||||||
|
$ref: '../responses/500.yaml'
|
||||||
|
|||||||
@@ -13,6 +13,119 @@ post:
|
|||||||
allOf:
|
allOf:
|
||||||
- $ref: '../schemas/search/scheduled/Name.yaml'
|
- $ref: '../schemas/search/scheduled/Name.yaml'
|
||||||
- $ref: '../schemas/search/scheduled/Schedule.yaml'
|
- $ref: '../schemas/search/scheduled/Schedule.yaml'
|
||||||
|
examples:
|
||||||
|
Daily Search:
|
||||||
|
description: A search that executes each day at a 9 AM
|
||||||
|
value:
|
||||||
|
{
|
||||||
|
"savedSearchId": "9c620e13-cd33-4804-a13d-403bd7bcdbad",
|
||||||
|
"schedule": {
|
||||||
|
"type": "DAILY",
|
||||||
|
"hours": {
|
||||||
|
"type": "LIST",
|
||||||
|
"values": [
|
||||||
|
"9"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"recipients": [
|
||||||
|
{
|
||||||
|
"type": "IDENTITY",
|
||||||
|
"id": "2c9180867624cbd7017642d8c8c81f67"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
Weekly Search:
|
||||||
|
description: A search that executes each week on select days and times
|
||||||
|
value:
|
||||||
|
{
|
||||||
|
"savedSearchId": "9c620e13-cd33-4804-a13d-403bd7bcdbad",
|
||||||
|
"schedule": {
|
||||||
|
"type": "WEEKLY",
|
||||||
|
"days": {
|
||||||
|
"type": "LIST",
|
||||||
|
"values": [
|
||||||
|
"MON",
|
||||||
|
"TUE",
|
||||||
|
"WED",
|
||||||
|
"THU",
|
||||||
|
"FRI",
|
||||||
|
"SAT",
|
||||||
|
"SUN"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"hours": {
|
||||||
|
"type": "LIST",
|
||||||
|
"values": [
|
||||||
|
"9"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"recipients": [
|
||||||
|
{
|
||||||
|
"type": "IDENTITY",
|
||||||
|
"id": "2c9180867624cbd7017642d8c8c81f67"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
Monthly Search:
|
||||||
|
description: A search that executes each month on select days and times
|
||||||
|
value:
|
||||||
|
{
|
||||||
|
"savedSearchId": "9c620e13-cd33-4804-a13d-403bd7bcdbad",
|
||||||
|
"schedule": {
|
||||||
|
"type": "MONTHLY",
|
||||||
|
"days": {
|
||||||
|
"type": "LIST",
|
||||||
|
"values": [
|
||||||
|
"1",
|
||||||
|
"7",
|
||||||
|
"14",
|
||||||
|
"L"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"hours": {
|
||||||
|
"type": "LIST",
|
||||||
|
"values": [
|
||||||
|
"9"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"recipients": [
|
||||||
|
{
|
||||||
|
"type": "IDENTITY",
|
||||||
|
"id": "2c9180867624cbd7017642d8c8c81f67"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
Calendar Search:
|
||||||
|
description: A search that executes on specific calendar days
|
||||||
|
value:
|
||||||
|
{
|
||||||
|
"savedSearchId": "9c620e13-cd33-4804-a13d-403bd7bcdbad",
|
||||||
|
"schedule": {
|
||||||
|
"type": "CALENDAR",
|
||||||
|
"days": {
|
||||||
|
"type": "LIST",
|
||||||
|
"values": [
|
||||||
|
"2023-01-22",
|
||||||
|
"2023-02-22"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"hours": {
|
||||||
|
"type": "LIST",
|
||||||
|
"values": [
|
||||||
|
"9"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"recipients": [
|
||||||
|
{
|
||||||
|
"type": "IDENTITY",
|
||||||
|
"id": "2c9180867624cbd7017642d8c8c81f67"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
required: true
|
required: true
|
||||||
responses:
|
responses:
|
||||||
'201':
|
'201':
|
||||||
@@ -23,14 +136,22 @@ post:
|
|||||||
$ref: '../schemas/search/scheduled/ScheduledSearch.yaml'
|
$ref: '../schemas/search/scheduled/ScheduledSearch.yaml'
|
||||||
'400':
|
'400':
|
||||||
$ref: '../responses/400.yaml'
|
$ref: '../responses/400.yaml'
|
||||||
|
'401':
|
||||||
|
$ref: '../responses/401.yaml'
|
||||||
'403':
|
'403':
|
||||||
$ref: '../responses/403.yaml'
|
$ref: '../responses/403.yaml'
|
||||||
|
'404':
|
||||||
|
$ref: '../responses/404.yaml'
|
||||||
|
'429':
|
||||||
|
$ref: '../responses/429.yaml'
|
||||||
|
'500':
|
||||||
|
$ref: '../responses/500.yaml'
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
- Scheduled Search
|
- Scheduled Search
|
||||||
description: |
|
description: |
|
||||||
Returns a list of scheduled searches.
|
Returns a list of scheduled searches.
|
||||||
summary: Return a list of scheduled searches
|
summary: List scheduled searches
|
||||||
operationId: scheduledSearchList
|
operationId: scheduledSearchList
|
||||||
parameters:
|
parameters:
|
||||||
- $ref: '../parameters/offset.yaml'
|
- $ref: '../parameters/offset.yaml'
|
||||||
@@ -72,5 +193,13 @@ get:
|
|||||||
example: 5
|
example: 5
|
||||||
'400':
|
'400':
|
||||||
$ref: '../responses/400.yaml'
|
$ref: '../responses/400.yaml'
|
||||||
|
'401':
|
||||||
|
$ref: '../responses/401.yaml'
|
||||||
'403':
|
'403':
|
||||||
$ref: '../responses/403.yaml'
|
$ref: '../responses/403.yaml'
|
||||||
|
'404':
|
||||||
|
$ref: '../responses/404.yaml'
|
||||||
|
'429':
|
||||||
|
$ref: '../responses/429.yaml'
|
||||||
|
'500':
|
||||||
|
$ref: '../responses/500.yaml'
|
||||||
|
|||||||
@@ -1,39 +1,40 @@
|
|||||||
type: object
|
type: object
|
||||||
description: |
|
description: The schedule information.
|
||||||
The schedule information.
|
|
||||||
properties:
|
properties:
|
||||||
type:
|
type:
|
||||||
$ref: 'ScheduleType.yaml'
|
$ref: 'ScheduleType.yaml'
|
||||||
months:
|
|
||||||
$ref: Selector.yaml
|
|
||||||
description: 'The months selected.'
|
|
||||||
days:
|
days:
|
||||||
description: |
|
allOf:
|
||||||
The days selected.
|
- $ref: Selector.yaml
|
||||||
example:
|
- description: |
|
||||||
type: 'LIST'
|
The days to execute the search.
|
||||||
values:
|
|
||||||
- 'MON'
|
If `type` is `WEEKLY`, the values will be `MON`, `TUE`, `WED`, `THU`, `FRI`, `SAT`, and `SUN`.
|
||||||
- 'WED'
|
|
||||||
- 'FRI'
|
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.
|
||||||
$ref: Selector.yaml
|
example:
|
||||||
|
type: 'LIST'
|
||||||
|
values:
|
||||||
|
- 'MON'
|
||||||
|
- 'WED'
|
||||||
|
- 'FRI'
|
||||||
hours:
|
hours:
|
||||||
description: |
|
allOf:
|
||||||
The hours selected.
|
- $ref: Selector.yaml
|
||||||
example:
|
- description: The hours selected.
|
||||||
type: 'RANGE'
|
example:
|
||||||
values:
|
type: 'RANGE'
|
||||||
- '9'
|
values:
|
||||||
- '18'
|
- '9'
|
||||||
interval: 3
|
- '18'
|
||||||
$ref: Selector.yaml
|
interval: 3
|
||||||
|
nullable: false
|
||||||
expiration:
|
expiration:
|
||||||
description: |
|
description: The schedule expiration date. Latest possible expiration date is '2038-01-19T03:14:07+0000'
|
||||||
The schedule expiration date. Latest possible expiration date is '2038-01-19T03:14:07+0000'
|
|
||||||
$ref: ../search/model/base/DateTime.yaml
|
$ref: ../search/model/base/DateTime.yaml
|
||||||
timeZoneId:
|
timeZoneId:
|
||||||
description: |
|
description: 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.
|
||||||
The ID of the time zone for the schedule.
|
nullable: true
|
||||||
type: string
|
type: string
|
||||||
example: 'GMT-06:00'
|
example: 'GMT-06:00'
|
||||||
required:
|
required:
|
||||||
|
|||||||
@@ -10,4 +10,5 @@ enum:
|
|||||||
- events
|
- events
|
||||||
- identities
|
- identities
|
||||||
- roles
|
- roles
|
||||||
|
- "*"
|
||||||
example: identities
|
example: identities
|
||||||
|
|||||||
@@ -5,9 +5,10 @@ properties:
|
|||||||
The name of the scheduled search.
|
The name of the scheduled search.
|
||||||
type: string
|
type: string
|
||||||
example: 'Daily disabled accounts'
|
example: 'Daily disabled accounts'
|
||||||
|
nullable: true
|
||||||
description:
|
description:
|
||||||
description: |
|
description: |
|
||||||
The description of the scheduled search.
|
The description of the scheduled search.
|
||||||
type: string
|
type: string
|
||||||
nullable: true
|
nullable: true
|
||||||
example: 'Daily disabled accounts'
|
example: 'Daily disabled accounts'
|
||||||
@@ -1,26 +1,42 @@
|
|||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
savedSearchId:
|
savedSearchId:
|
||||||
description: |
|
description: The ID of the saved search that will be executed.
|
||||||
The ID of the saved search that will be executed.
|
|
||||||
type: string
|
type: string
|
||||||
example: '554f1511-f0a1-4744-ab14-599514d3e57c'
|
example: '554f1511-f0a1-4744-ab14-599514d3e57c'
|
||||||
created:
|
created:
|
||||||
description: |
|
allOf:
|
||||||
The date the scheduled search was initially created.
|
- $ref: ../model/base/DateTime.yaml
|
||||||
$ref: ../model/base/DateTime.yaml
|
description: The date the scheduled search was initially created.
|
||||||
|
readOnly: true
|
||||||
|
nullable: false
|
||||||
modified:
|
modified:
|
||||||
description: |
|
allOf:
|
||||||
The last date the scheduled search was modified.
|
- $ref: ../model/base/DateTime.yaml
|
||||||
$ref: ../model/base/DateTime.yaml
|
description: The last date the scheduled search was modified.
|
||||||
|
readOnly: true
|
||||||
|
nullable: false
|
||||||
schedule:
|
schedule:
|
||||||
$ref: '../../schedule/Schedule.yaml'
|
$ref: '../../schedule/Schedule.yaml'
|
||||||
recipients:
|
recipients:
|
||||||
description: |
|
description: A list of identities that should receive the scheduled search report via email.
|
||||||
The email recipients.
|
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: '../model/base/TypedReference.yaml'
|
type: object
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
description: The type of object being referenced
|
||||||
|
enum:
|
||||||
|
- IDENTITY
|
||||||
|
example: IDENTITY
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
description: The ID of the referenced object
|
||||||
|
example: 2c9180867624cbd7017642d8c8c81f67
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
- id
|
||||||
enabled:
|
enabled:
|
||||||
description: |
|
description: |
|
||||||
Indicates if the scheduled search is enabled.
|
Indicates if the scheduled search is enabled.
|
||||||
|
|||||||
@@ -1,20 +1,42 @@
|
|||||||
type: object
|
type: object
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: 'Name.yaml'
|
|
||||||
- $ref: 'Schedule.yaml'
|
|
||||||
- type: object
|
- type: object
|
||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
description: |
|
description: The scheduled search ID.
|
||||||
The scheduled search ID.
|
|
||||||
type: string
|
type: string
|
||||||
example: '0de46054-fe90-434a-b84e-c6b3359d0c64'
|
example: '0de46054-fe90-434a-b84e-c6b3359d0c64'
|
||||||
|
readOnly: true
|
||||||
owner:
|
owner:
|
||||||
description: |
|
description: The owner of the scheduled search
|
||||||
The owner of the scheduled search.
|
readOnly: true
|
||||||
$ref: ../model/base/TypedReference.yaml
|
type: object
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
description: The type of object being referenced
|
||||||
|
enum:
|
||||||
|
- IDENTITY
|
||||||
|
example: IDENTITY
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
description: The ID of the referenced object
|
||||||
|
example: 2c9180867624cbd7017642d8c8c81f67
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
- id
|
||||||
ownerId:
|
ownerId:
|
||||||
description: The ID of the scheduled search owner
|
description: |
|
||||||
|
The ID of the scheduled search owner.
|
||||||
|
|
||||||
|
Please use the `id` in the `owner` object instead.
|
||||||
type: string
|
type: string
|
||||||
example: 2c9180867624cbd7017642d8c8c81f67
|
example: 2c9180867624cbd7017642d8c8c81f67
|
||||||
|
readOnly: true
|
||||||
|
deprecated: true
|
||||||
|
- $ref: 'Name.yaml'
|
||||||
|
- $ref: 'Schedule.yaml'
|
||||||
|
required:
|
||||||
|
- id
|
||||||
|
- owner
|
||||||
|
- ownerId
|
||||||
Reference in New Issue
Block a user