> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mightynetworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CreateUploadSessionInput

> Autogenerated input type of CreateUploadSession



**Kind**: `input`

## Fields

**`assetKind`**: `UploadAssetKind!` (required)

---

**`assetStyle`**: `UploadAssetStyle!` (required)

---

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

**`clientRetry`**: `Boolean`

True when this grant is the client asking again after a failed attempt, rather
than a fresh user action. An automatic retry and a new upload are otherwise
identical requests, so without this a duplicate grant cannot be told from a
first one in aggregate.

---

**`contentType`**: `String`

MIME type of the source file; stored in placeholder asset metadata

---

**`fileName`**: `String!` (required)

---

**`fileSizeBytes`**: `Long!` (required)

---

**`maxParallelSupported`**: `Int`

How many part uploads this client can keep in flight. Omit it (or send 1) and
the session is planned for sequential upload, which is what every client that
does not implement concurrency should do. Declaring more than 1 lets the
server grant a wider max_parallel; it does not oblige the client to use the
full width it is granted, and it does not change the part size.

---

**`preferredChunkSizeBytes`**: `Long`

Part size this client would like, in bytes. Honored by the direct-presigned
strategy, clamped to a range whose floor is the shared default — so a client
can ask for larger parts than the default but never smaller. Larger parts mean
fewer requests and a costlier retry, since a failed part is re-uploaded whole.
Omit it to get the shared default. The server-mediated strategy ignores it.

---

**`preferredStrategy`**: `UploadStrategy`

Advisory. Must match the asset_kind's bound strategy or the manager rejects.

---

**`retryOfAssetId`**: `ID`

The asset from the attempt this grant replaces, so the two grants can be
joined. Telemetry only — it grants no access to that asset and is not
validated against it.

---

**`spaceId`**: `ID!` (required)

ID of the space to upload into — resource ID or GlobalID.



This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.