POST api/OrganizationAPI/AddOrganization
添加组织架构
Request Information
URI Parameters
None.
Body Parameters
OrganizationName | Description | Type | Additional information |
---|---|---|---|
Code | string |
None. |
|
Name | string |
None. |
|
Sequence | integer |
None. |
|
IsValid | boolean |
None. |
|
ParentGID | globally unique identifier |
None. |
|
Tenant_GID | globally unique identifier |
None. |
|
SysCreateDate | date |
None. |
|
SysCreateUser | globally unique identifier |
None. |
|
SysModifyDate | date |
None. |
|
SysModifyUser | globally unique identifier |
None. |
|
GID | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{ "Code": "sample string 1", "Name": "sample string 2", "Sequence": 1, "IsValid": true, "ParentGID": "3784e0fb-7e6f-47a4-94b4-e4a7d66a931b", "Tenant_GID": "b907dff2-c2d3-4681-aef6-4d01e6714030", "SysCreateDate": "2025-05-04T15:11:47.7041854+08:00", "SysCreateUser": "00000000-0000-0000-0000-000000000000", "SysModifyDate": "2025-05-04T15:11:47.7041854+08:00", "SysModifyUser": "00000000-0000-0000-0000-000000000000", "GID": "012f0b62-588b-480d-a3ec-dd573f6bbeaa" }
application/xml, text/xml
Sample:
<Organization xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JetHR.Personnel.Model"> <_gid xmlns="http://schemas.datacontract.org/2004/07/JetHR.Core.Model">012f0b62-588b-480d-a3ec-dd573f6bbeaa</_gid> <SysModifyDate xmlns="http://schemas.datacontract.org/2004/07/JetHR.Core.Model">2025-05-04T15:11:47.7041854+08:00</SysModifyDate> <SysModifyUser xmlns="http://schemas.datacontract.org/2004/07/JetHR.Core.Model">00000000-0000-0000-0000-000000000000</SysModifyUser> <Code>sample string 1</Code> <IsValid>true</IsValid> <Name>sample string 2</Name> <ParentGID>3784e0fb-7e6f-47a4-94b4-e4a7d66a931b</ParentGID> <Sequence>1</Sequence> <Tenant_GID>b907dff2-c2d3-4681-aef6-4d01e6714030</Tenant_GID> </Organization>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
添加组织架构
stringResponse Formats
application/json, text/json
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>