POST api/companyadmins/Add?Status={Status}

Add Company Admin Details (Status Value is True or False)

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Status

string

Required

Body Parameters

UserDetailsObject
NameDescriptionTypeAdditional information
ID

For Edit mode set value otherwise set = 0

Object

None.

FirstName

FirstName is required

Object

None.

LastName

LastName is required

Object

None.

CompanyName

Set default value = {}(NULL) Otherwise set CompanyName

Object

None.

Email

Email is required

Object

None.

Phone

Set default value = ""(Blank) Otherwise set Phone

Object

None.

WebSite

Set default value = ""(Blank) Otherwise set WebSite

Object

None.

Region

Set default value = ""(Blank) Otherwise set Region

Object

None.

Address1

Set default value = ""(Blank) Otherwise set Address1

Object

None.

Address2

Set default value = ""(Blank) Otherwise set Address2

Object

None.

City

Set default value = ""(Blank) Otherwise set City

Object

None.

State

Set default value = ""(Blank) Otherwise set State

Object

None.

Country

Set default value = ""(Blank) Otherwise set Country

Object

None.

ZipCode

Set default value = ""(Blank) Otherwise set ZipCode

Object

None.

DistributorID

Set default value = ""(Blank) Otherwise set DistributorID

Object

None.

TimezoneID

Set default value = "0" Otherwise set TimezoneID

Object

None.

UnitType

UnitType is required. Set value = 0 (Metric) or 1 (Imperial)

Object

None.

UnitSubType

Object

None.

Photo

Set default value = ""(Blank) Otherwise set Photo

Object

None.

ManagedDistributors

Set default value = { }(NULL) Otherwise set ManagedDistributors

Object

None.

ManagedCustomers

Set default value = { }(NULL) Otherwise set ManagedCustomers

Object

None.

CompanyRole

Set default value = { }(NULL) Otherwise set CompanyRole

Object

None.

DeviceDetails

Set default value = { }(NULL) Otherwise set DeviceDetails

Object

None.

SmsEnabled

Object

None.

CompanyDomain

Object

None.

DeviceSchedule

Set default value = { }(NULL) Otherwise set DeviceSchedule

Object

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": {},
  "FirstName": {},
  "LastName": {},
  "CompanyName": {},
  "Email": {},
  "Phone": {},
  "WebSite": {},
  "Region": {},
  "Address1": {},
  "Address2": {},
  "City": {},
  "State": {},
  "Country": {},
  "ZipCode": {},
  "DistributorID": {},
  "TimezoneID": {},
  "UnitType": {},
  "UnitSubType": {},
  "Photo": {},
  "ManagedDistributors": {},
  "ManagedCustomers": {},
  "CompanyRole": {},
  "DeviceDetails": {},
  "SmsEnabled": {},
  "CompanyDomain": {},
  "CreatedBy": {},
  "DeviceSchedule": {},
  "CreatedDateTime": {},
  "CreatedIp": {},
  "ModifiedBy": {},
  "ModifiedDateTime": {},
  "ModifiedIp": {}
}

application/xml, text/xml

Sample:
<UserDetailsObject xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StrategicAlliance">
  <Address1 />
  <Address2 />
  <City />
  <CompanyDomain />
  <CompanyName />
  <CompanyRole />
  <Country />
  <CreatedBy />
  <CreatedDateTime />
  <CreatedIp />
  <DeviceDetails />
  <DeviceSchedule />
  <DistributorID />
  <Email />
  <FirstName />
  <ID />
  <LastName />
  <ManagedCustomers />
  <ManagedDistributors />
  <ModifiedBy />
  <ModifiedDateTime />
  <ModifiedIp />
  <Phone />
  <Photo />
  <Region />
  <SmsEnabled />
  <State />
  <TimezoneID />
  <UnitSubType />
  <UnitType />
  <WebSite />
  <ZipCode />
</UserDetailsObject>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.