ReferenceProduct
Add a user-group membership
Adds the product to a user group and returns the new membership (201, `Location` header set). Requires `Permissions.Product.Create`.
POST
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
id?|Format
int32productId?|Format
int32userGroupId?|Format
int32application/json- response
id?|Format
int32productId?|Format
int32userGroupId?|Format
int32curl -X POST '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}List a product's user-group memberships GET
Returns the user groups this product belongs to. User groups drive which users and price rules reach the product, and the groups themselves are instance-specific. Requires `Permissions.Product.View`.
Replace all user-group memberships PUT
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`.