POST api/v1/companies

Request Information

URI Parameters

None.

Body Parameters

Collection of CreateCompanyModel
NameDescriptionTypeAdditional information
Id

integer

None.

CompanyName

string

Required

String length: inclusive between 0 and 500

PartnerCompanyId

string

Required

PartnerClientId

string

None.

OptinCaseAnalytics

boolean

Required

EmployeeQuantity

integer

Required

Range: inclusive between 1 and 2147483647

CustomLogoPath

string

None.

IsDemo

boolean

None.

IsARStandard

boolean

None.

IsClientsCompany

boolean

None.

ExpiryDate

string

None.

ParentAccessLevel

integer

None.

AllowClientUntie

boolean

None.

Locations

Collection of Location

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "CompanyName": "sample string 2",
    "PartnerCompanyId": "sample string 3",
    "PartnerClientId": "sample string 4",
    "OptinCaseAnalytics": true,
    "EmployeeQuantity": 6,
    "CustomLogoPath": "sample string 7",
    "IsDemo": true,
    "IsARStandard": true,
    "IsClientsCompany": true,
    "ExpiryDate": "sample string 11",
    "ParentAccessLevel": 1,
    "AllowClientUntie": true,
    "Locations": [
      {
        "Location_nm": "sample string 1"
      },
      {
        "Location_nm": "sample string 1"
      }
    ]
  },
  {
    "Id": 1,
    "CompanyName": "sample string 2",
    "PartnerCompanyId": "sample string 3",
    "PartnerClientId": "sample string 4",
    "OptinCaseAnalytics": true,
    "EmployeeQuantity": 6,
    "CustomLogoPath": "sample string 7",
    "IsDemo": true,
    "IsARStandard": true,
    "IsClientsCompany": true,
    "ExpiryDate": "sample string 11",
    "ParentAccessLevel": 1,
    "AllowClientUntie": true,
    "Locations": [
      {
        "Location_nm": "sample string 1"
      },
      {
        "Location_nm": "sample string 1"
      }
    ]
  }
]

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 'List`1'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.