POST api/SelfAssessmentAndTraining/SaveAcceptTraining

Request Information

URI Parameters

None.

Body Parameters

SaveAcceptTrainingEntity
NameDescriptionTypeAdditional information
AssignTraingID

integer

None.

ID

integer

None.

Interested

boolean

None.

UserID

integer

None.

Token

string

None.

Year

integer

None.

Language

string

None.

Remarks

string

None.

Request Formats

application/json, text/json

Sample:
{
  "AssignTraingID": 1,
  "ID": 2,
  "Interested": true,
  "UserID": 4,
  "Token": "sample string 5",
  "Year": 6,
  "Language": "sample string 7",
  "Remarks": "sample string 8"
}

text/html

Sample:
{"AssignTraingID":1,"ID":2,"Interested":true,"UserID":4,"Token":"sample string 5","Year":6,"Language":"sample string 7","Remarks":"sample string 8"}

application/xml, text/xml

Sample:
<SelfAssessmentAndTrainingController.SaveAcceptTrainingEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HR2Eazy_WebApi.Controllers">
  <AssignTraingID>1</AssignTraingID>
  <ID>2</ID>
  <Interested>true</Interested>
  <Language>sample string 7</Language>
  <Remarks>sample string 8</Remarks>
  <Token>sample string 5</Token>
  <UserID>4</UserID>
  <Year>6</Year>
</SelfAssessmentAndTrainingController.SaveAcceptTrainingEntity>

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

Response Information

Resource Description

Dictionary of Object [key] and Object [value]

Response Formats

application/json, text/json, text/html

Sample:
{"System.Object":{},"System.Object":{}}

application/xml, text/xml

Sample:
<ArrayOfKeyValueOfanyTypeanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <KeyValueOfanyTypeanyType>
    <Key />
    <Value />
  </KeyValueOfanyTypeanyType>
  <KeyValueOfanyTypeanyType>
    <Key />
    <Value />
  </KeyValueOfanyTypeanyType>
</ArrayOfKeyValueOfanyTypeanyType>