Refreshing dynamic groups via the API
As of 20.3.137 and 100.3.137, you can now refresh dynamic groups via the Group endpoint.
Important: If the IQA definition used by the dynamic group has been modified, you must manually refresh the group in the Staff site before calling this API. The API refresh will only rebuild group membership based on the existing IQA definition. If the query criteria have changed but the group has not been manually refreshed, the API will continue using the old definition and will not include the updated criteria. To manually refresh, open the query, click the Group tab, then click Save and Refresh Group Members.
Below are examples that can be posted to the https://{{URL}}/api/Group/_execute endpoint. In these examples, "6f386499-5d5e-46fa-ab63-7b7f426c7046" is the ID of the Group and "101" is the party ID.
{
"$type":"Asi.Soa.Core.DataContracts.GenericExecuteRequest, Asi.Contracts",
"OperationName":"RefreshDynamicGroup",
"Parameters":{
"$values":[
{
"$type":"System.String",
"$value": "6f386499-5d5e-46fa-ab63-7b7f426c7046"
}
]
}
}
{
"$type":"Asi.Soa.Core.DataContracts.GenericExecuteRequest, Asi.Contracts",
"OperationName":"RefreshDynamicGroupForParty",
"Parameters":{
"$values":[
{
"$type":"System.String",
"$value": "6f386499-5d5e-46fa-ab63-7b7f426c7046"
},
{
"$type":"System.String",
"$value": "101"
}
]
}
}
