DeleteCostCenterRule
Delete financial unit automatic allocation rule
Operation description
This API is in canary release and is only available to whitelisted users. Excessive calls may cause performance issues such as response timeouts.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
bss:ModifyCostUnit |
delete |
*All resources
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CostCenterId |
integer |
No |
Financial unit ID. |
637127 |
| FilterExpression |
object |
No |
Rule expression. This field does not need to be entered during the delete operation. |
|
| ExpressionType |
string |
No |
The operation type. Valid values:
|
NARY |
| OperatorType |
string |
No |
The relational expression. |
AND |
| Operands |
array |
No |
The conditional expressions. |
|
|
any |
No |
The conditional expression. See the example for the overall structure (supports multi-level nesting). The following fields are only field descriptions. |
{ "Operands": [ { "FilterValues": { "Code": "TAG-xxx", "Values": [ "xxxx" ], "SelectType": "IN" }, "ExpressionType": "TAG" }, { "FilterValues": { "Code": "INSTANCE_ID", "Values": [ "xxxxx" ], "SelectType": "LIKE" }, "ExpressionType": "DIMENSION" }, { "FilterValues": { "Code": "INSTANCE_NICK", "Values": [ "111" ], "SelectType": "LIKE" }, "ExpressionType": "DIMENSION" }, { "FilterValues": { "Code": "RESOURCE_GROUP", "Values": [ "xxxxx" ], "SelectType": "IN" }, "ExpressionType": "DIMENSION" }, { "FilterValues": { "Code": "ARTICLE", "Values": [ "xxxxx" ], "SelectType": "IN" }, "ExpressionType": "DIMENSION" }, { "FilterValues": { "Code": "PRODUCT", "Values": [ "xxxxx" ], "SelectType": "IN" }, "ExpressionType": "DIMENSION" }, { "FilterValues": { "Code": "OWNER", "Values": [ "xxxxx" ], "SelectType": "IN" }, "ExpressionType": "DIMENSION" } ] } |
|
| Operand |
any |
No |
The filter condition (no longer used). |
N/A |
| FilterValues |
object |
No |
The sub-expression filter conditions. |
|
| Code |
string |
No |
The condition filter key. Valid values:
|
TAG-test-xxx-key |
| CodeName |
string |
No |
The condition filter key name. |
N/A |
| Values |
array |
No |
The condition filter values. |
|
|
string |
No |
The condition filter value. Only one value can be entered for INSTANCE_NICK or INSTANCE_NICK. |
["TAG-test-xxx"] |
|
| SelectType |
string |
No |
The association between Code and value. Valid values:
|
IN |
| Nbid |
string |
No |
Level-1 marketplace ID. If empty, the marketplace ID of the current user is used by default. |
2684201000001 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
BssApiPlainResult |
||
| Data |
integer |
The ID of the financial unit allocation rule. |
37404 |
| Metadata |
any |
The response metadata. |
{} |
| RequestId |
string |
The request ID. |
UUID |
Examples
Success response
JSON format
{
"Data": 37404,
"Metadata": "{}",
"RequestId": "UUID"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | CostCenter.MasterAndSubHasNoRelation | Your account has no valid account relation yet. | |
| 400 | InvalidParameter | The specified request contains invalid parameters. | |
| 400 | CostCenter.UnitNotExist | The financial unit does not exist or is invalid. | |
| 500 | InternalError | The request processing has failed due to some unknown error. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.