# Update a share group (add members and share) **PUT /transact-workflow/v1/users/{userId}/ShareGroup/{shareGroupId}** Replaces the share group definition, including its member list and the opportunities shared with the group. ## Servers - Production API gateway: https://gateway.lwolf.com (Production API gateway) - Environment-specific host (e.g. pre-production): https://api.pre.lwolf.com (Environment-specific host (e.g. pre-production)) ## Authentication methods - Bearer auth & Subscription key ## Parameters ### Path parameters - **userId** (string(uuid)) Unique identifier (GUID) of the acting user. All Transact Workflow resources are scoped to a user. - **shareGroupId** (string(uuid)) GUID of the share group. ### Body: application/json (object) - **shareGroupId** (string(uuid)) GUID of the share group. - **name** (string) Display name of the share group. - **opportunities** (array[object]) Opportunities (transactions) shared with the group. - **members** (array[object]) Members of the share group and their permissions. ## Responses ### 200 Successful response ### 400 The request is malformed or contains invalid parameters. #### Body: application/json (object) - **error** (string) Error code or short error name. - **message** (string) Human-readable error description. ### 401 The access token is missing, invalid, or expired. #### Body: application/json (object) - **error** (string) Error code or short error name. - **message** (string) Human-readable error description. ### 403 The caller is not permitted to perform this operation. #### Body: application/json (object) - **error** (string) Error code or short error name. - **message** (string) Human-readable error description. ### 404 The requested resource does not exist. #### Body: application/json (object) - **error** (string) Error code or short error name. - **message** (string) Human-readable error description. [Powered by Bump.sh](https://bump.sh)