Darwiin04
Darwiin04

Reputation: 23

Alfresco REST Api add Task

I am developing a java web application to manage Alfresco users and tasks (create and assign tasks to users ..) using rest api , i couldn't add tasks with POST method as shown in this picture : enter image description here

Can anyone please suggest how to handle this.

Thanks.

Upvotes: 0

Views: 230

Answers (2)

Akah
Akah

Reputation: 1920

You're not calling the right method, this url only accepts GET.

You can use all theses methods : https://api-explorer.alfresco.com/api-explorer/#/tasks, but I don't see one permitting to create a task. I think this is because creating a task is not logic.

Maybe what you want to do is to create a process : https://api-explorer.alfresco.com/api-explorer/#!/processes/createProcess

If you don't find what you need, you still have the option to create your own webscript https://docs.alfresco.com/5.2/tasks/ws-tutorials.html.

Upvotes: 2

Oussama Werfelli
Oussama Werfelli

Reputation: 513

As @Akah said, it's not the right service, also, you can find all deployed services in your Alfresco instance with there descriptions on http://localhost:8081/alfresco/service/index/all

Upvotes: 0

Related Questions