POST api/Company/Save

Request Information

URI Parameters

None.

Body Parameters

CustomCompany
NameDescriptionTypeAdditional information
CompanyId

integer

None.

CompanyCode

string

None.

CompanyCodeWithName

string

None.

NameTh

string

None.

NameEn

string

None.

AddressTh

string

None.

AddressEn

string

None.

Tel

string

None.

Fax

string

None.

UrlWeb

string

None.

UrlLogo

string

None.

IsActive

boolean

None.

CreatedBy

string

None.

CreatedDate

string

None.

ModifiedBy

string

None.

ModifiedDate

string

None.

userPrincipalName

string

None.

connectionString

string

None.

SecretId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CompanyId": 1,
  "CompanyCode": "sample string 1",
  "CompanyCodeWithName": "sample string 1 : sample string 2",
  "NameTh": "sample string 2",
  "NameEn": "sample string 3",
  "AddressTh": "sample string 4",
  "AddressEn": "sample string 5",
  "Tel": "sample string 6",
  "Fax": "sample string 7",
  "UrlWeb": "sample string 8",
  "UrlLogo": "sample string 9",
  "IsActive": true,
  "CreatedBy": "sample string 10",
  "CreatedDate": "sample string 11",
  "ModifiedBy": "sample string 12",
  "ModifiedDate": "sample string 13",
  "userPrincipalName": "sample string 14",
  "connectionString": "sample string 15",
  "SecretId": null
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'System.Security.Cryptography.CryptoStream' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'System.Security.Cryptography.CryptoStream' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

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

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.