POST api/User

Request Information

URI Parameters

None.

Body Parameters

UserEdit
NameDescriptionTypeAdditional information
id

integer

None.

first

string

None.

last

string

None.

email

string

None.

roles

Collection of integer

None.

isActive

boolean

None.

address1

string

None.

address2

string

None.

city

string

None.

stateId

integer

None.

stateName

string

None.

zip

string

None.

organizations

Collection of integer

None.

sites

Collection of integer

None.

title

string

None.

phone

string

None.

salesforceId

string

None.

adminOrg

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "first": "sample string 1",
  "last": "sample string 2",
  "email": "sample string 3",
  "roles": [
    1,
    2
  ],
  "isActive": true,
  "address1": "sample string 5",
  "address2": "sample string 6",
  "city": "sample string 7",
  "stateId": 8,
  "stateName": "sample string 9",
  "zip": "sample string 10",
  "organizations": [
    1,
    2
  ],
  "sites": [
    1,
    2
  ],
  "title": "sample string 11",
  "phone": "sample string 12",
  "salesforceId": "sample string 13",
  "adminOrg": 14
}

application/xml, text/xml

Sample:
<UserEdit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IAN_QPSA.Models">
  <address1>sample string 5</address1>
  <address2>sample string 6</address2>
  <adminOrg>14</adminOrg>
  <city>sample string 7</city>
  <email>sample string 3</email>
  <first>sample string 1</first>
  <id>1</id>
  <isActive>true</isActive>
  <last>sample string 2</last>
  <organizations xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </organizations>
  <phone>sample string 12</phone>
  <roles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </roles>
  <salesforceId>sample string 13</salesforceId>
  <sites xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </sites>
  <stateId>8</stateId>
  <stateName>sample string 9</stateName>
  <title>sample string 11</title>
  <zip>sample string 10</zip>
</UserEdit>

application/x-www-form-urlencoded

Sample:

Sample not available.

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.