Operations#

Use these endpoints to manage operations, such as to check their status.

Operation#

Details about the operation, including its ID, status, milestone dates, and the url of the resource upon successful completion of the operation.

Properties#

Name

Type

Description

Restrictions

created

Action

When the action was performed, and details about the user who did it

read-only

details

[OperationDetail]¦null

A list of additional details about the operation

read-only

id

string

The unique identifier of the operation

read-only

originalRequest

string(uuid)

This is the Request ID that initiated this async operation. Giving this ID to support can help track issues with your operations.

read-only

resourceUrl

string¦null

The link to the resulting resource(s)

read-only

status

string

The current status of the operation

read-only

updated

Action

When the action was performed, and details about the user who did it

read-only

Enumerated Values#

Property

Value

status

acknowledged

status

queued

status

started

status

completed

status

cancelled

status

failed

Example#

{
  "created": {
    "dateTime": "2019-10-28T15:03:27Z",
    "user": {
      "id": "V0ZVc2VyHzU1MDg3OTc0MDE4MDg4OTY"
    }
  },
  "details": [
    {
      "code": "DependencyResolutionFailed",
      "message": "Could not resolve pinned version for package 'requests'",
      "target": "requirements.txt"
    }
  ],
  "id": "128f274395254cf17eda6b3eb3d021b9",
  "originalRequest": "7bee78f7-417b-42bc-ace9-e588c65d19bf",
  "resourceUrl": "https://api.app.wdesk.com/scripts/128f274395254cf17eda6b3eb3d021b9/runs/24e0e0a68a1d4a5f8f3f6b1c9d2e4f70",
  "status": "completed",
  "updated": {
    "dateTime": "2019-10-28T15:04:20Z",
    "user": {
      "id": "V0ZVc2VyHzU1MDg3OTc0MDE4MDg4OTY"
    }
  }
}

OperationDetail#

An OperationDetail contains extra information about an Operation

Properties#

Name

Type

Description

Restrictions

code

string¦null

The error code for specified error details

read-only

message

string¦null

A message describing the detail

read-only

target

string¦null

For failures, this will be the target of the error

read-only

Example#

{
  "code": "DependencyResolutionFailed",
  "message": "Could not resolve pinned version for package 'requests'",
  "target": "requirements.txt"
}