POST Customers

Creates a new Customer

Request Information

URI Parameters

None.

Body Parameters

The new customer

InputCustomerModel
NameDescriptionTypeAdditional information
ParentCustomerID

integer

None.

Name

string

Required

Max length: 128

TimeZone

TimeZoneModel

Required

Request Formats

application/json, text/json, text/html

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

application/xml, text/xml

Sample:
<InputCustomerModel 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 1</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>
  <ParentCustomerID>1</ParentCustomerID>
</InputCustomerModel>

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

application/bson

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

Response Information

Resource Description

The model of the newly-created Customer

OutputCustomerModel
NameDescriptionTypeAdditional information
CustomerID

integer

None.

ParentCustomerID

integer

None.

IsDisabled

boolean

None.

ChildCustomers

Collection of OutputCustomerModel

None.

ReportingUserName

string

None.

TableauUserName

string

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.