Replace a metadata group's membership with a selection
PUT/metadata-groups/:id/metadata/selection
Makes the group's membership exactly what an explicit id list or a metadata filter resolves to, minus excludeIds. The filter is resolved server-side, narrowed to the group's metadata type, and stored as a static list. Ids that are not active metadata are ignored, and a filter whose typeCode differs from the group's type resolves to nothing. A filter matching more than 10000 metadata is rejected with a 400. Because a replace also removes members, it needs both the metadata-groups write and delete scopes.
Request
Responses
- 200
- 400
- 401
- 403
- 404
Membership counts after the change
Invalid selection, or ids of the wrong metadata type
Unauthorized
Forbidden, or missing either the write or the delete scope
Metadata group not found