POST api/admin/v{version}/companies

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

string

None.

Body Parameters

Company
NameDescriptionTypeAdditional information
id

integer

None.

name

string

None.

api_Key

string

None.

enabled

integer

None.

docscanner

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "name": "sample string 2",
  "api_Key": "sample string 3",
  "enabled": 4,
  "docscanner": 5
}

text/html

Sample:
{"id":1,"name":"sample string 2","api_Key":"sample string 3","enabled":4,"docscanner":5}

application/xml, text/xml

Sample:
<Company xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DispatchITV2.Models.Data">
  <api_Key>sample string 3</api_Key>
  <docscanner>5</docscanner>
  <enabled>4</enabled>
  <id>1</id>
  <name>sample string 2</name>
</Company>

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

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json, text/html

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />