Assets API
Assets
https://apis.roblox.com/assets
Create Asset
POST /v1/assets
Request
curl
curl --location 'https://apis.roblox.com/assets/v1/assets' \
--header 'x-api-key: ${ApiKey}' \
--form 'request="{
\"assetType\": \"Model\",
\"displayName\": \"Name\",
\"description\": \"This is a description\",
\"creationContext\": {
\"creator\": {
\"userId\": \"${userId}\"
}
}
}"' \
--form 'fileContent=@"/filepath/model.fbx";type=model/fbx'
Response
Other Status Codes
Required Permissions
Limits
Per API Key: 60 requests every 60 seconds per IP Address
Update Asset
PATCH /v1/assets/{assetId}
Request
curl
curl --location 'https://apis.roblox.com/assets/v1/assets/{assetId}' \
--header 'x-api-key: ${ApiKey}' \
--form 'request= "{
\"assetId\": ${assetId}},
}"' \
--form 'fileContent=@"/filepath/model.fbx";type=model/fbx'
Response
Other Status Codes
Required Permissions
Limits
Per API Key: 60 requests every 60 seconds per IP Address
Get Operation
GET /v1/operations/{operationId}
Request
curl
curl --location 'https://apis.roblox.com/assets/v1/operations/{operationId}' \
--header 'x-api-key: {$ApiKey}'
Response
Other Status Codes
Required Permissions
Limits
Per API Key: 60 requests every 60 seconds per IP Address
Objects
The following objects describe payloads that are accepted or returned. See each individual endpoint for more information on when these objects are used.Asset
Attributes
assetType string
Required
assetId number
Required
creationContext CreationContext
Required
description string
Required
displayName string
Required
path string
Required
revisionId string
Required
revisionCreateTime string
Required
moderationResult ModerationResult
Required