POST /hub/v1/workflowitems/{workflowItemId}/roles/{workflowRoleI...

Creates a user role to assign to a workflow role.

URL Parameters

Name Type Description
workflowRoleInstanceId string Required Id of the workflow role instance.
workflowItemId string Required Id of the workflow item

JSON Parameters

Name Type Description
userId string Required Id of the user to be added
userName string Required Username of the user to be added

Responses

Status Name Type Description
200     Response contains a list of workflow teams just created.
  workflowRoleInstanceUserId string Id of the newly created record in WorkflowRoleInstanceUser table
  workflowItemId string Id of the workflow item
  workflowRoleInstanceId string Id of the WorkflowRoleInstance record
  userId string Id of the user
  memberId string MID the user belongs to
  enterpriseId string EID the user’s MID belongs to
  modifiedBy string MemberId that created the record
       
400     400 Bad Request
  message string UserId is required.
  errorcode string Error code for the exception (10002)
       
403     403 Unauthorized
  message string Insufficient Privileges.
  errorcode string Error code for the exception (20002)
       
404     404 Not Found
  message string The UserId doesn’t exist, so the role user can’t be added.
  errorcode string Error code for the exception (30003)