Requirements, permissions, request and response fields, and error handling.
Request and permissions
DELETE https://openapi.qwenwork.ai/v1/scheduler/tasks/{id}
Authentication: Authorization: Bearer <access_token>. Use an access token obtained through user OAuth authorization.
Required business Scope: scheduler.task.delete
Authorization types declared in the contract: Organization authorization (organization) and personal authorization (personal).
The platform must enable the Scope for your application. The user must have the relevant business permissions and access to the target resource. Availability of personal and organization authorization for your application depends on its console configuration.
Behavior and limitations
Use a user OAuth token with scheduler.task.delete. Only user OAuth tokens are supported; application tokens and login sessions are not supported. The task is soft-deleted and removed from the cloud scheduling pool, so it no longer fires. Only the task owner can delete it. A nonexistent or deleted task returns 404. Identity parameters such as user_id and org_id, as well as query parameters, are not accepted.
Path parameters
| Parameter | Type | Required | Description and constraints |
|---|---|---|---|
id | string | Yes | Task ID (UUID). Format: "uuid" |
Request body
The public contract does not declare a request body. Do not add identity fields or undeclared business fields.
Success responses
Each business API retains its original response structure; no common code/msg/data wrapper is added.
HTTP 204
Success. No response body.
Error responses
| HTTP | Description and handling |
|---|---|
400 | Invalid task ID or request. |
401 | User credentials are invalid, expired, or of an unsupported type. |
403 | Missing scheduler.task.delete Scope, or the task does not belong to the current user. |
404 | The task does not exist or has been deleted. |
500 | Business processing failed. |
502 | Gateway upstream response failed. |
503 | Gateway or business dependency unavailable. |
504 | Request timed out. |
Complete field contract
The JSON below contains the complete request, response, and error schemas, nested constraints, and public extension definitions for this API. Copy it to verify the contract. Success examples not declared in the contract are not inferred.
Expand the complete OpenAPI JSON
Expand the complete OpenAPI JSON