Creates financial units. Batch creation is supported.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
bss:CreateCostUnit |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| UnitEntityList |
array<object> |
No |
The list of financial units. |
|
|
object |
No |
|||
| OwnerUid |
integer |
Yes |
The ID of the owner of the new financial unit. |
982375623 |
| ParentUnitId |
integer |
Yes |
The ID of the parent financial unit. A value of -1 indicates the root financial unit. |
-1 |
| UnitName |
string |
Yes |
The name of the financial unit. |
test |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The status code. |
Success |
| Data |
object |
The returned data. |
|
| CostUnitDtoList |
array<object> |
The list of financial unit entities. |
|
|
object |
|||
| OwnerUid |
integer |
The ID of the owner of the new financial unit. |
26387563 |
| ParentUnitId |
integer |
The ID of the parent financial unit. A value of -1 indicates the root financial unit. |
-1 |
| UnitId |
integer |
The ID of the financial unit. |
84327659328 |
| UnitName |
string |
The name of the financial unit. |
test |
| Message |
string |
The error message. |
Successful! |
| RequestId |
string |
The request ID. |
F5B803CF-94D8-43AF-ADB3-D819AAD30E27 |
| Success |
boolean |
Indicates whether the request was successful. |
true |
Examples
Success response
JSON format
{
"Code": "Success",
"Data": {
"CostUnitDtoList": [
{
"OwnerUid": 26387563,
"ParentUnitId": -1,
"UnitId": 84327659328,
"UnitName": "test"
}
]
},
"Message": "Successful!",
"RequestId": "F5B803CF-94D8-43AF-ADB3-D819AAD30E27",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.