Skip to content

Commit

Permalink
Replace the place creation API endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Etheroit committed Jul 10, 2024
1 parent 861c56f commit dce304a
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions mantle/rbx_api/src/places/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,12 @@ impl RobloxApi {
) -> RobloxApiResult<CreatePlaceResponse> {
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(
Expand Down

0 comments on commit dce304a

Please sign in to comment.