SaveCostCenterShareRule
Modifies cost center sharing rules, including creating, modifying, and deleting sharing rules.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| OwnerAccountId |
integer |
No |
The user ID of the cost center owner. |
1977800748053695 |
| CreateShareRuleList |
array<object> |
No |
The list of sharing rules to create. |
|
|
object |
No |
The object information. |
||
| ShareRuleName |
string |
No |
The name of the sharing rule. |
test |
| ShareType |
string |
Yes |
The type of the sharing rule. Valid values:
|
RATIO |
| FromCostCenterList |
array |
No |
The list of source cost centers. |
|
|
integer |
No |
The source cost center ID. |
583053 |
|
| ToCostCenterList |
array |
No |
The list of target cost centers. |
|
|
integer |
No |
The target cost center ID. |
583055 |
|
| ShareRatioList |
array |
No |
The list of sharing ratios. |
|
|
number |
No |
The sharing ratio. |
0.5 |
|
| ModifyShareRuleList |
array<object> |
No |
The list of sharing rules to modify. |
|
|
object |
No |
The object information. |
||
| ShareRuleId |
integer |
Yes |
The ID of the sharing rule. |
1828 |
| ShareRuleName |
string |
No |
The name of the sharing rule. |
test |
| ShareType |
string |
Yes |
The type of the sharing rule. Valid values:
|
CUSTOM |
| FromCostCenterList |
array |
No |
The list of source cost centers. |
|
|
integer |
No |
The source cost center ID. |
583052 |
|
| ToCostCenterList |
array |
No |
The list of target cost centers. |
|
|
integer |
No |
The target cost center ID. |
583056 |
|
| ShareRatioList |
array |
No |
The list of sharing ratios. |
|
|
number |
No |
The sharing ratio. |
0.2 |
|
| RemoveShareRuleList |
array |
No |
The list of sharing rules to delete. |
|
|
integer |
No |
The sharing rule ID. |
1827 |
|
| Nbid |
string |
No |
The primary marketplace ID. If left empty, the marketplace ID of the current user is used by default. |
2684201000001 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
BssApiPlainResult |
||
| Metadata |
any |
The metadata of the response. |
{} |
| RequestId |
string |
The request ID. |
6000EE23-274B-4E07-A697-FF2E999520A4 |
| Success |
boolean |
Indicates whether the request was successful. |
true |
Examples
Success response
JSON format
{
"Metadata": "{}",
"RequestId": "6000EE23-274B-4E07-A697-FF2E999520A4",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | CostCenter.MasterAndSubHasNoRelation | Your account has no valid account relation yet. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.