CreateWorkflow

Creates a workflow for a file/directory

Input Parameter Type Description
Token* String Security token
FileserverName String nmsa
Type String post, immediateemail, dailyemail or weeklyemail
Path String path to the file or directory
Url Uri when using post, the url we post to
Headers String[] list of headers to send to the Uri when posting
SuccessFileserverName String name of the Vault to run the SuccessType on
SuccessType String action to take on successful post, can be move or copy
SuccessPath String path to copy or move to on successful post
FailFileserverName String name of the Vault to run the FailedType on
FailType String action to take on failed post, can be move or copy
FailPath String path to copy or move to on failed post
Output Parameter Type Description
Success Boolean True or false

*=required

CURL EXAMPLE

Creating a move workflow:
curl -v 'https://example.com/storage/api.php??Task=CreateWorkflow&Type=POST&FileserverName=nmsa980676080100&Path=/workflow&Url=https://example.com/workflow.php&SuccessType=move&SuccessPath=/ok&FailType=move&FailPath=failed&Token=52f7f033-0b7d-e682-7305-7039f8b93a33'

Creating an immediateemail workflow:
curl -v 'https://example.com/storage/api.php??Task=CreateWorkflow&Type=immediateemail&FileserverName=nmsa980676080100&Path=/email&Token=52f7f033-0b7d-e682-7305-7039f8b93a33'

RESPONSE
<Response>
    <Status>1</Status>
    <Message></Message>
</Response>