---
title: "Get link for uploading (Google Drive storage only)"
method: POST
path: "/images/buildGDUploadLink/{assetId}"
tags: ["Assets"]
---

# Get link for uploading (Google Drive storage only)

`POST /images/buildGDUploadLink/{assetId}`

## Request

- Base URL: `https://api.pics.io`
- URL: `https://api.pics.io/images/buildGDUploadLink/{assetId}`
- Auth: HTTP bearer

[Upload instruction](https://api.pics.io/docs/how-to-upload-assets)

## Request body

- object
  - `contentType` string, required
  - `contentLength` number, required
  - `metadata` object, required
    - `title` string: File name
    - `mimeType` string
    - `parents` object[]
      - `id` string: Storage id of collection to upload to
  - `assetIdToReplace` string: Asset id to replace

## Response `200`

Ok

- object
  - `url` string: Url for send file to
  - `token` string: Token needs to put in Authorization header

---

[API](https://skmtc.dev/pics/apis/pics-io-rest-api.md) - [All operations](https://skmtc.dev/pics/apis/pics-io-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pics/apis/pics-io-rest-api/revisions/ea41cba5ac37?raw)
