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

None.

Name

string

Required

Max length: 128

ParentCustomerID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomerID": 1,
  "IsDisabled": true,
  "Name": "sample string 3",
  "ParentCustomerID": 1
}

text/html

Sample:
{"CustomerID":1,"IsDisabled":true,"Name":"sample string 3","ParentCustomerID":1}

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">
  <Name>sample string 3</Name>
  <ParentCustomerID>1</ParentCustomerID>
  <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.