From dce304a531626417f4322ca72847e1aaf65ec2e9 Mon Sep 17 00:00:00 2001 From: Etheroit <42714242+Etheroit@users.noreply.github.com> Date: Wed, 10 Jul 2024 17:19:18 +0000 Subject: [PATCH] Replace the place creation API endpoint --- mantle/rbx_api/src/places/mod.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/mantle/rbx_api/src/places/mod.rs b/mantle/rbx_api/src/places/mod.rs index b7656cf..4efe632 100644 --- a/mantle/rbx_api/src/places/mod.rs +++ b/mantle/rbx_api/src/places/mod.rs @@ -153,14 +153,12 @@ impl RobloxApi { ) -> RobloxApiResult { let req = self .client - .post("https://www.roblox.com/ide/places/createV2") - .header(header::CONTENT_LENGTH, 0) - .query(&[ - ("universeId", &experience_id.to_string()), - ("templatePlaceIdToUse", &95206881.to_string()), - ]); + .post(format!("https://apis.roblox.com/universes/v1/user/universes/{}/places", experience_id)) + .json(&json!({ + "templatePlaceId": 95206881 + })); - handle_as_json_with_status(req).await + handle_as_json(req).await } pub async fn configure_place(