View all methods
workflows.delete
Note: This method is only available to Fabric customers.
Delete a Self Service Workflow. Its parameters, approvers, runners, and past workflow runs are deleted along with it. This cannot be undone.
When called with a personal access token, the issuing user must be a Self-Service Admin. Organization tokens with the workflows:manage scope are also accepted.
See the workflows.list method to list existing workflows.
Facts
| Method | POST https://api.getdx.com/workflows.delete |
| Required scope | workflows:manage |
Arguments
Required arguments
| Name | Type | Description |
|---|---|---|
token |
Token |
Auth token passed as an HTTP header. |
identifier |
Text |
Identifier of the workflow to delete. |
Example request
This is a typical request:
curl -X POST https://api.getdx.com/workflows.delete \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer xxxx-xxxxxxxxx-xxxx' \
--data '{
"identifier": "provision-single-tenant-instance"
}'
Example response
This is a typical success response.
{
"ok": true
}
Errors
This table lists the expected errors that this method could return. However, other errors can be returned in the case where the service is down or other unexpected factors affect processing. Callers should always check the value of the ok param in the response.
| Error | Description |
|---|---|
not_authed |
No authentication token provided. |
invalid_auth |
Some aspect of authentication cannot be validated. |
not_authorized |
The token lacks the workflows:manage scope, or the personal access token’s user is not a Self-Service Admin. |
missing_content_type |
A request body was sent without a Content-Type header. |
invalid_json |
The request body is not valid JSON. |
Missing required parameter: <name> |
identifier was not provided. |
workflow_not_found |
No workflow with this identifier exists in your account. Returned with HTTP status 404. |