POST api/Human?api={api}
Thêm mơi nhân sự
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
api |
Mã API do hệ thống cung cấp |
string |
Required |
Body Parameters
Đối tượng nhân sự
HumanModelAddName | Description | Type | Additional information |
---|---|---|---|
id |
id tự sinh |
string |
None. |
idkey |
id tự sinh |
string |
None. |
idpartner |
id đối tác |
string |
None. |
idbrandpartner |
id chi nhánh |
string |
None. |
idsubject |
id vai trò |
string |
None. |
codesubject |
mã vai trò |
string |
None. |
namesubject |
tên vai trò |
string |
None. |
cooperate |
Là cộng tác viên true/false |
boolean |
None. |
title |
Chức vụ |
string |
None. |
uniquename |
Tên domain (api tự sinh) |
string |
None. |
avatar |
Ảnh nhân sự |
string |
None. |
code |
mã nhân sự |
string |
None. |
name |
Tên nhân sự |
string |
None. |
othername |
Tên khác |
string |
None. |
phone |
Số điện thoại |
string |
None. |
Địa chỉ email |
string |
None. |
|
birthday |
Ngày sinh yyyyMMddHHmm |
string |
None. |
gender |
Giới tính khách hàng(0-Nữ, 1- Nam, 2- Khác) |
string |
None. |
birthnumber |
Giấy chứng sinh |
string |
None. |
datebirthnumber |
Ngày cấp giấy yyyyMMddHHmm |
string |
None. |
identification |
Số thẻ căn cước công dân |
string |
None. |
dateidentification |
Ngày cấp thẻ căn cước công dân YYYYMMDD |
string |
None. |
certificate |
Chứng chỉ hành nghề |
string |
None. |
datecertificate |
Ngày cấp chứng chỉ hành nghệ yyyyMMdd |
string |
None. |
addressfull |
Địa chỉ đầy đủ |
string |
None. |
address |
Địa chỉ |
string |
None. |
idcountry |
id quốc gia |
string |
None. |
codecountry |
mã quốc gia |
string |
None. |
namecountry |
Tên quốc gia |
string |
None. |
idprovince |
id tỉnh thành |
string |
None. |
codeprovince |
Mã tỉnh thành |
string |
None. |
nameprovince |
Tên tỉnh thành |
string |
None. |
iddistrict |
id quận huyện |
string |
None. |
codedistrict |
mã quận huyện |
string |
None. |
namedistrict |
Tên quận huyện |
string |
None. |
idward |
id xã phường |
string |
None. |
codeward |
mã xã phường |
string |
None. |
nameward |
Tên xã phường |
string |
None. |
status |
Trạng thái true/false (true: Hoạt động , false: Dừng) |
boolean |
None. |
type |
Loại |
byte |
None. |
username |
Tên đăng nhập |
string |
None. |
password |
Mật khẩu |
string |
None. |
passwordhash |
hash Mật khẩu |
Collection of byte |
None. |
passwordsalt |
hash Mật khẩu |
Collection of byte |
None. |
tokencreated |
Ngày tạo token |
date |
None. |
tokenexpires |
hạn token |
date |
None. |
isaction |
Còn hoạt động |
boolean |
None. |
idreligion |
id tôn giáo |
string |
None. |
codereligion |
Mã tôn giáo |
string |
None. |
namereligion |
Tên tôn giáo |
string |
None. |
idnation |
Id dân tộc |
string |
None. |
codenation |
Mã dân tộc |
string |
None. |
namenation |
Tên dân tộc |
string |
None. |
isadmin |
Là admin true/false |
boolean |
None. |
iscalendar |
Bs đặt lịch true/false |
boolean |
None. |
idgrouprole |
id nhóm quyền |
string |
None. |
namegrouprole |
Tên nhóm quyền |
string |
None. |
idhuman |
id người quản lý |
string |
None. |
codehuman |
Mã người quản lý |
string |
None. |
namehuman |
Tên người quản lý |
string |
None. |
datecreate |
Ngày tạo yyyyMMddHHmm |
string |
None. |
idcreate |
id người tạo |
string |
None. |
codecreate |
Mã người tạo |
string |
None. |
namecreate |
Tên người tạo |
string |
None. |
listsubject |
Danh sách đối tượng |
Collection of HumanSubjectAdd |
None. |
listbrand |
Thuộc chi nhánh |
Collection of HumanBrandAdd |
None. |
listdepartment |
Thuộc khoa phòng |
Collection of HumanDepartmentAdd |
None. |
listclinic |
Danh sách phòng khám |
Collection of HumanClinicAdd |
None. |
listsubclinic |
Danh sách phòng cận lâm sàng |
Collection of HumanSubClinicAdd |
None. |
lststore |
Danh sách kho |
Collection of StoreHumanAdd |
None. |
malienthong |
Mã liên thông đơn thuốc quốc gia |
string |
None. |
passworddrug |
Mật khẩu đơn thuốc quốc gia |
string |
None. |
signature |
Chữ ký điện tử |
string |
None. |
signaturemanual |
Mẫu chữ ký |
string |
None. |
ordering |
STT |
integer |
None. |
fulltime |
THời gian nhập |
integer |
None. |
yearmonthday |
THời gian nhập |
integer |
None. |
note |
Mô tả |
string |
None. |
role |
Vai trò |
string |
None. |
idcard |
Số thẻ |
string |
None. |
placeofgrant |
Nơi cấp |
string |
None. |
blood |
Nhóm máu |
string |
None. |
idblood |
id nhóm máu |
string |
None. |
idedit |
id người sửa |
string |
None. |
codeedit |
mã người sửa |
string |
None. |
nameedit |
tên người sửa |
string |
None. |
dateedit |
ngày sửa |
string |
None. |
Request Formats
application/json, text/json
{ "id": "sample string 1", "idkey": "sample string 2", "idpartner": "sample string 3", "idbrandpartner": "sample string 4", "idsubject": "sample string 5", "codesubject": "sample string 6", "namesubject": "sample string 7", "cooperate": true, "title": "sample string 8", "uniquename": "sample string 9", "avatar": "sample string 10", "code": "sample string 11", "name": "sample string 12", "othername": "sample string 13", "phone": "sample string 14", "email": "sample string 15", "birthday": "sample string 16", "gender": "sample string 17", "birthnumber": "sample string 18", "datebirthnumber": "sample string 19", "identification": "sample string 20", "dateidentification": "sample string 21", "certificate": "sample string 22", "datecertificate": "sample string 23", "addressfull": "sample string 24", "address": "sample string 25", "idcountry": "sample string 26", "codecountry": "sample string 27", "namecountry": "sample string 28", "idprovince": "sample string 29", "codeprovince": "sample string 30", "nameprovince": "sample string 31", "iddistrict": "sample string 32", "codedistrict": "sample string 33", "namedistrict": "sample string 34", "idward": "sample string 35", "codeward": "sample string 36", "nameward": "sample string 37", "status": true, "type": 64, "username": "sample string 38", "password": "sample string 39", "passwordhash": "QEA=", "passwordsalt": "QEA=", "tokencreated": "2024-11-24T22:44:37.324668+07:00", "tokenexpires": "2024-11-24T22:44:37.324668+07:00", "isaction": true, "idreligion": "sample string 42", "codereligion": "sample string 43", "namereligion": "sample string 44", "idnation": "sample string 45", "codenation": "sample string 46", "namenation": "sample string 47", "isadmin": true, "iscalendar": true, "idgrouprole": "sample string 50", "namegrouprole": "sample string 51", "idhuman": "sample string 52", "codehuman": "sample string 53", "namehuman": "sample string 54", "datecreate": "sample string 55", "idcreate": "sample string 56", "codecreate": "sample string 57", "namecreate": "sample string 58", "listsubject": [ { "id": "sample string 1", "idpartner": "sample string 2", "idhuman": "sample string 3", "idsubject": "sample string 4", "namesubject": "sample string 5" }, { "id": "sample string 1", "idpartner": "sample string 2", "idhuman": "sample string 3", "idsubject": "sample string 4", "namesubject": "sample string 5" } ], "listbrand": [ { "id": "sample string 1", "idpartner": "sample string 2", "idhuman": "sample string 3", "idbrandpartner": "sample string 4", "codebrandpartner": "sample string 5", "namebrandpartner": "sample string 6" }, { "id": "sample string 1", "idpartner": "sample string 2", "idhuman": "sample string 3", "idbrandpartner": "sample string 4", "codebrandpartner": "sample string 5", "namebrandpartner": "sample string 6" } ], "listdepartment": [ { "id": "sample string 1", "idhuman": "sample string 2", "iddepartment": "sample string 3", "codedepartment": "sample string 4", "namedepartment": "sample string 5", "idpartner": "sample string 6", "idbrandpartner": "sample string 7", "namebrand": "sample string 8" }, { "id": "sample string 1", "idhuman": "sample string 2", "iddepartment": "sample string 3", "codedepartment": "sample string 4", "namedepartment": "sample string 5", "idpartner": "sample string 6", "idbrandpartner": "sample string 7", "namebrand": "sample string 8" } ], "listclinic": [ { "id": "sample string 1", "idhuman": "sample string 2", "idclinic": "sample string 3", "nameclinic": "sample string 4", "codeclinic": "sample string 5", "isphone": true, "idpartner": "sample string 6", "idbrandpartner": "sample string 7", "namebrand": "sample string 8" }, { "id": "sample string 1", "idhuman": "sample string 2", "idclinic": "sample string 3", "nameclinic": "sample string 4", "codeclinic": "sample string 5", "isphone": true, "idpartner": "sample string 6", "idbrandpartner": "sample string 7", "namebrand": "sample string 8" } ], "listsubclinic": [ { "id": "sample string 1", "idhuman": "sample string 2", "idsubclinic": "sample string 3", "namesubclinic": "sample string 4", "codesubclinic": "sample string 5", "isphone": true, "idpartner": "sample string 6", "idbrandpartner": "sample string 7", "namebrand": "sample string 8", "idmodelservice": 1 }, { "id": "sample string 1", "idhuman": "sample string 2", "idsubclinic": "sample string 3", "namesubclinic": "sample string 4", "codesubclinic": "sample string 5", "isphone": true, "idpartner": "sample string 6", "idbrandpartner": "sample string 7", "namebrand": "sample string 8", "idmodelservice": 1 } ], "lststore": [ { "id": "sample string 1", "idpartner": "sample string 2", "idbrandpartner": "sample string 3", "idstore": "sample string 4", "codestore": "sample string 5", "namestore": "sample string 6", "idhuman": "sample string 7", "namehuman": "sample string 8" }, { "id": "sample string 1", "idpartner": "sample string 2", "idbrandpartner": "sample string 3", "idstore": "sample string 4", "codestore": "sample string 5", "namestore": "sample string 6", "idhuman": "sample string 7", "namehuman": "sample string 8" } ], "malienthong": "sample string 59", "passworddrug": "sample string 60", "signature": "sample string 61", "signaturemanual": "sample string 62", "ordering": 1, "fulltime": 1, "yearmonthday": 1, "note": "sample string 63", "role": "sample string 64", "idcard": "sample string 65", "placeofgrant": "sample string 66", "blood": "sample string 67", "idblood": "sample string 68", "idedit": "sample string 69", "codeedit": "sample string 70", "nameedit": "sample string 71", "dateedit": "sample string 72" }
application/xml, text/xml
<HumanModelAdd xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APISMART.Models.Human"> <address>sample string 25</address> <addressfull>sample string 24</addressfull> <avatar>sample string 10</avatar> <birthday>sample string 16</birthday> <birthnumber>sample string 18</birthnumber> <blood>sample string 67</blood> <certificate>sample string 22</certificate> <code>sample string 11</code> <codecountry>sample string 27</codecountry> <codecreate>sample string 57</codecreate> <codedistrict>sample string 33</codedistrict> <codeedit>sample string 70</codeedit> <codehuman>sample string 53</codehuman> <codenation>sample string 46</codenation> <codeprovince>sample string 30</codeprovince> <codereligion>sample string 43</codereligion> <codesubject>sample string 6</codesubject> <codeward>sample string 36</codeward> <cooperate>true</cooperate> <datebirthnumber>sample string 19</datebirthnumber> <datecertificate>sample string 23</datecertificate> <datecreate>sample string 55</datecreate> <dateedit>sample string 72</dateedit> <dateidentification>sample string 21</dateidentification> <email>sample string 15</email> <fulltime>1</fulltime> <gender>sample string 17</gender> <id>sample string 1</id> <idblood>sample string 68</idblood> <idbrandpartner>sample string 4</idbrandpartner> <idcard>sample string 65</idcard> <idcountry>sample string 26</idcountry> <idcreate>sample string 56</idcreate> <iddistrict>sample string 32</iddistrict> <idedit>sample string 69</idedit> <identification>sample string 20</identification> <idgrouprole>sample string 50</idgrouprole> <idhuman>sample string 52</idhuman> <idkey>sample string 2</idkey> <idnation>sample string 45</idnation> <idpartner>sample string 3</idpartner> <idprovince>sample string 29</idprovince> <idreligion>sample string 42</idreligion> <idsubject>sample string 5</idsubject> <idward>sample string 35</idward> <isaction>true</isaction> <isadmin>true</isadmin> <iscalendar>true</iscalendar> <listbrand> <HumanBrandAdd> <codebrandpartner>sample string 5</codebrandpartner> <id>sample string 1</id> <idbrandpartner>sample string 4</idbrandpartner> <idhuman>sample string 3</idhuman> <idpartner>sample string 2</idpartner> <namebrandpartner>sample string 6</namebrandpartner> </HumanBrandAdd> <HumanBrandAdd> <codebrandpartner>sample string 5</codebrandpartner> <id>sample string 1</id> <idbrandpartner>sample string 4</idbrandpartner> <idhuman>sample string 3</idhuman> <idpartner>sample string 2</idpartner> <namebrandpartner>sample string 6</namebrandpartner> </HumanBrandAdd> </listbrand> <listclinic> <HumanClinicAdd> <codeclinic>sample string 5</codeclinic> <id>sample string 1</id> <idbrandpartner>sample string 7</idbrandpartner> <idclinic>sample string 3</idclinic> <idhuman>sample string 2</idhuman> <idpartner>sample string 6</idpartner> <isphone>true</isphone> <namebrand>sample string 8</namebrand> <nameclinic>sample string 4</nameclinic> </HumanClinicAdd> <HumanClinicAdd> <codeclinic>sample string 5</codeclinic> <id>sample string 1</id> <idbrandpartner>sample string 7</idbrandpartner> <idclinic>sample string 3</idclinic> <idhuman>sample string 2</idhuman> <idpartner>sample string 6</idpartner> <isphone>true</isphone> <namebrand>sample string 8</namebrand> <nameclinic>sample string 4</nameclinic> </HumanClinicAdd> </listclinic> <listdepartment> <HumanDepartmentAdd> <codedepartment>sample string 4</codedepartment> <id>sample string 1</id> <idbrandpartner>sample string 7</idbrandpartner> <iddepartment>sample string 3</iddepartment> <idhuman>sample string 2</idhuman> <idpartner>sample string 6</idpartner> <namebrand>sample string 8</namebrand> <namedepartment>sample string 5</namedepartment> </HumanDepartmentAdd> <HumanDepartmentAdd> <codedepartment>sample string 4</codedepartment> <id>sample string 1</id> <idbrandpartner>sample string 7</idbrandpartner> <iddepartment>sample string 3</iddepartment> <idhuman>sample string 2</idhuman> <idpartner>sample string 6</idpartner> <namebrand>sample string 8</namebrand> <namedepartment>sample string 5</namedepartment> </HumanDepartmentAdd> </listdepartment> <listsubclinic> <HumanSubClinicAdd> <codesubclinic>sample string 5</codesubclinic> <id>sample string 1</id> <idbrandpartner>sample string 7</idbrandpartner> <idhuman>sample string 2</idhuman> <idmodelservice>1</idmodelservice> <idpartner>sample string 6</idpartner> <idsubclinic>sample string 3</idsubclinic> <isphone>true</isphone> <namebrand>sample string 8</namebrand> <namesubclinic>sample string 4</namesubclinic> </HumanSubClinicAdd> <HumanSubClinicAdd> <codesubclinic>sample string 5</codesubclinic> <id>sample string 1</id> <idbrandpartner>sample string 7</idbrandpartner> <idhuman>sample string 2</idhuman> <idmodelservice>1</idmodelservice> <idpartner>sample string 6</idpartner> <idsubclinic>sample string 3</idsubclinic> <isphone>true</isphone> <namebrand>sample string 8</namebrand> <namesubclinic>sample string 4</namesubclinic> </HumanSubClinicAdd> </listsubclinic> <listsubject> <HumanSubjectAdd> <id>sample string 1</id> <idhuman>sample string 3</idhuman> <idpartner>sample string 2</idpartner> <idsubject>sample string 4</idsubject> <namesubject>sample string 5</namesubject> </HumanSubjectAdd> <HumanSubjectAdd> <id>sample string 1</id> <idhuman>sample string 3</idhuman> <idpartner>sample string 2</idpartner> <idsubject>sample string 4</idsubject> <namesubject>sample string 5</namesubject> </HumanSubjectAdd> </listsubject> <lststore xmlns:d2p1="http://schemas.datacontract.org/2004/07/APISMART.Models.Store"> <d2p1:StoreHumanAdd> <d2p1:codestore>sample string 5</d2p1:codestore> <d2p1:id>sample string 1</d2p1:id> <d2p1:idbrandpartner>sample string 3</d2p1:idbrandpartner> <d2p1:idhuman>sample string 7</d2p1:idhuman> <d2p1:idpartner>sample string 2</d2p1:idpartner> <d2p1:idstore>sample string 4</d2p1:idstore> <d2p1:namehuman>sample string 8</d2p1:namehuman> <d2p1:namestore>sample string 6</d2p1:namestore> </d2p1:StoreHumanAdd> <d2p1:StoreHumanAdd> <d2p1:codestore>sample string 5</d2p1:codestore> <d2p1:id>sample string 1</d2p1:id> <d2p1:idbrandpartner>sample string 3</d2p1:idbrandpartner> <d2p1:idhuman>sample string 7</d2p1:idhuman> <d2p1:idpartner>sample string 2</d2p1:idpartner> <d2p1:idstore>sample string 4</d2p1:idstore> <d2p1:namehuman>sample string 8</d2p1:namehuman> <d2p1:namestore>sample string 6</d2p1:namestore> </d2p1:StoreHumanAdd> </lststore> <malienthong>sample string 59</malienthong> <name>sample string 12</name> <namecountry>sample string 28</namecountry> <namecreate>sample string 58</namecreate> <namedistrict>sample string 34</namedistrict> <nameedit>sample string 71</nameedit> <namegrouprole>sample string 51</namegrouprole> <namehuman>sample string 54</namehuman> <namenation>sample string 47</namenation> <nameprovince>sample string 31</nameprovince> <namereligion>sample string 44</namereligion> <namesubject>sample string 7</namesubject> <nameward>sample string 37</nameward> <note>sample string 63</note> <ordering>1</ordering> <othername>sample string 13</othername> <password>sample string 39</password> <passworddrug>sample string 60</passworddrug> <passwordhash>QEA=</passwordhash> <passwordsalt>QEA=</passwordsalt> <phone>sample string 14</phone> <placeofgrant>sample string 66</placeofgrant> <role>sample string 64</role> <signature>sample string 61</signature> <signaturemanual>sample string 62</signaturemanual> <status>true</status> <title>sample string 8</title> <tokencreated>2024-11-24T22:44:37.324668+07:00</tokencreated> <tokenexpires>2024-11-24T22:44:37.324668+07:00</tokenexpires> <type>64</type> <uniquename>sample string 9</uniquename> <username>sample string 38</username> <yearmonthday>1</yearmonthday> </HumanModelAdd>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
DataInsertName | Description | Type | Additional information |
---|---|---|---|
status | string |
None. |
|
message | string |
None. |
|
id | string |
None. |
|
code | string |
None. |
|
code1 | string |
None. |
|
strprint | string |
None. |
Response Formats
application/json, text/json
{ "status": "sample string 1", "message": "sample string 2", "id": "sample string 3", "code": "sample string 4", "code1": "sample string 5", "strprint": "sample string 6" }
text/javascript, application/javascript, application/json-p
/**/ typeof === 'function' && ({"status":"sample string 1","message":"sample string 2","id":"sample string 3","code":"sample string 4","code1":"sample string 5","strprint":"sample string 6"});
application/xml, text/xml
<DataInsert xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APISMART.Models"> <code>sample string 4</code> <code1>sample string 5</code1> <id>sample string 3</id> <message>sample string 2</message> <status>sample string 1</status> <strprint>sample string 6</strprint> </DataInsert>