POST Customers/Extended

Creates a new Customer

Request Information

URI Parameters

None.

Body Parameters

The new customer

InputCustomerExtendedModel
NameDescriptionTypeAdditional information
MaxCompletesAllowed

integer

None.

MinIncidenceRate

integer

None.

MaxLengthOfInterview

integer

None.

MaxDaysInField

integer

None.

IsRTSChannelEnabled

boolean

None.

IsSkipTestingEnabled

boolean

None.

Name

string

Required

Max length: 128

ParentCustomerID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "MaxCompletesAllowed": 1,
  "MinIncidenceRate": 1,
  "MaxLengthOfInterview": 1,
  "MaxDaysInField": 1,
  "IsRTSChannelEnabled": true,
  "IsSkipTestingEnabled": true,
  "Name": "sample string 3",
  "ParentCustomerID": 1
}

text/html

Sample:
{"MaxCompletesAllowed":1,"MinIncidenceRate":1,"MaxLengthOfInterview":1,"MaxDaysInField":1,"IsRTSChannelEnabled":true,"IsSkipTestingEnabled":true,"Name":"sample string 3","ParentCustomerID":1}

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">
  <Name>sample string 3</Name>
  <ParentCustomerID>1</ParentCustomerID>
  <IsRTSChannelEnabled>true</IsRTSChannelEnabled>
  <IsSkipTestingEnabled>true</IsSkipTestingEnabled>
  <MaxCompletesAllowed>1</MaxCompletesAllowed>
  <MaxDaysInField>1</MaxDaysInField>
  <MaxLengthOfInterview>1</MaxLengthOfInterview>
  <MinIncidenceRate>1</MinIncidenceRate>
</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
ChildCustomers

Collection of OutputCustomerExtendedModel

None.

CustomerID

integer

Required

IsDisabled

boolean

None.

MaxCompletesAllowed

integer

None.

MinIncidenceRate

integer

None.

MaxLengthOfInterview

integer

None.

MaxDaysInField

integer

None.

IsRTSChannelEnabled

boolean

None.

IsSkipTestingEnabled

boolean

None.

Name

string

Required

Max length: 128

ParentCustomerID

integer

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'Toluna.TEF.Common.ViewModels.Authentication.OutputCustomerExtendedModel'. Path 'ChildCustomers'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'Toluna.TEF.Common.ViewModels.Authentication.OutputCustomerExtendedModel'. Path 'ChildCustomers'.

text/html

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/html'. Exception message: Self referencing loop detected with type 'Toluna.TEF.Common.ViewModels.Authentication.OutputCustomerExtendedModel'. Path 'ChildCustomers'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[Toluna.TEF.Common.ViewModels.Authentication.OutputCustomerExtendedModel, Toluna.TEF.Common, Version=2.9.231.0, Culture=neutral, PublicKeyToken=4e91e76674745180]]' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[Toluna.TEF.Common.ViewModels.Authentication.OutputCustomerExtendedModel, Toluna.TEF.Common, Version=2.9.231.0, Culture=neutral, PublicKeyToken=4e91e76674745180]]' contains cycles and cannot be serialized if reference tracking is disabled.

application/bson

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