POST api/Staff/Registerstaff
Request Information
URI Parameters
None.
Body Parameters
StaffRegM| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
Required |
|
| UserId | integer |
Required |
|
| Passport | string |
None. |
|
| ContactId | integer |
Required |
|
| FirstName | string |
Required |
|
| MiddleName | string |
None. |
|
| LastName | string |
Required |
|
| PhoneNo | string |
Required |
|
| EmailAddress | string |
Required |
|
| SexId | integer |
Required |
|
| MaritalStatusId | integer |
Required |
|
| DOB | date |
Required |
|
| ServiceNo | string |
Required |
|
| CategoryId | integer |
Required |
|
| IsPrincipal | boolean |
None. |
|
| IsBursal | boolean |
None. |
|
| IsPortalAdmin | boolean |
None. |
|
| IsHostelMaster | boolean |
None. |
|
| IsLibraryAdmin | boolean |
None. |
|
| IsCounselor | boolean |
None. |
|
| IsRegistrar | boolean |
None. |
|
| IsHOD | boolean |
None. |
|
| FullAddress | string |
Required |
|
| processop | string |
Required |
|
| username | string |
Required |
|
| accesskey | string |
Required |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"UserId": 2,
"Passport": "sample string 3",
"ContactId": 4,
"FirstName": "sample string 5",
"MiddleName": "sample string 6",
"LastName": "sample string 7",
"PhoneNo": "sample string 8",
"EmailAddress": "sample string 9",
"SexId": 10,
"MaritalStatusId": 11,
"DOB": "2026-01-10T12:45:50.9836975-08:00",
"ServiceNo": "sample string 13",
"CategoryId": 14,
"IsPrincipal": true,
"IsBursal": true,
"IsPortalAdmin": true,
"IsHostelMaster": true,
"IsLibraryAdmin": true,
"IsCounselor": true,
"IsRegistrar": true,
"IsHOD": true,
"FullAddress": "sample string 23",
"processop": "sample string 24",
"username": "sample string 25",
"accesskey": "sample string 26"
}
text/html
Sample:
{"Id":1,"UserId":2,"Passport":"sample string 3","ContactId":4,"FirstName":"sample string 5","MiddleName":"sample string 6","LastName":"sample string 7","PhoneNo":"sample string 8","EmailAddress":"sample string 9","SexId":10,"MaritalStatusId":11,"DOB":"2026-01-10T12:45:50.9836975-08:00","ServiceNo":"sample string 13","CategoryId":14,"IsPrincipal":true,"IsBursal":true,"IsPortalAdmin":true,"IsHostelMaster":true,"IsLibraryAdmin":true,"IsCounselor":true,"IsRegistrar":true,"IsHOD":true,"FullAddress":"sample string 23","processop":"sample string 24","username":"sample string 25","accesskey":"sample string 26"}
application/xml, text/xml
Sample:
<StaffRegM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SchoolDockAPI.Models"> <CategoryId>14</CategoryId> <ContactId>4</ContactId> <DOB>2026-01-10T12:45:50.9836975-08:00</DOB> <EmailAddress>sample string 9</EmailAddress> <FirstName>sample string 5</FirstName> <FullAddress>sample string 23</FullAddress> <Id>1</Id> <IsBursal>true</IsBursal> <IsCounselor>true</IsCounselor> <IsHOD>true</IsHOD> <IsHostelMaster>true</IsHostelMaster> <IsLibraryAdmin>true</IsLibraryAdmin> <IsPortalAdmin>true</IsPortalAdmin> <IsPrincipal>true</IsPrincipal> <IsRegistrar>true</IsRegistrar> <LastName>sample string 7</LastName> <MaritalStatusId>11</MaritalStatusId> <MiddleName>sample string 6</MiddleName> <Passport>sample string 3</Passport> <PhoneNo>sample string 8</PhoneNo> <ServiceNo>sample string 13</ServiceNo> <SexId>10</SexId> <UserId>2</UserId> <accesskey>sample string 26</accesskey> <processop>sample string 24</processop> <username>sample string 25</username> </StaffRegM>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html, application/xml, text/xml
Sample:
Sample not available.