POST api/Position/Save

Request Information

URI Parameters

None.

Body Parameters

CustomPosition
NameDescriptionTypeAdditional information
PositionId

integer

None.

NameTh

string

None.

NameEn

string

None.

PositionLevelId

integer

None.

IsActive

boolean

None.

CreatedDate

string

None.

CreatedBy

string

None.

ModifiedDate

string

None.

ModifiedBy

string

None.

PositionLevelNameTh

string

None.

PositionLevelNameEn

string

None.

PositionLevel

decimal number

None.

CompanyCode

string

None.

userPrincipalName

string

None.

connectionString

string

None.

SecretId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PositionId": 1,
  "NameTh": "sample string 1",
  "NameEn": "sample string 2",
  "PositionLevelId": 1,
  "IsActive": true,
  "CreatedDate": "sample string 4",
  "CreatedBy": "sample string 5",
  "ModifiedDate": "sample string 6",
  "ModifiedBy": "sample string 7",
  "PositionLevelNameTh": "sample string 8",
  "PositionLevelNameEn": "sample string 9",
  "PositionLevel": 1.0,
  "CompanyCode": "sample string 10",
  "userPrincipalName": "sample string 11",
  "connectionString": "sample string 12",
  "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 'CustomPosition'.

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.