DataStoreEntry

  • ENDEREÇOS DE RECURSOS
  • /cloud/v2/universes/{universe}/data-stores/{data-store}/entries
  • /cloud/v2/universes/{universe}/data-stores/{data-store}/scopes/{scope}/entries

Atributos

pathstring
createTimestring
Apenas saída
revisionIdstring
Imutável
Apenas saída
revisionCreateTimestring
Apenas saída
stateEnum<string>
Apenas saída
etagstring
valueJSON value
idstring
Apenas saída
usersarray<string>
attributesobject
URL base

https://apis.roblox.com/cloud
O recurso DataStoreEntry

{
"path": "universes/123/data-stores/some-data-store/entries/some-data-store-entry",
"createTime": "2023-07-05T12:34:56Z",
"revisionId": "string",
"revisionCreateTime": "2023-07-05T12:34:56Z",
"state": "STATE_UNSPECIFIED",
"etag": "string",
"value": "JSON value",
"id": "string",
"users": [
"string"
],
"attributes": "object"
}

DataStoreEntry

List Data Store Entries
Beta

GET /cloud/v2/universes/{universe}/data-stores/{data-store}/entries
Escopos
universe-datastores.objects:list
SolicitaçãoParâmetros de endereço
universestring
Obrigatório
data-storestring
Obrigatório
Parâmetros da consulta
maxPageSizenumber
pageTokenstring
filterstring
showDeletedboolean
Resposta
nextPageTokenstring
GET /cloud/v2/universes/{universe}/data-stores/{data-store}/entries

curl -L -X GET 'https://apis.roblox.com/cloud/v2/universes/{universe}/data-stores/{data-store}/entries?maxPageSize=10&pageToken={string}&filter={string}&showDeleted={boolean}' \
-H 'x-api-key: {your-api-key}'
Resposta

{
"dataStoreEntries": [
{
"path": "universes/123/data-stores/some-data-store/entries/some-data-store-entry",
"createTime": "2023-07-05T12:34:56Z",
"revisionId": "string",
"revisionCreateTime": "2023-07-05T12:34:56Z",
"state": "STATE_UNSPECIFIED",
"etag": "string",
"value": "JSON value",
"id": "string",
"users": [
"string"
],
"attributes": "object"
}
],
"nextPageToken": "string"
}

DataStoreEntry

Create Data Store Entry
Beta

POST /cloud/v2/universes/{universe}/data-stores/{data-store}/entries
Escopos
universe-datastores.objects:create
SolicitaçãoParâmetros de endereço
universestring
Obrigatório
data-storestring
Obrigatório
Parâmetros da consulta
idstring
Requisitar corpoDataStoreEntry
POST /cloud/v2/universes/{universe}/data-stores/{data-store}/entries

curl -L -X POST 'https://apis.roblox.com/cloud/v2/universes/{universe}/data-stores/{data-store}/entries?id=my-entry' \
-H 'x-api-key: {your-api-key}' \
--data '{ \
"etag": "string", \
"value": "JSON value", \
"users": [ \
"string" \
], \
"attributes": "object" \
}'
Resposta

{
"path": "universes/123/data-stores/some-data-store/entries/some-data-store-entry",
"createTime": "2023-07-05T12:34:56Z",
"revisionId": "string",
"revisionCreateTime": "2023-07-05T12:34:56Z",
"state": "STATE_UNSPECIFIED",
"etag": "string",
"value": "JSON value",
"id": "string",
"users": [
"string"
],
"attributes": "object"
}

DataStoreEntry

Get Data Store Entry
Beta

GET /cloud/v2/universes/{universe}/data-stores/{data-store}/entries/{entry}
Escopos
universe-datastores.objects:read
SolicitaçãoParâmetros de endereço
universestring
Obrigatório
data-storestring
Obrigatório
entrystring
Obrigatório
GET /cloud/v2/universes/{universe}/data-stores/{data-store}/entries/{entry}

curl -L -X GET 'https://apis.roblox.com/cloud/v2/universes/{universe}/data-stores/{data-store}/entries/{entry}' \
-H 'x-api-key: {your-api-key}'
Resposta

{
"path": "universes/123/data-stores/some-data-store/entries/some-data-store-entry",
"createTime": "2023-07-05T12:34:56Z",
"revisionId": "string",
"revisionCreateTime": "2023-07-05T12:34:56Z",
"state": "STATE_UNSPECIFIED",
"etag": "string",
"value": "JSON value",
"id": "string",
"users": [
"string"
],
"attributes": "object"
}

DataStoreEntry

Delete Data Store Entry
Beta

DELETE /cloud/v2/universes/{universe}/data-stores/{data-store}/entries/{entry}
Escopos
universe-datastores.objects:delete
SolicitaçãoParâmetros de endereço
universestring
Obrigatório
data-storestring
Obrigatório
entrystring
Obrigatório
DELETE /cloud/v2/universes/{universe}/data-stores/{data-store}/entries/{entry}

curl -L -X DELETE 'https://apis.roblox.com/cloud/v2/universes/{universe}/data-stores/{data-store}/entries/{entry}' \
-H 'x-api-key: {your-api-key}'

DataStoreEntry

Update Data Store Entry
Beta

PATCH /cloud/v2/universes/{universe}/data-stores/{data-store}/entries/{entry}
Escopos
universe-datastores.objects:update
SolicitaçãoParâmetros de endereço
universestring
Obrigatório
data-storestring
Obrigatório
entrystring
Obrigatório
Parâmetros da consulta
allowMissingboolean
Requisitar corpoDataStoreEntry
PATCH /cloud/v2/universes/{universe}/data-stores/{data-store}/entries/{entry}

curl -L -X PATCH 'https://apis.roblox.com/cloud/v2/universes/{universe}/data-stores/{data-store}/entries/{entry}?allowMissing={boolean}' \
-H 'x-api-key: {your-api-key}' \
--data '{ \
"etag": "string", \
"value": "JSON value", \
"users": [ \
"string" \
], \
"attributes": "object" \
}'
Resposta

{
"path": "universes/123/data-stores/some-data-store/entries/some-data-store-entry",
"createTime": "2023-07-05T12:34:56Z",
"revisionId": "string",
"revisionCreateTime": "2023-07-05T12:34:56Z",
"state": "STATE_UNSPECIFIED",
"etag": "string",
"value": "JSON value",
"id": "string",
"users": [
"string"
],
"attributes": "object"
}

DataStoreEntry

Increment Data Store Entry
Beta

POST /cloud/v2/universes/{universe}/data-stores/{data-store}/entries/{entry}:increment
Escopos
universe-datastores.objects:createuniverse-datastores.objects:update
SolicitaçãoParâmetros de endereço
universestring
Obrigatório
data-storestring
Obrigatório
entrystring
Obrigatório
Requisitar corpo
amountnumber
usersarray<string>
attributesobject
POST /cloud/v2/universes/{universe}/data-stores/{data-store}/entries/{entry}:increment

curl -L -X POST 'https://apis.roblox.com/cloud/v2/universes/{universe}/data-stores/{data-store}/entries/{entry}:increment' \
-H 'x-api-key: {your-api-key}' \
--data '{ \
"amount": "number", \
"users": [ \
"string" \
], \
"attributes": "object" \
}'
Resposta

{
"path": "universes/123/data-stores/some-data-store/entries/some-data-store-entry",
"createTime": "2023-07-05T12:34:56Z",
"revisionId": "string",
"revisionCreateTime": "2023-07-05T12:34:56Z",
"state": "STATE_UNSPECIFIED",
"etag": "string",
"value": "JSON value",
"id": "string",
"users": [
"string"
],
"attributes": "object"
}

DataStoreEntry

List Data Store Entry Revisions
Beta

GET /cloud/v2/universes/{universe}/data-stores/{data-store}/entries/{entry}:listRevisions
Escopos
universe-datastores.versions:list
SolicitaçãoParâmetros de endereço
universestring
Obrigatório
data-storestring
Obrigatório
entrystring
Obrigatório
Parâmetros da consulta
maxPageSizenumber
pageTokenstring
filterstring
Resposta
nextPageTokenstring
GET /cloud/v2/universes/{universe}/data-stores/{data-store}/entries/{entry}:listRevisions

curl -L -X GET 'https://apis.roblox.com/cloud/v2/universes/{universe}/data-stores/{data-store}/entries/{entry}:listRevisions?maxPageSize=10&pageToken={string}&filter={string}' \
-H 'x-api-key: {your-api-key}'
Resposta

{
"dataStoreEntries": [
{
"path": "universes/123/data-stores/some-data-store/entries/some-data-store-entry",
"createTime": "2023-07-05T12:34:56Z",
"revisionId": "string",
"revisionCreateTime": "2023-07-05T12:34:56Z",
"state": "STATE_UNSPECIFIED",
"etag": "string",
"value": "JSON value",
"id": "string",
"users": [
"string"
],
"attributes": "object"
}
],
"nextPageToken": "string"
}