API Name
ModifyCostUnit
Overview
Modify cost unit support batch modification.
Request parameters
| Name |
Type |
Required |
Description |
| unitEntityList |
List<(CostUnitDto)> |
Yes |
Cost unit entity list |
List<(CostUnitDto)>:
| Name |
Type |
Required |
Description |
| ownerUid |
Long |
Yes |
Owner user ID of the new cost unit |
| unitId |
Long |
Yes |
ID of the cost unit |
| newUnitName |
String |
Yes |
New name for the cost unit |
Response parameters
| Name |
Type |
Description |
| success |
boolean |
Is success or not |
| code |
String |
Error code |
| message |
String |
Detail information |
| data |
List<(CostUnitOperateResponse)> |
Message body |
CostUnitOperateResponse:
| Name |
Type |
Description |
| ownerUid |
Long |
Owner user ID of the cost unit |
| unitId |
Long |
ID of the new cost unit |
| isSucccess |
Boolean |
Is success or not |
Error codes
| Error code | Message | Description |
|---|
| MissingParameter | The specified parameter is mandatory for this request. | Missing Parameter |
| UnitNotBelongToUser | Financial unit is not belong to this user. | Cost unit is not belong to this user. |
| InvalidParameter | NAME_IS_INVALID | Cost unit name is illegal or duplicate. |
| InternalError | The request processing has failed due to some unknown error, exception or failure. | Internal Error. |
Request sample
https://business.ap-southeast-1.aliyuncs.com/?Action=ModifyCostUnit&UnitEntityList.1.NewUnitName=test1&UnitEntityList.1.OwnerUid=128*******545&UnitEntityList.1.UnitId=****&Public parameters
Response sample