POST api/workplan/{id}/tasks/{taskid}/updateassignments

Add, Update or remove assignments from the given task in a plan. The list of resource given needs to be a complete/up-to-date list from the requesting system. Support: If resource is not found in current list of assignments, it will be added If resource does not exist in the request list, it will be removed from the current assignments list If request list is empty, all assignments will be removed

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

taskid

globally unique identifier

Required

Body Parameters

Collection of AssignmentRequest
NameDescriptionTypeAdditional information
UserId

globally unique identifier

None.

Unit

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "UserId": "a819fa7f-0a74-4ccb-9945-00ffccedba1d",
    "Unit": 2
  },
  {
    "UserId": "a819fa7f-0a74-4ccb-9945-00ffccedba1d",
    "Unit": 2
  }
]

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.