DeleteAutomationScheduledTask - Delete a scheduled task
Updated at:
Applicable editions | Central edition, Region edition |
Endpoints and authorization information
- Get the endpoint to replace {domain} in the request syntax.
- Get a personal access token.
- Get the organization ID. This parameter is required only for the Central edition. Go to the Basic Information page in the Organization Management console to obtain the organization ID.
Product | Resource | Required permission |
Organization Management | Automation scheduled tasks | Read/Write |
Request syntax
Central edition
DELETE https://{domain}/oapi/v1/platform/organizations/{organizationId}/automation/scheduled-tasks/{name}
Region edition
DELETE https://{domain}/oapi/v1/platform/automation/scheduled-tasks/{name}
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 |
| The organization ID. | |
name | string | path | Yes | The task name. |
Request examples
Central edition
curl -X 'DELETE' \
'https://{domain}/oapi/v1/platform/organizations/{organizationId}/automation/scheduled-tasks/{name}' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Region edition
curl -X 'DELETE' \
'https://{domain}/oapi/v1/platform/automation/scheduled-tasks/{name}' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Response parameters
Parameter | Type | Description | Example value |
- | object |
Response example
{
}
Error codes
For more information about API error codes, see the Error Code Center.
Is this page helpful?