PUT Customers

Updates a Customer

Request Information

URI Parameters

None.

Body Parameters

The Customer information to update

UpdateCustomerModel
NameDescriptionTypeAdditional information
CustomerID

integer

Required

IsDisabled

boolean

Required

Name

string

Required

Max length: 128

TimeZone

TimeZoneModel

Required

Request Formats

application/json, text/json, text/html

Sample:
{
  "CustomerID": 1,
  "IsDisabled": true,
  "Name": "sample string 3",
  "TimeZone": {
    "Id": "sample string 1",
    "BaseUtcOffset": "00:00:00.1234567",
    "DisplayName": "sample string 3",
    "TranslationKey_Name": "TEF_TimeZone_samplestring3"
  }
}

application/xml, text/xml

Sample:
<UpdateCustomerModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.Authentication.Customer">
  <Name>sample string 3</Name>
  <TimeZone xmlns:d2p1="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.Common">
    <d2p1:BaseUtcOffset>PT0.1234567S</d2p1:BaseUtcOffset>
    <d2p1:DisplayName>sample string 3</d2p1:DisplayName>
    <d2p1:Id>sample string 1</d2p1:Id>
  </TimeZone>
  <CustomerID>1</CustomerID>
  <IsDisabled>true</IsDisabled>
</UpdateCustomerModel>

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

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

An awaitable task

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.