宇宙资源路径。
格式:universes/{universe_id}.
*此内容使用人工智能(Beta)翻译,可能包含错误。若要查看英文页面,请点按 此处。
代表 Roblox 体验。
宇宙资源路径。
格式:universes/{universe_id}.
宇宙创建时的时戳。. 此字符串格式为 FieldMask。
宇宙最后更新时的时戳。. 此字符串格式为 FieldMask。
宇宙的名称。
该字段可以通过更新根位置的名称来更新。.
宇宙的描述。
该字段可以通过更新根位置的描述来更新。.
宇宙是用户拥有的。.
宇宙是集体所有的。.
宇宙是否公开可访问。
可能的值:
| 值 | 描述 | | --- | --- | | VISIBILITY_UNSPECIFIED | 使用此值进行更新时,将在后端上发生错误。| | 公共 | 宇宙是公共的。| | 私有 | 宇宙是私有的。如果宇宙的可见度设置为私人,所有激活的玩家将立即从所有运行的服务器中删除。|. 可能的值:
Facebook 的社交链接。.
Twitter 的社交链接。.
Youtube 的社交链接。.
Twitch 的社交链接。.
Discord 社交链接。.
Roblox 群组的社交链接。.
公会的社交链接。.
体验中的用户是否启用语音聊天。
更新此值不会影响运行中的服务器。.
该宇宙的年龄评级。
可能的值:
| 值 | 描述 | | --- | --- | | AGE_RATING_UNSPECIFIED | 年龄评分未设置。| | AGE_RATING_ALL | 支持所有用户。| | AGE_RATING_9_PLUS | 支持 9 岁及以上的用户。| | AGE_RATING_13_PLUS | 支持 13 岁及以上的用户。| | AGE_RATING_17_PLUS | 支持 17 岁及以上的用户。 |. 可能的值:
代表私服的价格在 Robux 上。
如果未设置,私有服务器不支持该宇宙。
只能在使用领域面具时禁用。
将设置为 null 将禁用所有激活的私有服务器。
更改价格将取消所有私服订阅。.
玩家是否可以通过桌面加入体验。.
玩家是否可以通过移动设备加入体验。.
是否允许玩家通过平板电脑加入体验。.
玩家是否可以通过控制台加入体验。.
玩家是否可以通过 VR 加入体验。.
https://apis.roblox.com
{
"path": "universes/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!",
"user": "string",
"visibility": "VISIBILITY_UNSPECIFIED",
"facebookSocialLink": {
"title": "string",
"uri": "string"
},
"twitterSocialLink": {
"title": "string",
"uri": "string"
},
"youtubeSocialLink": {
"title": "string",
"uri": "string"
},
"twitchSocialLink": {
"title": "string",
"uri": "string"
},
"discordSocialLink": {
"title": "string",
"uri": "string"
},
"robloxGroupSocialLink": {
"title": "string",
"uri": "string"
},
"guildedSocialLink": {
"title": "string",
"uri": "string"
},
"voiceChatEnabled": true,
"ageRating": "AGE_RATING_UNSPECIFIED",
"privateServerPriceRobux": "integer",
"desktopEnabled": true,
"mobileEnabled": true,
"tabletEnabled": true,
"consoleEnabled": true,
"vrEnabled": true
}
curl -L -X GET 'https://apis.roblox.com/cloud/v2/universes/{universe_id}' \
-H 'x-api-key: {your-api-key}'
{
"path": "universes/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!",
"user": "string",
"visibility": "VISIBILITY_UNSPECIFIED",
"facebookSocialLink": {
"title": "string",
"uri": "string"
},
"twitterSocialLink": {
"title": "string",
"uri": "string"
},
"youtubeSocialLink": {
"title": "string",
"uri": "string"
},
"twitchSocialLink": {
"title": "string",
"uri": "string"
},
"discordSocialLink": {
"title": "string",
"uri": "string"
},
"robloxGroupSocialLink": {
"title": "string",
"uri": "string"
},
"guildedSocialLink": {
"title": "string",
"uri": "string"
},
"voiceChatEnabled": true,
"ageRating": "AGE_RATING_UNSPECIFIED",
"privateServerPriceRobux": "integer",
"desktopEnabled": true,
"mobileEnabled": true,
"tabletEnabled": true,
"consoleEnabled": true,
"vrEnabled": true
}
更新指定的宇宙。
该方法保证返回所有更新的字段。此方法还可能返回完整资源。
宇宙ID。.
要更新的字段列表。. 此字符串格式为 FieldMask。
curl -L -X PATCH 'https://apis.roblox.com/cloud/v2/universes/{universe_id}?updateMask={string}' \
-H 'x-api-key: {your-api-key}' \
-H 'Content-Type: application/json' \
--data '{
"facebookSocialLink": {
"title": "string",
"uri": "string"
},
"twitterSocialLink": {
"title": "string",
"uri": "string"
},
"youtubeSocialLink": {
"title": "string",
"uri": "string"
},
"twitchSocialLink": {
"title": "string",
"uri": "string"
},
"discordSocialLink": {
"title": "string",
"uri": "string"
},
"robloxGroupSocialLink": {
"title": "string",
"uri": "string"
},
"guildedSocialLink": {
"title": "string",
"uri": "string"
},
"voiceChatEnabled": true,
"privateServerPriceRobux": "integer",
"desktopEnabled": true,
"mobileEnabled": true,
"tabletEnabled": true,
"consoleEnabled": true,
"vrEnabled": true
}'
{
"path": "universes/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!",
"user": "string",
"visibility": "VISIBILITY_UNSPECIFIED",
"facebookSocialLink": {
"title": "string",
"uri": "string"
},
"twitterSocialLink": {
"title": "string",
"uri": "string"
},
"youtubeSocialLink": {
"title": "string",
"uri": "string"
},
"twitchSocialLink": {
"title": "string",
"uri": "string"
},
"discordSocialLink": {
"title": "string",
"uri": "string"
},
"robloxGroupSocialLink": {
"title": "string",
"uri": "string"
},
"guildedSocialLink": {
"title": "string",
"uri": "string"
},
"voiceChatEnabled": true,
"ageRating": "AGE_RATING_UNSPECIFIED",
"privateServerPriceRobux": "integer",
"desktopEnabled": true,
"mobileEnabled": true,
"tabletEnabled": true,
"consoleEnabled": true,
"vrEnabled": true
}
向宇宙的实时服务器发布消息。
服务器可以通过 消息传递服务 消耗消息。
宇宙ID。.
要发布消息的主题。.
要发布的消息。.
curl -L -X POST 'https://apis.roblox.com/cloud/v2/universes/{universe_id}:publishMessage' \
-H 'x-api-key: {your-api-key}' \
-H 'Content-Type: application/json' \
--data '{
"topic": "my-topic",
"message": "Hello, world!"
}'
如果新版本的体验已发布,重启所有活跃的服务器以特定宇宙,否则不会。用于发布体验更新。
宇宙ID。.
curl -L -X POST 'https://apis.roblox.com/cloud/v2/universes/{universe_id}:restartServers' \
-H 'x-api-key: {your-api-key}' \
-H 'Content-Type: application/json' \
--data '{}'
{}