From ce0cbf6c4cc1ab953ac7e4d646954580de0dcf08 Mon Sep 17 00:00:00 2001 From: Jacob I <24721341+jisham318@users.noreply.github.com> Date: Tue, 12 Mar 2024 07:05:50 -0500 Subject: [PATCH] change the endpoint for updating gamepasses, resolving #211 --- mantle/rbx_api/CHANGELOG.md | 4 ++-- mantle/rbx_api/src/game_passes/mod.rs | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/mantle/rbx_api/CHANGELOG.md b/mantle/rbx_api/CHANGELOG.md index 42ffd79..e863a8e 100644 --- a/mantle/rbx_api/CHANGELOG.md +++ b/mantle/rbx_api/CHANGELOG.md @@ -1,7 +1,7 @@ # rbx_api -## 0.3.0 +## 0.3.1 ### Minor Changes -- add support for the grant asset permission endpoint +- change the endpoint for updating gamepasses, resolving #211 diff --git a/mantle/rbx_api/src/game_passes/mod.rs b/mantle/rbx_api/src/game_passes/mod.rs index f6c8fef..cc3c339 100644 --- a/mantle/rbx_api/src/game_passes/mod.rs +++ b/mantle/rbx_api/src/game_passes/mod.rs @@ -106,7 +106,6 @@ impl RobloxApi { icon_file: Option, ) -> RobloxApiResult { let mut form = Form::new() - .text("id", game_pass_id.to_string()) .text("name", name) .text("description", description) .text("isForSale", price.is_some().to_string()); @@ -119,7 +118,7 @@ impl RobloxApi { let req = self .client - .post("https://www.roblox.com/game-pass/update") + .post(format!("https://apis.roblox.com/game-passes/v1/game-passes/{}/details", game_pass_id)) .multipart(form); handle(req).await?;