ReferenceProduct
Replace all user-group memberships
Replaces the product's whole set of user-group memberships with the list in the body, then returns the resulting set. Memberships the body leaves out are removed. Requires `Permissions.Product.Update`.
PUT
Bearerheader
AuthorizationBearer <token>OAuth 2.0 client credentials. Obtain a client id/secret from Winshop support ([email protected]), then POST to the token URL.
productId*integerFormat
int32application/json- body
[index: integer]?application/json- response
[index: integer]?curl -X PUT 'https://<your-instance>/api/products/0/user-group-members' \ -H 'Authorization: Bearer <access-token>' \ -H 'Content-Type: application/json' \ -d '[ {}]'[ { "id": 0, "productId": 0, "userGroupId": 0 }]