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

# returnCommentImageUploadCreate

> Start an image upload for a return comment. PUT the file's raw bytes to the returned `url` before `expiresAt`, then pass its `uploadId` to `returnCommentCreate`. Counts against the image upload quota; over the quota returns THROTTLED.

**Required scopes:** [`returns_write`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-returns_write)

**Store must have one of:** `RETURNS`, `PACKAGE_PROTECTION`, `OMS`, `WARRANTIES`, `RECYCLING`, `WITHDRAWALS`

## Arguments

**byteSize** `Int!` *required*

The file's exact size in bytes, at most 10000000. It is signed into the URL, so a file of any other size is rejected.

**contentType** `[ReturnCommentImageContentType!](/docs/api-reference/v3/reference/returns/return-comment-image-content-type)` *required*

The image's file type. It is signed into the URL, so the PUT must send it as `Content-Type`.

## Returns

**returnCommentImageUploadCreate** `[ReturnCommentImageUpload!](/docs/api-reference/v3/reference/returns/return-comment-image-upload)` *required*

A place to PUT one image file for a return comment, so its bytes never pass through the API request.

**fields**

**expiresAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When `url` stops accepting the file.

**uploadId** `String!` *required*

Pass in `imageUploadIds` to `returnCommentCreate` once the file is uploaded.

**url** `String!` *required*

Where to PUT the file's raw bytes, with the `Content-Type` header set to the upload's content type, e.g. `curl --fail -X PUT -H "Content-Type: image/png" --upload-file ./photo.png "<url>"`.

## Example

```graphql theme={null}
mutation {
  returnCommentImageUploadCreate(byteSize: 10, contentType: GIF) {
    expiresAt
    uploadId
    url
  }
}
```


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