Disabling the workflows

Deactivate a workflow within the specified project.

Procedure

  1. In a REST client platform, add the authentication details of the tenant that is associated with the workflow that you want to disable.
    
    //In case of Instance API key 
    Headers:
    {
    "x-instance-api-key": "instance_api_key"
    }
     
    // In case of MCSP or ISV token
    Headers:
    {
    "Authorization": "mcsp_or_isv_token"
    }
  2. Make a PUT request at the URL of the workflow.
    URL Syntax - <domain>/apis/v1/rest/projects/<project_name>/workflows/<workflow_name>/deactivate
    If the request is successful, you receive the response code for success.
    {
         "name": "<workflow_name>",
         "uid": "<workflow_uid>",
         "active": false
    }
    Note:
    • If multiple workflows share name, the API provides a list of all matching workflows, including their UIDs and names. You can then select the workflow UID from this list and use it in the URL path.
    • API calls are case-sensitive for project_name and workflow_name.
    • Only one state change (activation or deactivation) is allowed per request.