Communities::Memberships::AddToGroupAction
Create Membership Add-To-Group Action
Enqueue an async background job to add one or more community members to one or more spaces (groups). The action record is returned immediately with status: queued. Poll GET /communities/memberships/add_to_group_actions/{id} until status is completed.
post/communities/{community_id}/memberships/add_to_group_actions
Path parameters
community_idinteger required
Request body
Example request
{
"communities_memberships_add_to_group_action": {
"communities_memberships_add_to_group_action": {
"target_all": false,
"target_ids": [
"AbCdEf",
"GhIjKl"
],
"space_ids": [
"SpAcEa",
"SpAcEb"
]
}
}
}Response
Created
Example response
{
"id": 502,
"public_id": "AdGrP1",
"community_id": 1,
"target_all": false,
"target_ids": [
101,
102
],
"failed_ids": [],
"target_count": 2,
"performed_count": 2,
"started_at": "2025-01-01T00:01:00.000Z",
"completed_at": "2025-01-01T00:01:05.000Z",
"created_at": "2025-01-01T00:00:00.000Z",
"updated_at": "2025-01-01T00:01:05.000Z",
"status": "completed",
"space_ids": [
10,
11
]
}