POST api/User

Creates a new User with the specified values



Request Information

Parameters

NameDescriptionAdditional information
value The User with the updated values.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "administrationGroups": [
    1,
    2,
    3
  ],
  "messages": [],
  "canChange": true,
  "cannotChangeReason": "sample string 2",
  "fullName": "sample string 3",
  "osUser": "sample string 4",
  "userId": "sample string 5"
}

application/xml, text/xml

Sample:
<User xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.Base.Edit">
  <AdministrationGroups xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:short>1</d2p1:short>
    <d2p1:short>2</d2p1:short>
    <d2p1:short>3</d2p1:short>
  </AdministrationGroups>
  <CanChange>true</CanChange>
  <CannotChangeReason>sample string 2</CannotChangeReason>
  <FullName>sample string 3</FullName>
  <Messages xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.Web.WebApi.Core.Models" />
  <OsUser>sample string 4</OsUser>
  <UserId>sample string 5</UserId>
</User>

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 'UserProxy'.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "administrationGroups": [
    1,
    2,
    3
  ],
  "messages": [],
  "canChange": true,
  "cannotChangeReason": "sample string 2",
  "fullName": "sample string 3",
  "osUser": "sample string 4",
  "userId": "sample string 5"
}

application/xml, text/xml

Sample:
<User xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.Base.Edit">
  <AdministrationGroups xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:short>1</d2p1:short>
    <d2p1:short>2</d2p1:short>
    <d2p1:short>3</d2p1:short>
  </AdministrationGroups>
  <CanChange>true</CanChange>
  <CannotChangeReason>sample string 2</CannotChangeReason>
  <FullName>sample string 3</FullName>
  <Messages xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.Web.WebApi.Core.Models" />
  <OsUser>sample string 4</OsUser>
  <UserId>sample string 5</UserId>
</User>