*Este contenido se traduce usando la IA (Beta) y puede contener errores. Para ver esta página en inglés, haz clic en aquí.

Place

Representa un lugar de Roblox.

Atributos

pathstring

El camino de recursos del lugar.

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

createTimestring
Solo salida

La fecha y hora en la que se creó el lugar. Esta cadena está formateada como Timestamp.

updateTimestring
Solo salida

La fecha y hora en la que se actualizó el lugar. Esta cadena está formateada como Timestamp.

displayNamestring

El nombre del lugar.

descriptionstring

La descripción del lugar.

serverSizenumber

El número máximo de usuarios permitidos en un solo servidor.

URL base

https://apis.roblox.com
El recurso 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}

Obtiene el lugar especificado.

SolicitudParámetros de ruta
universe_idstring
Obligatorio

La identificación del universo.

place_idstring
Obligatorio

La identificación del lugar.

RespuestaPlace
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}'
Respuesta

{
"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}

Actualiza el lugar especificado.

Ámbitos
universe.place:write
SolicitudParámetros de ruta
universe_idstring
Obligatorio

La identificación del universo.

place_idstring
Obligatorio

La identificación del lugar.

Parámetros de consulta
updateMaskstring

La lista de campos para actualización. Esta cadena está formateada como Timestamp.

Solicitar cuerpoPlace
RespuestaPlace
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"
}'
Respuesta

{
"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"
}