pub struct BulkPersonMembershipUpdate {
pub group_id: i64,
pub new_role_id: Option<i64>,
pub new_status: String,
pub old_role_id: Option<i64>,
pub old_status: String,
pub extra: Map<String, Value>,
}Expand description
person/changeGroupRoleAndStatus: Changes only memberships matching oldStatus and, when set, oldRoleId.
Fields§
§group_id: i64Group ID.
new_role_id: Option<i64>Optional replacement role.
new_status: StringState of a person’s membership in a group, independent of their role. active is an active membership; requested awaits confirmation; waiting is on the waiting list; to_delete is pending removal. Use GET /group/memberstatus for localized display names. A pending-removal membership still exists.
Allowed values: active, requested, to_delete, waiting.
old_role_id: Option<i64>Optional old-role filter.
old_status: StringState of a person’s membership in a group, independent of their role. active is an active membership; requested awaits confirmation; waiting is on the waiting list; to_delete is pending removal. Use GET /group/memberstatus for localized display names. A pending-removal membership still exists.
Allowed values: active, requested, to_delete, waiting.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.