POST api/MainUsers/PostMainUser

Request Information

URI Parameters

None.

Body Parameters

MainUser
NameDescriptionTypeAdditional information
user_id

integer

None.

emprole

integer

None.

userstatus

string

None.

firstname

string

None.

lastname

string

None.

userfullname

string

None.

emailaddress

string

None.

contactnumber

string

None.

empipaddress

string

None.

backgroundchk_status

string

None.

emptemplock

integer

None.

empreasonlocked

string

None.

emplockeddate

date

None.

emppassword

string

None.

createdby

integer

None.

modifiedby

integer

None.

createddate

date

None.

modifieddate

date

None.

isactive

integer

None.

employeeId

integer

None.

project_id

integer

None.

client_id

integer

None.

actualEmployeeCode

string

None.

modeofentry

string

None.

other_modeofentry

string

None.

entrycomments

string

None.

rccandidatename

integer

None.

selecteddate

date

None.

candidatereferredby

integer

None.

company_id

integer

None.

profileimg

string

None.

jobtitle_id

integer

None.

tourflag

integer

None.

themes

string

None.

Request Formats

application/json, text/json

Sample:
{
  "user_id": 1,
  "emprole": 2,
  "userstatus": "sample string 3",
  "firstname": "sample string 4",
  "lastname": "sample string 5",
  "userfullname": "sample string 6",
  "emailaddress": "sample string 7",
  "contactnumber": "sample string 8",
  "empipaddress": "sample string 9",
  "backgroundchk_status": "sample string 10",
  "emptemplock": 1,
  "empreasonlocked": "sample string 11",
  "emplockeddate": "2019-06-18T01:46:37.197-04:00",
  "emppassword": "sample string 12",
  "createdby": 1,
  "modifiedby": 1,
  "createddate": "2019-06-18T01:46:37.197-04:00",
  "modifieddate": "2019-06-18T01:46:37.197-04:00",
  "isactive": 1,
  "employeeId": 13,
  "project_id": 1,
  "client_id": 1,
  "actualEmployeeCode": "sample string 14",
  "modeofentry": "sample string 15",
  "other_modeofentry": "sample string 16",
  "entrycomments": "sample string 17",
  "rccandidatename": 1,
  "selecteddate": "2019-06-18T01:46:37.197-04:00",
  "candidatereferredby": 1,
  "company_id": 1,
  "profileimg": "sample string 18",
  "jobtitle_id": 1,
  "tourflag": 1,
  "themes": "sample string 19"
}

text/html

Sample:
{"user_id":1,"emprole":2,"userstatus":"sample string 3","firstname":"sample string 4","lastname":"sample string 5","userfullname":"sample string 6","emailaddress":"sample string 7","contactnumber":"sample string 8","empipaddress":"sample string 9","backgroundchk_status":"sample string 10","emptemplock":1,"empreasonlocked":"sample string 11","emplockeddate":"2019-06-18T01:46:37.197-04:00","emppassword":"sample string 12","createdby":1,"modifiedby":1,"createddate":"2019-06-18T01:46:37.197-04:00","modifieddate":"2019-06-18T01:46:37.197-04:00","isactive":1,"employeeId":13,"project_id":1,"client_id":1,"actualEmployeeCode":"sample string 14","modeofentry":"sample string 15","other_modeofentry":"sample string 16","entrycomments":"sample string 17","rccandidatename":1,"selecteddate":"2019-06-18T01:46:37.197-04:00","candidatereferredby":1,"company_id":1,"profileimg":"sample string 18","jobtitle_id":1,"tourflag":1,"themes":"sample string 19"}

application/xml, text/xml

Sample:
<MainUser xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RtsDb.Service.Models">
  <actualEmployeeCode>sample string 14</actualEmployeeCode>
  <backgroundchk_status>sample string 10</backgroundchk_status>
  <candidatereferredby>1</candidatereferredby>
  <client_id>1</client_id>
  <company_id>1</company_id>
  <contactnumber>sample string 8</contactnumber>
  <createdby>1</createdby>
  <createddate>2019-06-18T01:46:37.197-04:00</createddate>
  <emailaddress>sample string 7</emailaddress>
  <empipaddress>sample string 9</empipaddress>
  <emplockeddate>2019-06-18T01:46:37.197-04:00</emplockeddate>
  <employeeId>13</employeeId>
  <emppassword>sample string 12</emppassword>
  <empreasonlocked>sample string 11</empreasonlocked>
  <emprole>2</emprole>
  <emptemplock>1</emptemplock>
  <entrycomments>sample string 17</entrycomments>
  <firstname>sample string 4</firstname>
  <isactive>1</isactive>
  <jobtitle_id>1</jobtitle_id>
  <lastname>sample string 5</lastname>
  <modeofentry>sample string 15</modeofentry>
  <modifiedby>1</modifiedby>
  <modifieddate>2019-06-18T01:46:37.197-04:00</modifieddate>
  <other_modeofentry>sample string 16</other_modeofentry>
  <profileimg>sample string 18</profileimg>
  <project_id>1</project_id>
  <rccandidatename>1</rccandidatename>
  <selecteddate>2019-06-18T01:46:37.197-04:00</selecteddate>
  <themes>sample string 19</themes>
  <tourflag>1</tourflag>
  <user_id>1</user_id>
  <userfullname>sample string 6</userfullname>
  <userstatus>sample string 3</userstatus>
</MainUser>

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

Response Information

Resource Description

MainUser
NameDescriptionTypeAdditional information
user_id

integer

None.

emprole

integer

None.

userstatus

string

None.

firstname

string

None.

lastname

string

None.

userfullname

string

None.

emailaddress

string

None.

contactnumber

string

None.

empipaddress

string

None.

backgroundchk_status

string

None.

emptemplock

integer

None.

empreasonlocked

string

None.

emplockeddate

date

None.

emppassword

string

None.

createdby

integer

None.

modifiedby

integer

None.

createddate

date

None.

modifieddate

date

None.

isactive

integer

None.

employeeId

integer

None.

project_id

integer

None.

client_id

integer

None.

actualEmployeeCode

string

None.

modeofentry

string

None.

other_modeofentry

string

None.

entrycomments

string

None.

rccandidatename

integer

None.

selecteddate

date

None.

candidatereferredby

integer

None.

company_id

integer

None.

profileimg

string

None.

jobtitle_id

integer

None.

tourflag

integer

None.

themes

string

None.

Response Formats

application/json, text/json

Sample:
{
  "user_id": 1,
  "emprole": 2,
  "userstatus": "sample string 3",
  "firstname": "sample string 4",
  "lastname": "sample string 5",
  "userfullname": "sample string 6",
  "emailaddress": "sample string 7",
  "contactnumber": "sample string 8",
  "empipaddress": "sample string 9",
  "backgroundchk_status": "sample string 10",
  "emptemplock": 1,
  "empreasonlocked": "sample string 11",
  "emplockeddate": "2019-06-18T01:46:37.22-04:00",
  "emppassword": "sample string 12",
  "createdby": 1,
  "modifiedby": 1,
  "createddate": "2019-06-18T01:46:37.22-04:00",
  "modifieddate": "2019-06-18T01:46:37.22-04:00",
  "isactive": 1,
  "employeeId": 13,
  "project_id": 1,
  "client_id": 1,
  "actualEmployeeCode": "sample string 14",
  "modeofentry": "sample string 15",
  "other_modeofentry": "sample string 16",
  "entrycomments": "sample string 17",
  "rccandidatename": 1,
  "selecteddate": "2019-06-18T01:46:37.22-04:00",
  "candidatereferredby": 1,
  "company_id": 1,
  "profileimg": "sample string 18",
  "jobtitle_id": 1,
  "tourflag": 1,
  "themes": "sample string 19"
}

text/html

Sample:
{"user_id":1,"emprole":2,"userstatus":"sample string 3","firstname":"sample string 4","lastname":"sample string 5","userfullname":"sample string 6","emailaddress":"sample string 7","contactnumber":"sample string 8","empipaddress":"sample string 9","backgroundchk_status":"sample string 10","emptemplock":1,"empreasonlocked":"sample string 11","emplockeddate":"2019-06-18T01:46:37.22-04:00","emppassword":"sample string 12","createdby":1,"modifiedby":1,"createddate":"2019-06-18T01:46:37.22-04:00","modifieddate":"2019-06-18T01:46:37.22-04:00","isactive":1,"employeeId":13,"project_id":1,"client_id":1,"actualEmployeeCode":"sample string 14","modeofentry":"sample string 15","other_modeofentry":"sample string 16","entrycomments":"sample string 17","rccandidatename":1,"selecteddate":"2019-06-18T01:46:37.22-04:00","candidatereferredby":1,"company_id":1,"profileimg":"sample string 18","jobtitle_id":1,"tourflag":1,"themes":"sample string 19"}

application/xml, text/xml

Sample:
<MainUser xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RtsDb.Service.Models">
  <actualEmployeeCode>sample string 14</actualEmployeeCode>
  <backgroundchk_status>sample string 10</backgroundchk_status>
  <candidatereferredby>1</candidatereferredby>
  <client_id>1</client_id>
  <company_id>1</company_id>
  <contactnumber>sample string 8</contactnumber>
  <createdby>1</createdby>
  <createddate>2019-06-18T01:46:37.22-04:00</createddate>
  <emailaddress>sample string 7</emailaddress>
  <empipaddress>sample string 9</empipaddress>
  <emplockeddate>2019-06-18T01:46:37.22-04:00</emplockeddate>
  <employeeId>13</employeeId>
  <emppassword>sample string 12</emppassword>
  <empreasonlocked>sample string 11</empreasonlocked>
  <emprole>2</emprole>
  <emptemplock>1</emptemplock>
  <entrycomments>sample string 17</entrycomments>
  <firstname>sample string 4</firstname>
  <isactive>1</isactive>
  <jobtitle_id>1</jobtitle_id>
  <lastname>sample string 5</lastname>
  <modeofentry>sample string 15</modeofentry>
  <modifiedby>1</modifiedby>
  <modifieddate>2019-06-18T01:46:37.22-04:00</modifieddate>
  <other_modeofentry>sample string 16</other_modeofentry>
  <profileimg>sample string 18</profileimg>
  <project_id>1</project_id>
  <rccandidatename>1</rccandidatename>
  <selecteddate>2019-06-18T01:46:37.22-04:00</selecteddate>
  <themes>sample string 19</themes>
  <tourflag>1</tourflag>
  <user_id>1</user_id>
  <userfullname>sample string 6</userfullname>
  <userstatus>sample string 3</userstatus>
</MainUser>