Use this to delete a task variable.
Authorization
An authenticated user can only delete a task variable if the authenticated user has started the process or if the user is involved in any of the process’s tasks.
If networks are enabled, the authenticated user can delete variables inside their network.
In non-network deployments, administrators can see all variables and perform all operations on variables. In network deployments, network administrators can see all variables in their network and perform all operations on variables in their network.
Method
Using the HTTP DELETE method:-
taskss/<taskId>/variables/<variableName>
Example request URL
https://api.alfresco.com/yourcompany.com/public/workflow/versions/1/tasks/153/variables/bpm:priority
Response
- If the request is successful the variable is removed and an HTTP No Content (status 204) is returned.
- If the taskId does not exist in this network, an HTTP Not Found (status 404) is returned.
- If the variableName does not exist for this taskId, an HTTP Not Found (status 404) is returned.