REST API - workflows - Approve & Reject

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Active Member

REST API - workflows - Approve & Reject

Hello All

I am trying to implement a mobile app using Alfresco's REST API. So far I have been able to use the below end point to get a user's assigned tasks:

 

/alfresco/api/-default-/public/workflow/versions/1/tasks?where=(assignee='homer')

 

 

Now I am struggling with figuring out the API actions for Approve and Reject actions on a task. Would appreciate any help. I am getting the idea that I will have to update some 'variable' values, but I can't find any clear documentation on exactly what variables to set, if I am rejecting a task, and which variables to set when I am approving a task.

 

Thanks

Vipul

 

 

1 Reply
Highlighted
Moderator
Moderator

Re: REST API - workflows - Approve & Reject

I could not locate v1 workflow rest api in documentation and also not sure if there are v1 apis like one you provided to update tasks/instances etc.

However, have a look at repository rest apis and see if that works for you.

http://127.0.0.1:8080/alfresco/service/index/package/org/alfresco/repository/workflow

Workflow definitions can be found here: https://github.com/Alfresco/alfresco-remote-api/tree/master/src/main/resources/alfresco/templates/we...

This is an obselete doc but may be helpful: https://hub.alfresco.com/t5/alfresco-content-services-hub/workflow-rest-api/ba-p/290146#w_posttaskin...

~Abhinav
(ACSCE, AWS SAA-C02, GAIQ)