POST Customers/Extended

Creates a new Customer

Request Information

URI Parameters

None.

Body Parameters

The new customer

InputCustomerExtendedModel
NameDescriptionTypeAdditional information
ParentCustomerID

integer

None.

MaxCompletesAllowed

integer

None.

MinIncidenceRate

integer

None.

MaxLengthOfInterview

integer

None.

MaxDaysInField

integer

None.

IsRTSChannelEnabled

boolean

None.

IsSkipTestingEnabled

boolean

None.

PhoneNumber

string

None.

WebSite

string

None.

City

string

None.

PostalCode

string

None.

StateProvinceID

integer

None.

CountryID

integer

None.

Name

string

Required

Max length: 128

TimeZone

TimeZoneModel

Required

Request Formats

application/json, text/json, text/html

Sample:
{
  "ParentCustomerID": 1,
  "MaxCompletesAllowed": 1,
  "MinIncidenceRate": 1,
  "MaxLengthOfInterview": 1,
  "MaxDaysInField": 1,
  "IsRTSChannelEnabled": true,
  "IsSkipTestingEnabled": true,
  "PhoneNumber": "sample string 3",
  "WebSite": "sample string 4",
  "City": "sample string 5",
  "PostalCode": "sample string 6",
  "StateProvinceID": 1,
  "CountryID": 1,
  "Name": "sample string 7",
  "TimeZone": {
    "Id": "sample string 1",
    "BaseUtcOffset": "00:00:00.1234567",
    "DisplayName": "sample string 3",
    "TranslationKey_Name": "TEF_TimeZone_samplestring3"
  }
}

application/xml, text/xml

Sample:
<InputCustomerExtendedModel 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 7</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>
  <City>sample string 5</City>
  <CountryID>1</CountryID>
  <IsRTSChannelEnabled>true</IsRTSChannelEnabled>
  <IsSkipTestingEnabled>true</IsSkipTestingEnabled>
  <MaxCompletesAllowed>1</MaxCompletesAllowed>
  <MaxDaysInField>1</MaxDaysInField>
  <MaxLengthOfInterview>1</MaxLengthOfInterview>
  <MinIncidenceRate>1</MinIncidenceRate>
  <PhoneNumber>sample string 3</PhoneNumber>
  <PostalCode>sample string 6</PostalCode>
  <StateProvinceID>1</StateProvinceID>
  <WebSite>sample string 4</WebSite>
  <ParentCustomerID>1</ParentCustomerID>
</InputCustomerExtendedModel>

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

application/bson

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

Response Information

Resource Description

The model of the newly-created Customer

OutputCustomerExtendedModel
NameDescriptionTypeAdditional information
CustomerID

integer

None.

ParentCustomerID

integer

None.

IsDisabled

boolean

None.

ChildCustomers

Collection of OutputCustomerExtendedModel

None.

ReportingUserName

string

None.

TableauUserName

string

None.

MaxCompletesAllowed

integer

None.

MinIncidenceRate

integer

None.

MaxLengthOfInterview

integer

None.

MaxDaysInField

integer

None.

IsRTSChannelEnabled

boolean

None.

IsSkipTestingEnabled

boolean

None.

PhoneNumber

string

None.

WebSite

string

None.

City

string

None.

PostalCode

string

None.

StateProvinceID

integer

None.

CountryID

integer

None.

Name

string

Required

Max length: 128

TimeZone

TimeZoneModel

Required

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.