---
title: "POST /initiate-upload"
method: POST
path: "/initiate-upload"
tags: ["slash-attachments"]
---

# POST /initiate-upload

`POST /initiate-upload`

## Request body

- AttachmentDto
  - `tenantId` integer
  - `attachmentId` integer
  - `attachmentName` string
  - `attachmentUrl` string
  - `attachmentType` string
  - `size` integer
  - `projectId` integer
  - `spaceId` integer
  - `taskId` integer
  - `parentTaskId` integer
  - `commentId` integer
  - `createdBy` UserMinimalDto
    - `userId` integer
    - `firstName` string
    - `email` string
    - `profilePicURL` string
    - `profilePicColor` string
    - `provider` string
    - `role` OrgRoleDto
      - `orgRoleId` integer
      - `roleName` string
  - `createdTime` string, date-time
  - `taskName` string
  - `projectName` string
  - `spaceName` string
  - `chatAttachment` boolean
  - `isChatAttachment` boolean

## Response `200`

OK

---

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