DataStoreEntry

  • CHEMINS POUR RESSOURCES
  • /cloud/v2/universes/{universe}/data-stores/{data-store}/entries
  • /cloud/v2/universes/{universe}/data-stores/{data-store}/scopes/{scope}/entries

Attributs

pathstring
createTimestring
Sortie seule
revisionIdstring
Immuable
Sortie seule
revisionCreateTimestring
Sortie seule
stateEnum<string>
Sortie seule
etagstring
valueJSON value
idstring
Sortie seule
usersarray<string>
attributesobject
URL de base

https://apis.roblox.com/cloud
La ressource 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
Bêta

GET /cloud/v2/universes/{universe}/data-stores/{data-store}/entries
Périmètres d'application
universe-datastores.objects:list
RequêteParamètres du chemin
universestring
Requis
data-storestring
Requis
Paramètres de requête
maxPageSizenumber
pageTokenstring
filterstring
showDeletedboolean
Réponse
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}'
Réponse

{
"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
Bêta

POST /cloud/v2/universes/{universe}/data-stores/{data-store}/entries
Périmètres d'application
universe-datastores.objects:create
RequêteParamètres du chemin
universestring
Requis
data-storestring
Requis
Paramètres de requête
idstring
Corps de la requêteDataStoreEntry
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" \
}'
Réponse

{
"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
Bêta

GET /cloud/v2/universes/{universe}/data-stores/{data-store}/entries/{entry}
Périmètres d'application
universe-datastores.objects:read
RequêteParamètres du chemin
universestring
Requis
data-storestring
Requis
entrystring
Requis
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}'
Réponse

{
"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
Bêta

DELETE /cloud/v2/universes/{universe}/data-stores/{data-store}/entries/{entry}
Périmètres d'application
universe-datastores.objects:delete
RequêteParamètres du chemin
universestring
Requis
data-storestring
Requis
entrystring
Requis
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
Bêta

PATCH /cloud/v2/universes/{universe}/data-stores/{data-store}/entries/{entry}
Périmètres d'application
universe-datastores.objects:update
RequêteParamètres du chemin
universestring
Requis
data-storestring
Requis
entrystring
Requis
Paramètres de requête
allowMissingboolean
Corps de la requêteDataStoreEntry
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" \
}'
Réponse

{
"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
Bêta

POST /cloud/v2/universes/{universe}/data-stores/{data-store}/entries/{entry}:increment
Périmètres d'application
universe-datastores.objects:createuniverse-datastores.objects:update
RequêteParamètres du chemin
universestring
Requis
data-storestring
Requis
entrystring
Requis
Corps de la requête
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" \
}'
Réponse

{
"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
Bêta

GET /cloud/v2/universes/{universe}/data-stores/{data-store}/entries/{entry}:listRevisions
Périmètres d'application
universe-datastores.versions:list
RequêteParamètres du chemin
universestring
Requis
data-storestring
Requis
entrystring
Requis
Paramètres de requête
maxPageSizenumber
pageTokenstring
filterstring
Réponse
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}'
Réponse

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