POST api/ProjectUsers/Sync

Request Information

URI Parameters

None.

Body Parameters

Collection of ProjectUserModel
NameDescriptionTypeAdditional information
id

string

None.

ProjectUserId

integer

None.

ProjectId

string

None.

UserId

string

None.

_removed

boolean

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "id": "sample string 1",
    "ProjectUserId": 2,
    "ProjectId": "sample string 3",
    "UserId": "sample string 4",
    "_removed": true
  },
  {
    "id": "sample string 1",
    "ProjectUserId": 2,
    "ProjectId": "sample string 3",
    "UserId": "sample string 4",
    "_removed": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfProjectUserModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HuntMillerElectric.Models.Projects">
  <ProjectUserModel>
    <ProjectId>sample string 3</ProjectId>
    <ProjectUserId>2</ProjectUserId>
    <UserId>sample string 4</UserId>
    <_removed>true</_removed>
    <id>sample string 1</id>
  </ProjectUserModel>
  <ProjectUserModel>
    <ProjectId>sample string 3</ProjectId>
    <ProjectUserId>2</ProjectUserId>
    <UserId>sample string 4</UserId>
    <_removed>true</_removed>
    <id>sample string 1</id>
  </ProjectUserModel>
</ArrayOfProjectUserModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'List`1'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.