Const
Param
See
Deprecated
Increment Entry · BETA
BETA
Increments the value for an entry by a given amount, or create a new entry with that amount. Returns the entry and metadata.
Metadata can be found in the response headers like the following:
content-md5: zuYxEhwuySMv0i8CitXImw== roblox-entry-version: 08D9E6A3F2188CFF.0000000001.08D9E6A3F2188CFF.01 roblox-entry-created-time: 2022-02-02T23:30:06.5388799+00:00 roblox-entry-version-created-time: 2022-02-02T23:30:06.5388799+00:00 roblox-entry-attributes: { "myAttribute": "myValue" } roblox-entry-userids: [1, 2, 3] Copy
content-md5: zuYxEhwuySMv0i8CitXImw== roblox-entry-version: 08D9E6A3F2188CFF.0000000001.08D9E6A3F2188CFF.01 roblox-entry-created-time: 2022-02-02T23:30:06.5388799+00:00 roblox-entry-version-created-time: 2022-02-02T23:30:06.5388799+00:00 roblox-entry-attributes: { "myAttribute": "myValue" } roblox-entry-userids: [1, 2, 3]
content-md5
roblox-entry-version
roblox-entry-created-time
roblox-entry-version-created-time
roblox-entry-attributes
roblox-entry-userids
Lua equivalent: GlobalDataStore:IncrementAsync Scopes: universe-datastores.objects:update, universe-datastores.objects:create, universe-datastores.control:create
GlobalDataStore:IncrementAsync
universe-datastores.objects:update
universe-datastores.objects:create
universe-datastores.control:create
universeId The identifier of the experience with data stores that you want to access. You can find your experience's universe ID on Creator Hub. datastoreName The name of the data store. entryKey The key identifying the entry. incrementBy The amount by which the entry should be incremented, or the starting value if it doesn't exist. scope The value is global by default. See Scopes. roblox-entry-attributes Attributes to be associated with new version of the entry. Serialized by JSON map objects. If not provided, existing attributes are cleared. roblox-entry-userids A comma-separated list of Roblox user IDs that the entry is tagged with. If not provided, existing user IDs are cleared. POST https://apis.roblox.com/cloud/v2/universes/{universe_id}/data-stores/{data_store_id}/entries/{entry_id}:increment POST https://apis.roblox.com/cloud/v2/universes/{universe_id}/data-stores/{data_store_id}/scopes/{scope_id}/entries/{entry_id}:increment Prefer the v2 alternative(s) listed above.
global
Increment Entry ·
BETAIncrements the value for an entry by a given amount, or create a new entry with that amount. Returns the entry and metadata.
Metadata can be found in the response headers like the following:
content-md5roblox-entry-versionroblox-entry-created-timeroblox-entry-version-created-timeroblox-entry-attributesroblox-entry-useridsLua equivalent:
GlobalDataStore:IncrementAsyncScopes:universe-datastores.objects:update,universe-datastores.objects:create,universe-datastores.control:createuniverseId The identifier of the experience with data stores that you want to access. You can find your experience's universe ID on Creator Hub. datastoreName The name of the data store. entryKey The key identifying the entry. incrementBy The amount by which the entry should be incremented, or the starting value if it doesn't exist. scope The value is
globalby default. See Scopes. roblox-entry-attributes Attributes to be associated with new version of the entry. Serialized by JSON map objects. If not provided, existing attributes are cleared. roblox-entry-userids A comma-separated list of Roblox user IDs that the entry is tagged with. If not provided, existing user IDs are cleared. POST https://apis.roblox.com/cloud/v2/universes/{universe_id}/data-stores/{data_store_id}/entries/{entry_id}:increment POST https://apis.roblox.com/cloud/v2/universes/{universe_id}/data-stores/{data_store_id}/scopes/{scope_id}/entries/{entry_id}:increment Prefer the v2 alternative(s) listed above.