# Update product Activates or updates a product for a user in a gym. A product can be activated for a specified user and gym. The product is active starting from the specified start date to the end date. In case the product is already active for the user, the start and end date are updated to the transmitted dates. Endpoint: PUT /user/product Version: 1.0.0 Security: accesstoken ## Query parameters: - `userId` (string, required) The EGYM user id. Must be given unless membershipId is used. Example: "-qwn9fgz5sa3i" - `membershipId` (string) The membership id of the user. Example: "23ljlsJKLD" - `gymId` (number, required) The id of the EGYM gym. Example: 234 ## Request fields (application/json): - `productId` (integer) The id of the product. Example: "1337" - `start` (string) The date from which the specified product is active and can be used by the user. Example: "2018-09-11" - `end` (string) The date to which the specified product is active and can be used by the user. Example: "2018-10-11" ## Response 200 fields (application/json): - `productId` (integer) The id of the product. Example: "1337" - `productTitle` (string) The title of the product. Example: "PREMIUM SELECT" - `productDescription` (string) The description of the product. Example: "Enables Premium training features for the users on all EGYM machines." - `start` (string) The date from which the specified product is active and can be used by the user. Example: "2018-09-11" - `end` (string) The date to which the specified product is active and can be used by the user. Example: "2018-10-11" ## Response 4XX fields (application/json): - `error` (integer) The error code. Example: 401 - `errorText` (string) The error message. Example: "The provided user name or password is incorrect."