PUT api/Company/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

ShortCompany
NameDescriptionTypeAdditional information
id

integer

None.

name

string

None.

address1

string

None.

address2

string

None.

city

string

None.

state

string

None.

stateId

integer

None.

zip

string

None.

notes

string

None.

parentId

integer

None.

IsActive

boolean

None.

billingContact

string

None.

billingAddress1

string

None.

billingAddress2

string

None.

billingCity

string

None.

billingState

string

None.

billingStateId

integer

None.

billingZip

string

None.

billingEmail

string

None.

billingPhone

string

None.

coExpireDays

integer

None.

billingType

string

None.

clientCode

string

None.

salesCode

string

None.

needsAuthorization

boolean

None.

systemExpireDays

integer

None.

surveyIds

Collection of integer

None.

CoTypeID

integer

None.

RptLvlAmt

Collection of integer

None.

RptLvlDesc

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "name": "sample string 2",
  "address1": "sample string 3",
  "address2": "sample string 4",
  "city": "sample string 5",
  "state": "sample string 6",
  "stateId": 7,
  "zip": "sample string 8",
  "notes": "sample string 9",
  "parentId": 1,
  "IsActive": true,
  "billingContact": "sample string 11",
  "billingAddress1": "sample string 12",
  "billingAddress2": "sample string 13",
  "billingCity": "sample string 14",
  "billingState": "sample string 15",
  "billingStateId": 16,
  "billingZip": "sample string 17",
  "billingEmail": "sample string 18",
  "billingPhone": "sample string 19",
  "coExpireDays": 20,
  "billingType": "sample string 21",
  "clientCode": "sample string 22",
  "salesCode": "sample string 23",
  "needsAuthorization": true,
  "systemExpireDays": 25,
  "surveyIds": [
    1,
    2
  ],
  "CoTypeID": 1,
  "RptLvlAmt": [
    1,
    2
  ],
  "RptLvlDesc": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<ShortCompany xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AutoRefCheck.Data">
  <CoTypeID>1</CoTypeID>
  <IsActive>true</IsActive>
  <RptLvlAmt xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </RptLvlAmt>
  <RptLvlDesc xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </RptLvlDesc>
  <address1>sample string 3</address1>
  <address2>sample string 4</address2>
  <billingAddress1>sample string 12</billingAddress1>
  <billingAddress2>sample string 13</billingAddress2>
  <billingCity>sample string 14</billingCity>
  <billingContact>sample string 11</billingContact>
  <billingEmail>sample string 18</billingEmail>
  <billingPhone>sample string 19</billingPhone>
  <billingState>sample string 15</billingState>
  <billingStateId>16</billingStateId>
  <billingType>sample string 21</billingType>
  <billingZip>sample string 17</billingZip>
  <city>sample string 5</city>
  <clientCode>sample string 22</clientCode>
  <coExpireDays>20</coExpireDays>
  <id>1</id>
  <name>sample string 2</name>
  <needsAuthorization>true</needsAuthorization>
  <notes>sample string 9</notes>
  <parentId>1</parentId>
  <salesCode>sample string 23</salesCode>
  <state>sample string 6</state>
  <stateId>7</stateId>
  <surveyIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </surveyIds>
  <systemExpireDays>25</systemExpireDays>
  <zip>sample string 8</zip>
</ShortCompany>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.