PUT api/Customers/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

Body Parameters

CUserEditViewModel
NameDescriptionTypeAdditional information
userInstanceId

globally unique identifier

Required

userId

globally unique identifier

Required

organizationId

globally unique identifier

Required

prefix

string

Max length: 20

firstName

string

Required

Max length: 35

lastName

string

Required

Max length: 35

suffix

string

Max length: 20

email

string

Max length: 100

title

string

Max length: 50

faxNumber

string

Max length: 20

crmId

string

Max length: 15

canLogin

boolean

None.

canOrder

boolean

None.

isAdmin

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "userInstanceId": "aefca55d-818f-4d32-98f6-58db677ef140",
  "userId": "417d07d3-97d4-4d53-b882-47db5236430e",
  "organizationId": "ffee601a-327c-4fc2-82fb-59590d27b9e1",
  "prefix": "sample string 4",
  "firstName": "sample string 5",
  "lastName": "sample string 6",
  "suffix": "sample string 7",
  "email": "sample string 8",
  "title": "sample string 9",
  "faxNumber": "sample string 10",
  "crmId": "sample string 11",
  "canLogin": true,
  "canOrder": true,
  "isAdmin": true
}

application/xml, text/xml

Sample:
<CUserEditViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Portal.UI.Models">
  <canLogin>true</canLogin>
  <canOrder>true</canOrder>
  <crmId>sample string 11</crmId>
  <email>sample string 8</email>
  <faxNumber>sample string 10</faxNumber>
  <firstName>sample string 5</firstName>
  <isAdmin>true</isAdmin>
  <lastName>sample string 6</lastName>
  <organizationId>ffee601a-327c-4fc2-82fb-59590d27b9e1</organizationId>
  <prefix>sample string 4</prefix>
  <suffix>sample string 7</suffix>
  <title>sample string 9</title>
  <userId>417d07d3-97d4-4d53-b882-47db5236430e</userId>
  <userInstanceId>aefca55d-818f-4d32-98f6-58db677ef140</userInstanceId>
</CUserEditViewModel>

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

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.