URL:
https://[root]/portals/[portalID]/allScheduledTasks
Methods:
POST
Version Introduced:
10.8.1

Example usage

The following is a sample ArcGIS Online request URL used to access the allScheduledTasks resource, demonstrating how to filter the results by tasks with a type of ExecuteNotebook, owned by the user NBadmin, that are currently active (true):

Use dark colors for code blocksCopy
1
https://org.arcgis.com/sharing/rest/portals/0123456789ABCDEF/allScheduledTasks?types=ExecuteNotebook&userFilter=NBadmin&active=true&filter=(created:[1786991400000 TO 1787682599999])&f=pjson

The following is a sample ArcGIS Enterprise request URL used to access the allScheduledTasks resource, demonstrating how to filter the results by tasks with a type of ExecuteNotebook, owned by the user NBadmin, that are currently active (true):

Use dark colors for code blocksCopy
1
https://organization.example.com/<context>/sharing/rest/portals/0123456789ABCDEF/allScheduledTasks?types=ExecuteNotebook&userFilter=NBadmin&active=true&filter=(created:[1786991400000 TO 1787682599999])&includeRunHistoryInfo=true&f=pjson

Description

The allScheduledTasks resource returns a list of all scheduled tasks that exist in the organization. The results can be filtered by specifying the item ID of an item a task is assigned to, the username of the task's owner, as well as the task type and the task's active status.

Request parameters

ParameterDetails

itemId

(Optional)

The ID of an item that has a scheduled task associated with it. Only one task item ID can be entered at a time.

Example

Use dark colors for code blocksCopy
1
itemId=b181b9ab14d0442faa183215ec2c615e

active

(Optional)

Specifies whether the tasks will be filtered by active (true) tasks.

Values: true | false

userFilter

(Optional)

Filters tasks by the username of the task owner. Only one username can be entered at a time.

Example

Use dark colors for code blocksCopy
1
userFilter=NBdmin

taskState

(Optional)

Filters tasks by status.

Values: active | completed | disabled | failed | paused

types

(Optional)

Specifies the task type.

Values: ExecuteNotebook | UpdateInsightsWorkbook | ExecuteSceneCook | ExecuteWorkflowManager | ExecuteReport | GPService | CreateEnterpriseBackup

sortField

(Optional)

The field to sort by. Sort field names are not case sensitive.

Supported sort field names are type, userId, title, created, updated, nextStart, and taskState.

sortOrder

(Optional)

Describes whether the results are returned in ascending or descending order. The default is ascending.

Values: asc | desc

includeRunHistoryInfo

(Optional)

Introduced at ArcGIS Enterprise 12.2. Determines whether the response object includes the lastTaskRunStatus and lastTaskRunModified properties for each task. The lastTaskRunStatus property indicates the status of the task's most recent run. The lastTaskRunModified property represents the date and time information for when the most recent task run was last modified, represented as a Unix timestamp in milliseconds. These properties will be returned as null if a task has no run history. The default value is false.

Values: true | false

filter

(Optional)

Introduced with the November 2026 release of ArcGIS Online and at ArcGIS Enterprise 12.2. Filters the organization's scheduled tasks by their creation (created) or modification (updated) date. Date information must be provided in a Unix timestamp in milliseconds.

Syntax:

Use dark colors for code blocksCopy
1
2
3
4
5
filter=(<created | updated>:[<timestamp> TO <timestamp>]) //Square brackets include the boundary values

filter=(<created | updated>:{<timestamp> TO <timestamp>}) //Curly brackets exclude the boundary values

filter=(created:[<timestamp> TO <timestamp>]) (updated:[<timestamp> TO <timestamp>]) //Multiple date filters

Example:

Use dark colors for code blocksCopy
1
2
3
4
5
filter=(created:[1786991400000 TO 1787682599999])

filter=(updated:[1787682600000 TO 1787768999999])

filter=(created:[1786991400000 TO 1787682599999]) (updated:[1787682600000 TO 1787768999999])

f

The response format. The default response is html.

Values: html | json | pjson

JSON Response example

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{
  "total": 2,
  "start": 1,
  "num": 2,
  "nextStart": -1,
  "tasks": [
    {
      "id": "d08b95a4b1ff4f85b927ef8dfc62a668",
      "itemId": "a4b0cfc8fc354a0eb2502976f6138b77",
      "type": "ExecuteNotebook",
      "title": "FiveTimesOnceAMinute",
      "userId": "NBadmin",
      "cronSchedule": {
        "minute": "*/1",
        "hour": "*",
        "dayOfMonth": "*",
        "month": "*",
        "dayOfWeek": "?"
      },
      "runIntervalSeconds": 60,
      "lastStart": 1790109857888,
      "maxOccurrences": 10,
      "parameters": {
        "updatePortalItem": true,
        "saveInjectedParameters": false,
        "notebookParameters": "{}"
      },
      "created": 1790109742467,
      "updated": 1790109857888,
      "startDate": 1790109742377,
      "active": false,
      "taskState": "completed",
      "lastTaskRunStatus": "succeeded",
      "lastTaskRunModified": 1790109911745
    },
    {
      "id": "5837c7bc37ac404e8e3c16d9022b2b59",
      "itemId": "029b61ca770e428d9468a2a55f40b9fb",
      "type": "ExecuteNotebook",
      "title": "OnceAMinute10times",
      "userId": "NBadmin",
      "cronSchedule": {
        "minute": "*/1",
        "hour": "*",
        "dayOfMonth": "*",
        "month": "*",
        "dayOfWeek": "?"
      },
      "runIntervalSeconds": 60,
      "lastStart": 1790109857888,
      "maxOccurrences": 10,
      "parameters": {
        "updatePortalItem": true,
        "saveInjectedParameters": false,
        "notebookParameters": "{}"
      },
      "created": 1790109742467,
      "updated": 1790109857888,
      "startDate": 1790109742377,
      "active": false,
      "taskState": "completed",
      "lastTaskRunStatus": "succeeded",
      "lastTaskRunModified": 1790109911745
    }
  ]
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.