GetAutomationScheduledTaskCapabilities - Get scheduled task capabilities

Updated at:

Queries the scheduled-task report delivery channels available to the current organization and current user, which are the sole basis for rendering channel check boxes, and the manual-trigger capability through OpenAPI. DingTalk requires, in sequence, that the deployment action is connected, the organization has a complete notification configuration that is enabled, and the current user has a DingTalk identity scoped to this organization with a non-empty external_user_id. The organization is determined by the organizationId path parameter. If any condition is not met, DingTalk is marked unavailable and an unavailableReason is returned (current_user_not_bound when the caller identity is missing); the request does not fail.

Applicable editions

Central edition, Region edition

Endpoints and authorization information

  • Get the service endpoint: Replace {domain} in the API request syntax.
  • Get a personal access token。
  • Obtain organizationId: Required only for the Central edition. In the Organization Management console, go to the Basic Information page to obtain the organization ID.

Product

Resource

Required permission

Organization Management

Automation scheduled tasks

Read-only

Request syntax

Central edition

GET https://{domain}/oapi/v1/platform/organizations/{organizationId}/automation/scheduled-tasks:capabilities

Region edition

GET https://{domain}/oapi/v1/platform/automation/scheduled-tasks:capabilities

Request headers

Parameter

Type

Required

Description

Example value

x-yunxiao-token

string

Yes

Personal access token.

pt-0fh3****0fbG_35af****0484

Request parameters

Parameter

Type

Location

Required

Description

Example value

organizationId

string

path

  • Yes: Central edition

  • No: Region edition

Organization ID.

Request examples

Central edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/platform/organizations/{organizationId}/automation/scheduled-tasks:capabilities' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Region edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/platform/automation/scheduled-tasks:capabilities' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response parameters

Parameter

Type

Description

Example value

-

object

aiAvailable

boolean

Indicates whether the current deployment provides the AI execution action (starops.execute_ai). It is a mandatory prerequisite for creating or editing event tasks.

channels

array

Availability of each delivery channel in the current deployment. This is the sole basis for rendering channel check boxes.

-

object

available

boolean

Indicates whether the channel is available to the current organization and current user.

true

displayName

string

Channel display name.

Email

key

string

Channel identifier. Valid values: mail, dingtalk.

mail

unavailableReason

string

Reason why available=false. It may be omitted in earlier versions; callers should fall back to a generic unavailable message. Valid values: deployment_not_supported, organization_not_configured, organization_notification_disabled, organization_notification_misconfigured, current_user_not_bound.

deployment_not_supported

manualTrigger

boolean

Indicates whether a single run can be triggered manually.

true

models

array

The catalog of available AI models (excluding Auto). If this field is omitted, model selection is not enabled for the current deployment. An empty array indicates that only Auto is supported.

-

object

displayName

string

Qwen 3.8-Max

modelId

string

qwen3.8-max

provider

string

qwen

providerName

string

Qwen

Response example

{
    "aiAvailable": false,
    "channels": [
        {
            "available": true,
            "displayName": "Email",
            "key": "mail",
            "unavailableReason": "deployment_not_supported"
        }
    ],
"manualTrigger": true,
    "models": [
        {
            "displayName": "Qwen 3.8-Max",
            "modelId": "qwen3.8-max",
            "provider": "qwen",
            "providerName": "Qwen"
        }
    ]
}

Error codes

For API error codes, see the Error Code Center.