cancel
Showing results for 
Search instead for 
Did you mean: 

API - Create workflow and assign document

FabioVaprio
Champ in-the-making
Champ in-the-making

Hi,

I'm trying to create by API a new workflow and add it to a specific document.

I create workflow from the following API by a http POST call:

[Alfresco_inst]/api/-default-/public/workflow/versions/1/processes

With following parameters:

{
  "processDefinitionKey": "activitiParallelGroupReview",
  "variables": {
    "bpm_groupAssignee": "GROUP_g_acompetente",
    "bpm_sendEMailNotifications": true,
    "bpm_workflowPriority": 0,
    "bpm_workflowDescription": "Check this file please",
    "bpm_workflowDueDate": "2023-09-01"
  }
}

Which parameter I have to use to assign the workflow to an already uploaded document?

And, another question: is there a documentation page where all parameters are explained?

0 REPLIES 0