SaveCostCenterShareRule

Updated at:
Copy as MD

Modifies cost center sharing rules, including creating, modifying, and deleting sharing rules.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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:

  • AVERAGE :

    Split equally

  • CUSTOM :

    Custom split ratio

  • RATIO :

    Split by ratio

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:

  • AVERAGE :

    Split equally

  • CUSTOM :

    Custom split ratio

  • RATIO :

    Split by ratio

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.