Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
POST /datastores/v1/universes/{universeId}/standard-datastores/datastore/entries/entry — openapi
Set entry.
Sets the value, metadata and user IDs associated with an entry.
Endpoint
Method: POST
Path: /datastores/v1/universes/{universeId}/standard-datastores/datastore/entries/entry
Servers:
https://apis.roblox.com
Parameters
| Name | Location | Required | Description |
|---|---|---|---|
| universeId | path | true | 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 | query | false | The name of the data store. |
| entryKey | query | false | The key identifying the entry. |
| matchVersion | query | false | Provide to update only if the current version matches this. |
| exclusiveCreate | query | false | Create the entry only if it does not exist. |
| scope | query | false | The value is global by default. See Scopes. |
| roblox-entry-attributes | header | false | 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 | header | false | Comma-separated list of Roblox user IDs tagged with the entry. If not provided, existing user IDs are cleared. |
| content-md5 | header | false | The base64-encoded MD5 checksum of the content. See Content-MD5. |
[
{
"name": "universeId",
"in": "path",
"required": true,
"description": "The identifier of the experience with data stores that you want to access. You can find your experience's universe ID on Creator Hub.",
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"name": "datastoreName",
"in": "query",
"description": "The name of the data store.",
"schema": {
"type": "string",
"nullable": true
}
},
{
"name": "entryKey",
"in": "query",
"description": "The key identifying the entry.",
"schema": {
"type": "string",
"nullable": true
}
},
{
"name": "matchVersion",
"in": "query",
"description": "Provide to update only if the current version matches this.",
"schema": {
"type": "string",
"default": null,
"nullable": true
}
},
{
"name": "exclusiveCreate",
"in": "query",
"description": "Create the entry only if it does not exist.",
"schema": {
"type": "boolean",
"default": false
}
},
{
"name": "scope",
"in": "query",
"description": "The value is `global` by default. See [Scopes](/cloud-services/data-stores/index.md#scopes).",
"schema": {
"type": "string",
"default": "global",
"nullable": true
}
},
{
"name": "roblox-entry-attributes",
"in": "header",
"description": "Attributes to be associated with new version of the entry. Serialized by JSON map objects. If not provided, existing attributes are cleared.",
"schema": {
"type": "string",
"nullable": true
}
},
{
"name": "roblox-entry-userids",
"in": "header",
"description": "Comma-separated list of Roblox user IDs tagged with the entry. If not provided, existing user IDs are cleared.",
"schema": {
"type": "string",
"nullable": true
}
},
{
"name": "content-md5",
"in": "header",
"description": "The base64-encoded MD5 checksum of the content. See [Content-MD5](/cloud/guides/data-stores/request-handling.md#content-md5).",
"schema": {
"type": "string",
"nullable": true
}
}
] Request Body
{
"content": {
"application/json": {
"schema": {
"maxLength": 4194304,
"type": "string"
}
}
}
} Responses
| Status | Description |
|---|---|
| 200 |
{
"200": {
"description": "",
"content": {
"text/json": {
"schema": {
"$ref": "#/components/schemas/EntryVersion"
}
}
}
}
} Authentication
{
"security": [
{
"roblox-api-key": []
}
],
"securitySchemes": {
"roblox-api-key": {
"type": "apiKey",
"description": "A configurable key that allows granular access to Roblox resources. See https://create.roblox.com/docs/cloud/auth/api-keys for more information.",
"name": "x-api-key",
"in": "header"
},
"roblox-legacy-cookie": {
"type": "apiKey",
"description": "A browser cookie that represents the identity of a Roblox user. DO NOT SHARE THIS. Sharing this will allow someone to log in as you and to steal your Robux and items. We do not recommend using cookies to call endpoints. When possible, use API keys with the x-api-key header or OAuth 2.0 instead for authentication.",
"in": "cookie",
"name": ".ROBLOSECURITY"
},
"roblox-oauth2": {
"type": "oauth2",
"description": "Build or authorize apps to access Roblox resources. See https://create.roblox.com/docs/cloud/auth/oauth2-overview for more information.",
"flows": {
"authorizationCode": {
"authorizationUrl": "https://apis.roblox.com/oauth/v1/authorize",
"tokenUrl": "https://apis.roblox.com/oauth/v1/token",
"refreshUrl": "https://apis.roblox.com/oauth/v1/token",
"scopes": {}
}
}
}
}
} Related Schemas
Complete Operation Definition
{
"tags": [
"Data and memory stores"
],
"summary": "Set entry.",
"description": "Sets the value, metadata and user IDs associated with an entry.",
"operationId": "Entries_SetEntryAsync",
"x-roblox-cloud-api-operation-name": "Set Entry",
"x-roblox-stability": "BETA",
"parameters": [
{
"name": "universeId",
"in": "path",
"required": true,
"description": "The identifier of the experience with data stores that you want to access. You can find your experience's universe ID on Creator Hub.",
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"name": "datastoreName",
"in": "query",
"description": "The name of the data store.",
"schema": {
"type": "string",
"nullable": true
}
},
{
"name": "entryKey",
"in": "query",
"description": "The key identifying the entry.",
"schema": {
"type": "string",
"nullable": true
}
},
{
"name": "matchVersion",
"in": "query",
"description": "Provide to update only if the current version matches this.",
"schema": {
"type": "string",
"default": null,
"nullable": true
}
},
{
"name": "exclusiveCreate",
"in": "query",
"description": "Create the entry only if it does not exist.",
"schema": {
"type": "boolean",
"default": false
}
},
{
"name": "scope",
"in": "query",
"description": "The value is `global` by default. See [Scopes](/cloud-services/data-stores/index.md#scopes).",
"schema": {
"type": "string",
"default": "global",
"nullable": true
}
},
{
"name": "roblox-entry-attributes",
"in": "header",
"description": "Attributes to be associated with new version of the entry. Serialized by JSON map objects. If not provided, existing attributes are cleared.",
"schema": {
"type": "string",
"nullable": true
}
},
{
"name": "roblox-entry-userids",
"in": "header",
"description": "Comma-separated list of Roblox user IDs tagged with the entry. If not provided, existing user IDs are cleared.",
"schema": {
"type": "string",
"nullable": true
}
},
{
"name": "content-md5",
"in": "header",
"description": "The base64-encoded MD5 checksum of the content. See [Content-MD5](/cloud/guides/data-stores/request-handling.md#content-md5).",
"schema": {
"type": "string",
"nullable": true
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"maxLength": 4194304,
"type": "string"
}
}
}
},
"responses": {
"200": {
"description": "",
"content": {
"text/json": {
"schema": {
"$ref": "#/components/schemas/EntryVersion"
}
}
}
}
},
"security": [
{
"roblox-api-key": []
}
],
"x-roblox-scopes": [
{
"name": "universe-datastores.objects:update",
"description": "If the entry key being set exists."
},
{
"name": "universe-datastores.objects:create",
"description": "If the entry key being set doesn't exist."
},
{
"name": "universe-datastores.control:create",
"description": "If the Data Store the entry key is in doesn't exist."
}
],
"x-roblox-cloud-api-operation": true,
"x-roblox-lua-equivalent": "GlobalDataStore:SetAsync",
"x-roblox-cloud-api-operation-code-samples": [
{
"language": "curl",
"script": "curl --include --location --request POST \"https://apis.roblox.com/datastores/v1/universes/3310576216/standard-datastores/datastore/entries/entry?datastoreName=Coins&entryKey=269323\" \\\n--header \"x-api-key: ${API_KEY}\" \\\n--header \"content-md5: IGPBYI1uC6+AJJxC4r5YBA==\" \\\n--header \"content-type: application/json\" \\\n--header \"roblox-entry-userids: [269323]\" \\\n--header \"roblox-entry-attributes: {}\" \\\n--d \"value\""
}
],
"x-roblox-rate-limits": {
"description": "See [Throttling](/cloud/guides/data-stores/throttling.md).",
"perApiKeyOwner": {
"period": "MINUTE",
"maxInPeriod": 5000
}
},
"x-roblox-recommended-alternatives": [
{
"url": "https://apis.roblox.com/cloud/v2/universes/{universe_id}/data-stores/{data_store_id}/entries/{entry_id}",
"httpMethod": "PATCH",
"documentationUrl": "https://create.roblox.com/docs/cloud/reference/features/storage#Cloud_UpdateDataStoreEntry__Using_Universes_DataStores"
},
{
"url": "https://apis.roblox.com/cloud/v2/universes/{universe_id}/data-stores/{data_store_id}/scopes/{scope_id}/entries/{entry_id}",
"httpMethod": "PATCH",
"documentationUrl": "https://create.roblox.com/docs/cloud/reference/features/storage#Cloud_UpdateDataStoreEntry__Using_Universes_DataStores_Scopes"
}
],
"x-roblox-engine-usability": {
"apiKeyWithHttpService": false
},
"externalDocs": {
"url": "https://create.roblox.com/docs/cloud/reference/features/storage#Entries_SetEntryAsync"
}
}