---
title: "Create Luau Execution Session Task Binary Input"
method: POST
path: "/cloud/v2/universes/{universe_id}/luau-execution-session-task-binary-inputs"
tags: ["Luau Execution"]
---

# Create Luau Execution Session Task Binary Input

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

Create a new `LuauExecutionSessionTaskBinaryInput`.

## Path parameters

- `universe_id` string, required

## Request body

- 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 argument 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.
  - `path` string — 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}`
  - `size` integer — The size of the binary input object to be uploaded. The maximum allowed size is 100 MiB.
  - `uploadUri` string — Upload the binary input object using this URI.

## Response `200`

OK

- 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 argument 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.
  - `path` string — 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}`
  - `size` integer — The size of the binary input object to be uploaded. The maximum allowed size is 100 MiB.
  - `uploadUri` string — Upload the binary input object using this URI.

---

[API](https://skmtc.net/roblox/apis/roblox-api.md) · [All operations](https://skmtc.net/roblox/apis/roblox-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/roblox/roblox-api/versions/e15802062270/schema)
