All Products
Document Center

BSS OpenAPI:ModifyCostUnit

Last Updated:Oct 25, 2019

API Name



Modify cost unit support batch modification.

Request parameters

Name Type Required Description
unitEntityList List<(CostUnitDto)> Yes Cost unit entity list


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


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 MessageDescription
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

  2. &UnitEntityList.1.NewUnitName=test1
  3. &UnitEntityList.1.OwnerUid=128*******545
  4. &UnitEntityList.1.UnitId=****
  5. &Public parameters

Response sample