POST api/Forms/BulkUsers

Request Information

URI Parameters

None.

Body Parameters

Collection of UserFormRole
NameDescriptionTypeAdditional information
FormId

integer

None.

RoleId

integer

None.

UserId

string

None.

Role

Role

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "FormId": 1,
    "RoleId": 2,
    "UserId": "sample string 3",
    "Role": {
      "Id": 1,
      "Name": "sample string 2",
      "RoleId": "sample string 3",
      "Key": "sample string 4"
    }
  },
  {
    "FormId": 1,
    "RoleId": 2,
    "UserId": "sample string 3",
    "Role": {
      "Id": 1,
      "Name": "sample string 2",
      "RoleId": "sample string 3",
      "Key": "sample string 4"
    }
  }
]

application/xml, text/xml

Sample:
<ArrayOfUserFormRole xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DOMatchings.WebAPI.Models">
  <UserFormRole>
    <FormId>1</FormId>
    <Role>
      <Id>1</Id>
      <Key>sample string 4</Key>
      <Name>sample string 2</Name>
      <RoleId>sample string 3</RoleId>
    </Role>
    <RoleId>2</RoleId>
    <UserId>sample string 3</UserId>
  </UserFormRole>
  <UserFormRole>
    <FormId>1</FormId>
    <Role>
      <Id>1</Id>
      <Key>sample string 4</Key>
      <Name>sample string 2</Name>
      <RoleId>sample string 3</RoleId>
    </Role>
    <RoleId>2</RoleId>
    <UserId>sample string 3</UserId>
  </UserFormRole>
</ArrayOfUserFormRole>

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 'IEnumerable`1'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.