Skip To Content ArcGIS for Developers Sign In Dashboard

Get Specific Task

  • URL:https://<tasks-url>/<taskID>
  • Version Introduced:10.8.1

Description

Returns information on a specific task, such as the task's title, parameters, and schedule.

Request parameters

ParameterDetails
f

The response format. The default format is html.

Values: html | json | pjson

Example usage

Below is a sample request URL used to access the task resource:

https://machine.domain.com/webadaptor/sharing/rest/community/users/NBadmin/tasks/5837c7bc37ac404e8e3c16d9022b2b59?f=pjson

JSON Response example

{
  "id": "5837c7bc37ac404e8e3c16d9022b2b59",
  "itemId": "029b61ca770e428d9468a2a55f40b9fb",
  "type": "ExecuteNotebook",
  "title": "OnceAMinute10times",
  "userId": "portaladmin",
  "cronSchedule": {
    "minute": "*/1",
    "hour": "*",
    "dayOfMonth": "*",
    "month": "*",
    "dayOfWeek": "?"
  },
  "runIntervalSeconds": 60,
  "lastStart": 1589460540000,
  "maxOccurrences": 10,
  "parameters": {
    "updatePortalItem": true,
    "saveInjectedParameters": false,
    "notebookParameters": "{}"
  },
  "created": 1589456737000,
  "updated": 1589460535000,
  "startDate": 1589428800000,
  "active": false,
  "taskState": "paused"
}