LuauExecutionSessionTaskBinaryInput

Represents a large binary input that can be given to a LuauExecutionSessionTask.

Each LuauExecutionSessionTaskBinaryInput is associated with a presigned URL which can be used to upload an arbitrary object. After uploading the object, the path of the LuauExecutionSessionTaskBinaryInput can be passed when creating a LuauExecutionSessionTask to make the object available to the task.

Within the task, the contents of the object are made available within a table passed as the first agument to the script, with the key BinaryInput. The following example demonstrates how to retrieve the data:


local taskInput: LuauExecutionTaskInput = ({...})[1]
local buf: buffer = taskInput.BinaryInput

Each LuauExecutionSessionTaskBinaryInput is valid for 15 minutes from the time of creation. Within that time, in desired, you can use it to create multiple tasks for the same universe.

The uploaded binary object must be no larger than 100 MiB.

คุณลักษณะ

pathstring

The resource path of the luau execution session task binary input.

Format: universes/{universe_id}/luau-execution-session-task-binary-inputs/{luau_execution_session_task_binary_input_id}.

sizenumber
ไม่สามารถเปลี่ยนแปลงได้

The size of the binary input object to be uploaded.

The maximum allowed size is 100 MiB.

uploadUristring
เอาต์พุตเท่านั้น

Upload the binary input object using this URI.

URL หลัก

https://apis.roblox.com
แหล่งข้อมูล LuauExecutionSessionTaskBinaryInput

{
"path": "universes/123/luau-execution-session-task-binary-inputs/123e4567-e89b-12d3-a456-426655440000",
"size": "integer",
"uploadUri": "string"
}

LuauExecutionSessionTaskBinaryInput

Create Luau Execution Session Task Binary Input
เวอร์ชัน Beta

POST /cloud/v2/universes/{universe_id}/luau-execution-session-task-binary-inputs

Create a new LuauExecutionSessionTaskBinaryInput.

ขอบเขต
universe.place.luau-execution-session:write
การจำกัด
  • คีย์ API: 5 คำขอต่อนาทีสำหรับคีย์ API ทั้งหมดสำหรับผู้ใช้หรือกลุ่ม

หมายเหตุ: อัตราสูงสุดอาจต่ำกว่านี้ในช่วงที่มีการใช้งานสูง บาง Endpoints มีอัตราสูงสุดเพิ่มเติม เรียนรู้เพิ่มเติมเกี่ยวกับอัตราสูงสุด

คำขอพารามิเตอร์เส้นทาง
universe_idstring
จำเป็นต้องมี

The universe ID.

เนื้อหาคำขอLuauExecutionSessionTaskBinaryInput
การตอบกลับLuauExecutionSessionTaskBinaryInput
POST /cloud/v2/universes/{universe_id}/luau-execution-session-task-binary-inputs

curl -L -X POST 'https://apis.roblox.com/cloud/v2/universes/{universe_id}/luau-execution-session-task-binary-inputs' \
-H 'x-api-key: {your-api-key}' \
-H 'Content-Type: application/json' \
--data '{
"size": "integer"
}'
การตอบกลับ

{
"path": "universes/123/luau-execution-session-task-binary-inputs/123e4567-e89b-12d3-a456-426655440000",
"size": "integer",
"uploadUri": "string"
}