pub struct BulkMembershipActionCreate {
pub comment: Option<Option<String>>,
pub fields: Option<BTreeMap<String, Value>>,
pub group_id: i64,
pub inform_leader: Option<bool>,
pub member_end_date: Option<NaiveDate>,
pub member_start_date: Option<NaiveDate>,
pub role_id: i64,
pub status: String,
pub waitinglist_position: Option<i64>,
pub extra: Map<String, Value>,
}Expand description
For add-person-to-group and add-member-to-group. groupId selects the destination; custom field keys are destination-field reference names. Existing membership leaves the person unchanged. The member variant resolves the person from the selected membership IDs.
Fields§
§comment: Option<Option<String>>Membership comment.
None leaves the field out, Some(None) sends null.
fields: Option<BTreeMap<String, Value>>Member-field values keyed by reference name.
group_id: i64Target group ID; must be a JSON integer before action validation starts.
inform_leader: Option<bool>Notify leaders; execution defaults to true.
member_end_date: Option<NaiveDate>A simple date in ISO format, e.g. ‘2022-10-19’
member_start_date: Option<NaiveDate>A simple date in ISO format, e.g. ‘2022-10-19’
role_id: i64Target group-type role ID.
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.
waitinglist_position: Option<i64>Waiting-list position; -1 requests the next available position.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.