新增部门接口
请求方法:POST
url:/api/mkp-openapi-guest-cert/global/v1/address-book/depart/add
请求参数
参数名 |
是否必选 |
参数类型 |
最大长度 |
描述 |
---|---|---|---|---|
depart |
M |
Depart |
/ |
部门信息 |
depart_code |
M |
String |
64 |
部门编码 |
depart_name |
M |
String |
64 |
部门名称 |
parent_depart_cod |
O |
String |
64 |
父部门编码 |
请求消息示例:
curl --location --request POST 'http://127.0.0.1:8086/api/mkp-openapi-guest-cert/global/v1/address-book/depart/add' \ --header 'X-MKP-Authorization: algorithm=HMAC-SHA256;appid=2d90b0a9b9034780ae0cc9c5abf5c7c9;timestamp=20250423090510;nonce=017888198947493a905e0c9ae3d9f622;signature=22T/VUkPG8cYHt8bE7QwayRMYtkgmoIC9VDt0F1wi68=' \ --header 'Content-Type: application/json' \ --data-raw '{ "depart":{ "depart_code": "f706940921e54982aca67b7aab4b9612", "depart_name": "研发009", "parent_depart_code":"00000001" } }'
响应消息
响应参数说明请参见下表:
参数 |
是否必选 |
类型 |
取值范围 |
参数说明 |
---|---|---|---|---|
resultCode |
M |
String |
8 |
调用结果码。91300000:表示成功 |
resultMsg |
M |
String |
255 |
调用结果描述。 |
响应消息示例:
{ "resultCode":" 91300000", "resultMsg":" Success" }