*Questo contenuto è tradotto usando AI (Beta) e potrebbe contenere errori. Per visualizzare questa pagina in inglese, clicca qui.

Place

Rappresenta un Postodi Roblox.

Attributi

pathstring

Il percorso delle risorse del Posto.

Formato: universes/{universe_id}/places/{place_id}.

createTimestring
Solo output

L'timestamp in cui il luogo è stato creato. Questa stringa è formattata come Timestamp.

updateTimestring
Solo output

L'timestamp in cui il luogo è stato aggiornato. Questa stringa è formattata come Timestamp.

displayNamestring

Il nome del Posto.

descriptionstring

La descrizione del Posto.

serverSizenumber

Il numero massimo di utenti consentiti in un singolo Server.

URL di base

https://apis.roblox.com
Risorsa Place

{
"path": "universes/123/places/123",
"createTime": "2023-07-05T12:34:56Z",
"updateTime": "2023-07-05T12:34:56Z",
"displayName": "ROBLOX Battle [OPEN]",
"description": "OPEN SOURCE! \n Feel free to check out how we made this game and ask us about it!",
"serverSize": "integer"
}

Place

Get Place

GET /cloud/v2/universes/{universe_id}/places/{place_id}

Ottiene il Postospecificato.

RichiestaParametri percorso
universe_idstring
Necessario

L'ID dell'universo.

place_idstring
Necessario

L'ID del luogo.

RispostaPlace
GET /cloud/v2/universes/{universe_id}/places/{place_id}

curl -L -X GET 'https://apis.roblox.com/cloud/v2/universes/{universe_id}/places/{place_id}' \
-H 'x-api-key: {your-api-key}'
Risposta

{
"path": "universes/123/places/123",
"createTime": "2023-07-05T12:34:56Z",
"updateTime": "2023-07-05T12:34:56Z",
"displayName": "ROBLOX Battle [OPEN]",
"description": "OPEN SOURCE! \n Feel free to check out how we made this game and ask us about it!",
"serverSize": "integer"
}

Place

Update Place

PATCH /cloud/v2/universes/{universe_id}/places/{place_id}

Aggiorna il Postospecificato.

Campi
universe.place:write
RichiestaParametri percorso
universe_idstring
Necessario

L'ID dell'universo.

place_idstring
Necessario

L'ID del luogo.

Parametri query
updateMaskstring

L'elenco dei campi da Aggiornarmento. Questa stringa è formattata come Timestamp.

Corpo della richiestaPlace
RispostaPlace
PATCH /cloud/v2/universes/{universe_id}/places/{place_id}

curl -L -X PATCH 'https://apis.roblox.com/cloud/v2/universes/{universe_id}/places/{place_id}?updateMask={string}' \
-H 'x-api-key: {your-api-key}' \
-H 'Content-Type: application/json' \
--data '{
"displayName": "ROBLOX Battle [OPEN]",
"description": "OPEN SOURCE! \n Feel free to check out how we made this game and ask us about it!",
"serverSize": "integer"
}'
Risposta

{
"path": "universes/123/places/123",
"createTime": "2023-07-05T12:34:56Z",
"updateTime": "2023-07-05T12:34:56Z",
"displayName": "ROBLOX Battle [OPEN]",
"description": "OPEN SOURCE! \n Feel free to check out how we made this game and ask us about it!",
"serverSize": "integer"
}