All Products
Search
Document Center

Expenses and Costs:ModifyAccountRelation

Last Updated:Oct 28, 2025

Adds or deletes permissions for an account linking relationship.

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

RelationType

string

No

The relationship type. Currently, only enterprise_group is supported.

enterprise_group

RelationOperation

string

Yes

The action to perform. Valid values:

  • ADD: Adds the permission.

  • DELETE: Deletes the permission.

ADD

ParentUserId

integer

No

The UID of the Alibaba Cloud account.

1738376485192612

ChildNick

string

No

The display name. This name is shown on the page to help you identify the use case of the account.

Display name of the member

ChildUserId

integer

No

The UID of the member account.

1512996702208737

RequestId

string

Yes

The unique ID of the request. This ID is used to mark a request and troubleshoot issues.

request_id

RoleCodes

array

No

Modifying roles is not supported.

trusteeship

string

No

The role code.

trusteeship

PermissionCodes

array

No

The permissions that can be modified. Valid values:

  • SYNCHRONIZE_FINANCE_IDENTITY: Allow synchronizing the credit control identity with the linked account.

  • SYNCHRONIZE_FINANCE_DISCOUNT_POLICY_TO_TARGET: Allow synchronizing discounts with the linked account.

  • FORBID_WITHDRAW_CASH: Prohibit the linked account from withdrawing its balance.

  • FORBID_MANAGE_INVOICE: Prohibit the linked account from managing invoices.

  • CHECK_FINANCE_INFO: View information about the account linking relationship.

  • MANAGE_TARGET_INVOICE: Manage invoices for the linked account.

  • CHECK_TARGET_CONSUMPTION: View the consumption details of the linked account.

SYNCHRONIZE_FINANCE_IDENTITY

string

No

The permission.

SYNCHRONIZE_FINANCE_IDENTITY

RelationId

integer

No

The relationship ID. Obtain this value from the relationId field returned by the QueryRelationList operation.

51463

Response elements

Parameter

Type

Description

Example

object

Code

string

The status code.

200

Message

string

The returned message.

Message returned

RequestId

string

The unique ID of the request.

request_id

Success

boolean

Indicates whether the request was successful.

true

Data

object

The returned data.

HostId

string

The source IP address of the request.

HostId

Examples

Success response

JSON format

{
  "Code": "200",
  "Message": "Message returned\n",
  "RequestId": "request_id",
  "Success": true,
  "Data": {
    "HostId": "HostId"
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.