Deletes a cost center.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
bss:DeleteCostUnit | delete | *All Resource
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
OwnerUid | integer | Yes | The user ID of the cost center owner. | 2135342 |
UnitId | integer | Yes | The ID of the cost center. A value of -1 indicates the root cost center. | 376348 |
Response elements
Parameter | Type | Description | Example |
object | |||
Code | string | The status code. | Success |
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 |
| Data | object | The returned data. | |
IsSuccess | boolean | Indicates whether the operation was completed. | true |
UnitId | integer | The ID of the cost center. | 123412343 |
OwnerUid | integer | The user ID of the cost center owner. | 12431 |
Examples
Success response
JSON format
{
"Code": "Success",
"Message": "Successful!",
"RequestId": "F5B803CF-94D8-43AF-ADB3-D819AAD30E27",
"Success": true,
"Data": {
"IsSuccess": true,
"UnitId": 123412343,
"OwnerUid": 12431
}
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.