---
title: "Upload a file from Google Cloud Storage"
method: POST
path: "/uploadFileFromCloudStorage_4OY_v1"
---

# Upload a file from Google Cloud Storage

`POST /uploadFileFromCloudStorage_4OY_v1`

Upload a single file from Google Cloud Storage to Orange Logic by providing a source bucket and object key

## Request body

- object
  - `recordID` string — The <a href="https://developer.orangelogic.com/reference/assets">record ID, unique identifier, or encrypted record ID</a> of an existing asset. The file you provide will be uploaded as a new version of this asset.<br>This parameter <b>or</b> the folderRecordID parameter is <span style="color:#dd1e2e">required</span>.
  - `folderRecordID` string — The <a href="https://developer.orangelogic.com/reference/assets">record ID, unique identifier, or encrypted record ID</a> of a folder to upload the asset to. The file you provide will be uploaded as a new asset.<br>This parameter <b>or</b> the recordID parameter is <span style="color:#dd1e2e">required</span>.
  - `sourceBucket` string, required — The name of the bucket where the file to upload is stored
  - `objectKey` string, required — The path of the file within the source bucket to upload
  - `FileName` string — A name for the file being uploaded, including the file extension. Example: London Eye.jpg
  - `logInfo` boolean — Include logs in response. Set to true only for debugging.
  - `metadata` object — <a href="https://developer.orangelogic.com/reference/metadata-field-identifiers">Metadata</a> applied to the uploaded asset.
    - `[custom_Metadata]` string — Enter a comma-separated list of field name and value pairs, enclosed in curly brackets: <code>{}</code><br>Example: <code>{"CoreField.Title":"New asset title", "MyNameSpace.MyField":"Custom field value"}</code>
  - `indexInBackground` boolean — Set to `true` to delay indexing and speed up the API call processing time. </br> </br> This parameter is available beginning in [Orange Logic Ottawa](https://developer.orangelogic.com/reference/about#orange-logic-api-versioning).
  - `indexingPriority` 'Medium' | 'Low' | 'VeryLow' — Forces the records to be indexed in a lower-priority queue to avoid impacting the primary indexing queue. For example, if you are calling large batches of records, the calls might fire faster than the database can index them. You can append &IndexingPriority=Low to avoid overloading the queue. Leave this parameter blank to keep the call in a high priority indexing queue. </br> </b> This parameter is available beginning in [Orange Logic Ottawa](https://developer.orangelogic.com/reference/about#orange-logic-api-versioning).

## Response `200`

200

- object
  - `Identifier` string
  - `RecordID` string
  - `IsDuplicated` boolean

---

[API](https://skmtc.net/orangelogic/apis/security.md) · [All operations](https://skmtc.net/orangelogic/apis/security/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/orangelogic/security/versions/c8e945426c5e/schema)
