Edit Member

POST/openapi/v1/members/modify

Edit the name and roles of a member in the current Space, and return the updated member. The member is located by Email. When Roles is provided it replaces the existing roles; otherwise roles are unchanged.

Permission: The operator must be a Space administrator. The owner can operate on any member; other administrators can only operate on Sender (sender) members.

Console equivalent: Members → Edit.

Required Scope: member:manage


Request Parameters

AuthorizationRequiredstring
Bearer <access_token>
X-Operator-User-IdOptionalstring
Operator user ID. Not required in authorization_code mode (the authorized user is used automatically); **required** in client_credentials mode. The operator must be an administrator of the current Space.
application/json
EmailRequiredstring
Member email, case-insensitive.
NameRequiredstring
Member name, up to 30 characters.
RolesOptionalarray<string>
New role list: `admin` (Administrator), `sender` (Sender), replacing the existing roles. Roles are unchanged if omitted or empty.

Response Parameters

UserIdOptionalstring
Platform user ID of the member. Empty string if the member has never joined the Space (for example, a `pending_activation` member).
NameOptionalstring
Member name.
EmailOptionalstring
Member email.
RolesOptionalarray<string>
Role list: `admin` (Administrator), `sender` (Sender). The Space owner is also returned as `admin`.
StatusOptionalstring
Member status: `enabled` (Enabled), `pending_activation` (To Be Activated), `disabled` (Disabled).
enabledpending_activationdisabled
CreatedAtOptionalstring
Time the member was added, in RFC3339 format (UTC).

Response Example

{
  "Response": {
    "RequestId": "req-abc123",
    "Error": null,
    "Data": {
      "UserId": "SGUR4Kp9mN2vX7qR1tY8wZ3bC5",
      "Name": "Zhang San",
      "Email": "user@example.com",
      "Roles": [
        "sender"
      ],
      "Status": "enabled",
      "CreatedAt": "2026-11-05T08:30:00Z"
    }
  }
}

Error Codes

Error CodeDescription
INVALID_REQUESTInvalid parameters (empty Email, name empty or longer than 30 characters, invalid role, etc.)
OPENAPI.OPERATOR_USER_ID_REQUIREDX-Operator-User-Id is missing in client_credentials mode
OPENAPI.OPERATOR_USER_NOT_FOUNDOperator does not exist, the account is inactive, or the operator is not an enabled member of the current Space
OPENAPI.OPERATOR_USER_NOT_HUMANOperator is not a human user
MEMBER.INSUFFICIENT_PERMISSIONOperator is not a Space administrator, or has no permission on the target member
MEMBER.NOT_FOUNDTarget member does not exist
VALIDATION.INAPPROPRIATE_CONTENTName contains inappropriate content
INTERNAL_ERRORInternal server error