Files
discoursejs/docs/sdk/models/operations/createuploadrequestbody.md

20 lines
4.7 KiB
Markdown

# CreateUploadRequestBody
## Example Usage
```typescript
import { CreateUploadRequestBody } from "@lukehagar/discoursejs/sdk/models/operations";
let value: CreateUploadRequestBody = {
type: "custom_emoji",
};
```
## Fields
| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `type` | [operations.Type](../../../sdk/models/operations/type.md) | :heavy_check_mark: | N/A |
| `file` | [File](https://developer.mozilla.org/en-US/docs/Web/API/File) \| [Blob](https://developer.mozilla.org/en-US/docs/Web/API/Blob) \| [operations.FileT](../../../sdk/models/operations/filet.md) | :heavy_minus_sign: | N/A |
| `synchronous` | *boolean* | :heavy_minus_sign: | Use this flag to return an id and url |
| `userId` | *number* | :heavy_minus_sign: | required if uploading an avatar |