Surense icon

Surense

Interact with Surense API

Workflow → Delete a Workflow

AI-generated

Overview

This node integrates with the Surense API to perform various operations on different resources. Specifically, for the "Workflow" resource and the "Delete a Workflow" operation, it allows users to delete an existing workflow by specifying its unique identifier (UUID). This is useful in automation scenarios where workflows need to be programmatically removed based on certain conditions or triggers, such as cleaning up outdated processes or managing workflow lifecycle dynamically.

Example use cases:

  • Automatically deleting workflows that are no longer needed after completion.
  • Removing test or temporary workflows created during development or testing phases.
  • Managing workflows in bulk by iterating over a list of workflow IDs and deleting them.

Properties

Name Meaning
מזהה תהליך The unique identifier (UUID) of the workflow to delete. Example: 123e4567-e89b-12d3-a456-426614174000

Output

The node outputs JSON data representing the result of the delete operation for each input item. Typically, this will include confirmation of deletion or any error messages if the deletion failed. The exact structure depends on the Surense API response but generally includes status information about the deleted workflow.

No binary data output is expected from this operation.

Dependencies

  • Requires an active connection to the Surense API via an OAuth2 authentication credential.
  • The node depends on the Surense API being accessible and the provided API key/token having sufficient permissions to delete workflows.
  • Pagination fields and other helper methods are available but not directly relevant to the delete operation.

Troubleshooting

  • Common issues:

    • Invalid or malformed workflow ID (not a valid UUID) will cause the operation to fail.
    • Insufficient permissions or expired API credentials can lead to authorization errors.
    • Network connectivity problems may prevent communication with the Surense API.
  • Error messages:

    • "error": "Workflow not found" — The specified workflow ID does not exist; verify the ID.
    • "error": "Unauthorized" — Check that the API credentials are valid and have delete permissions.
    • "error": "Invalid UUID format" — Ensure the workflow ID is correctly formatted as a UUID.
  • Resolution tips:

    • Double-check the workflow ID input for correctness.
    • Refresh or reconfigure API credentials if authorization fails.
    • Verify network access to the Surense API endpoint.

Links and References

Discussion