# 更新当前用户的公会 根据用户属性更新当前用户的公会。领取奖励链中在上一个公会未领取的所有奖励。如果用户之前在某个公会中,但现在不在,则其公会身份将被撤销。如果用户更改了公会,则公会将被更改。 Endpoint: PUT /v2/project/{project_id}/user/clan/update Version: 2.0.0 Security: XsollaLoginUserJWT ## Path parameters: - `project_id` (integer, required) 项目ID。 ## Response 200 fields (application/json): - `reward` (array) - `reward.bundle_type` (string) 捆绑包类型。如果商品类型为捆绑包,则返回。 Enum: "standard", "virtual_currency_package" - `reward.description` (string) 商品描述。 Example: "Super box with items" - `reward.image_url` (string) 图像URL。 Example: "https://image.example.com" - `reward.name` (string) 商品名称。 Example: "Super box" - `reward.quantity` (integer) 商品数量。 Example: 2 - `reward.sku` (string) 唯一商品ID。 SKU只能包含大小写英文字母和数字字符、句点、破折号和下划线。 Example: "booster_mega_1" - `reward.type` (string) 商品类型。 Example: "bundle" ## Response 401 fields (application/json): - `errorCode` (integer) Example: 1501 - `errorMessage` (string) Example: "[0401-1501]: Authorization failed: Provide authorization" - `statusCode` (integer) Example: 401