SyncPoliciesRequest

SyncPoliciesRequest
SyncPoliciesRequest

Synchronise a Group's attached Policies to exactly this list. The order sets each stackRank, 1-based (index 0 is the highest priority).

JSON Example
{
    "policyIdsInOrder": [
        0
    ]
}
array of integer
policyIdsInOrder
Required  
Constraints: maxItems: 500

The exact set of Policies the Group ends up with, highest priority first: stackRank is assigned 1, 2, 3 and so on in this order. Policies not listed are detached, an empty list detaches all, and a repeated id keeps its first position. Required (POLICY_IDS_REQUIRED); at most 500 entries (TOO_MANY_POLICY_IDS), no null element (INVALID_POLICY_ID), at most 20 distinct Policies (GROUP_POLICY_LIMIT_EXCEEDED), and every id must exist (404 POLICY_NOT_FOUND)