Standard Data Stores
Datastores
https://apis.roblox.com/datastores
Los siguientes extremos están disponibles en rutas relativas a la URL base.List Data Stores
GET /v1/universes/{universeId}/standard-datastores
Parámetros
universeId number
Path
Obligatorio
cursor string
limit number
prefix string
Solicitud
curl
curl --include --location --request GET "https://apis.roblox.com/datastores/v1/universes/3310576216/standard-datastores" \
--header "x-api-key: ${API_KEY}" \
--get \
-d "prefix=Player" \
-d "limit=5"
Respuesta
Permisos obligatorios
Entries
https://apis.roblox.com/datastores
Los siguientes extremos están disponibles en rutas relativas a la URL base.List Entries
GET /v1/universes/{universeId}/standard-datastores/datastore/entries
Parámetros
universeId number
Path
Obligatorio
datastoreName string
scope string
allScopes boolean
prefix string
cursor string
limit number
Solicitud
curl
curl --include --location --request GET "https://apis.roblox.com/datastores/v1/universes/3310576216/standard-datastores/datastore/entries" \
--header "x-api-key: ${API_KEY}" \
--get \
-d "datastoreName=Coins" \
-d "prefix=" \
-d "limit=5"
Respuesta
Permisos obligatorios
Get Entry
GET /v1/universes/{universeId}/standard-datastores/datastore/entries/entry
Parámetros
universeId number
Path
Obligatorio
datastoreName string
entryKey string
scope string
Solicitud
curl
curl --include --location --request GET "https://apis.roblox.com/datastores/v1/universes/3310576216/standard-datastores/datastore/entries/entry" \
--header "x-api-key: ${API_KEY}" \
--get \
-d "datastoreName=Coins" \
-d "entryKey=269323"
Respuesta
204 - No Content
Permisos obligatorios
Set Entry
POST /v1/universes/{universeId}/standard-datastores/datastore/entries/entry
Parámetros
universeId number
Path
Obligatorio
datastoreName string
entryKey string
matchVersion string
exclusiveCreate boolean
scope string
roblox-entry-attributes string
Header
roblox-entry-userids string
Header
content-md5 string
Header
Solicitud
curl
curl --include --location --request POST "https://apis.roblox.com/datastores/v1/universes/3310576216/standard-datastores/datastore/entries/entry?datastoreName=Coins&entryKey=269323" \
--header "x-api-key: ${API_KEY}" \
--header "content-md5: IGPBYI1uC6+AJJxC4r5YBA==" \
--header "content-type: application/json" \
--header "roblox-entry-userids: [269323]" \
--header "roblox-entry-attributes: {}" \
--d "value"
Respuesta
Permisos obligatorios
Delete Entry
DELETE /v1/universes/{universeId}/standard-datastores/datastore/entries/entry
Parámetros
universeId number
Path
Obligatorio
datastoreName string
entryKey string
scope string
Solicitud
curl
curl --include --location --request DELETE "https://apis.roblox.com/datastores/v1/universes/3310576216/standard-datastores/datastore/entries/entry" \
--header "x-api-key: ${API_KEY}" \
--get \
-d "datastoreName=Coins" \
-d "entryKey=269323"
Respuesta
204 - No Content
Permisos obligatorios
Increment Entry
POST /v1/universes/{universeId}/standard-datastores/datastore/entries/entry/increment
Parámetros
universeId number
Path
Obligatorio
datastoreName string
entryKey string
incrementBy number
scope string
roblox-entry-attributes string
Header
roblox-entry-userids string
Header
Solicitud
curl
curl --include --location --request POST "https://apis.roblox.com/datastores/v1/universes/3310576216/standard-datastores/datastore/entries/entry/increment" \
--header "x-api-key: ${API_KEY}" \
--header 'content-length: 0' \
--get \
-d "datastoreName=Coins" \
-d "entryKey=269323" \
-d "incrementBy=3"
Respuesta
204 - No Content
Permisos obligatorios
Get Entry Version
GET /v1/universes/{universeId}/standard-datastores/datastore/entries/entry/versions/version
Parámetros
universeId number
Path
Obligatorio
datastoreName string
entryKey string
versionId string
scope string
Solicitud
curl
curl --include --location --request GET "https://apis.roblox.com/datastores/v1/universes/3310576216/standard-datastores/datastore/entries/entry/versions/version" \
--header "x-api-key: ${API_KEY}" \
--get \
-d "datastoreName=Coins" \
-d "entryKey=269323" \
-d "versionId=08D9E6A3F2188CFF.0000000003.08D9E6DE485A7680.01"
Respuesta
Permisos obligatorios
Límites
Por clave API: 100 solicitudes cada 60 segundos por dirección IP
List Entry Versions
GET /v1/universes/{universeId}/standard-datastores/datastore/entries/entry/versions
Parámetros
universeId number
Path
Obligatorio
datastoreName string
entryKey string
scope string
cursor string
startTime string
endTime string
sortOrder string
limit number
Solicitud
curl
curl --include --location --request GET "https://apis.roblox.com/datastores/v1/universes/3310576216/standard-datastores/datastore/entries/entry/versions" \
--header "x-api-key: ${API_KEY}" \
--get \
-d "datastoreName=Coins" \
-d "entryKey=269323" \
-d "limit=5"
Respuesta
Otros códigos de estado
Permisos obligatorios
Objetos
Los siguientes objetos describen cargas que son aceptadas o devueltas. Ve cada extremo para más información sobre cuándo se utilizan estos objetos.DataStore
Atributos
name string
Obligatorio
createdTime string
EntryVersion
Atributos
version string
Obligatorio
deleted boolean
Obligatorio
contentLength number
Obligatorio
createdTime string
Obligatorio
objectCreatedTime string
Obligatorio