URL:
https://[root]/community/users/[userName]/tasks
Methods:
GET
Version Introduced:
ArcGIS Enterprise 10.8.1

Example usage

The following is a sample ArcGIS Online request URL used to access the tasks resource, demonstrating how to filter a specific item that has an inactive ExecuteNotebook task associated with it:

Use dark colors for code blocksCopy
1
https://www.arcgis.com/sharing/rest/community/users/NBadmin/tasks?types=ExecuteNotebook&active=false&itemId=b181b9ab14d0442faa183215ec2c615e&filter=(created:[1786991400000 TO 1787682599999])&f=pjson

The following is a sample ArcGIS Enterprise request URL used to access the tasks resource, demonstrating how to filter a specific item that has an inactive ExecuteNotebook task associated with it:

Use dark colors for code blocksCopy
1
https://organization.example.com/<context>/sharing/rest/community/users/NBadmin/tasks?types=ExecuteNotebook&active=false&itemId=b181b9ab14d0442faa183215ec2c615e&filter=(created:[1786991400000 TO 1787682599999])&includeRunHistoryInfo=true&f=pjson

Description

The tasks resource returns a list of all the scheduled tasks owned by a user. These results can be further filtered by specifying the task ID, its active state, or its task type.

Request parameters

ParameterDetails

itemId

(Optional)

The ID of a task owned by a user. This is a single item ID filter, and does not support a list of task IDs as values.

Example:

Use dark colors for code blocksCopy
1
itemId=029b61ca770e428d9468a2a55f40b9fb

active

(Optional)

Filters user owned tasks by their active state. Tasks that are scheduled to continue running will have an active state of true; tasks that are completed, paused, or deleted will have an active state of false.

Values: true | false

taskState

(Optional)

Filters tasks by status.

Values: active | completed | disabled | failed | paused

types

(Optional)

The task type. The task type is specified during task creation.

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, 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 a user's owned 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 format 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
{
  "total": 1,
  "start": 1,
  "num": 1,
  "nextStart": -1,
  "activeTasksAvailable": 20,
  "tasks": [
    {
      "id": "5837c7bc37ac404e8e3c16d9022b2b59",
      "itemId": "029b61ca770e428d9468a2a55f40b9fb",
      "type": "ExecuteNotebook",
      "title": "OnceAMinute30times",
      "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.