> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.konfidant.app/llms.txt.
> For full documentation content, see https://docs.konfidant.app/llms-full.txt.

# Upload a big file

PUT https://qwertyasdfghjkl.zip
Content-Type: application/octet-stream

Reference: https://docs.konfidant.app/konfidant-api/upload-a-big-file

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /qwertyasdfghjkl.zip:
    put:
      operationId: upload-a-big-file
      summary: Upload a big file
      tags:
        - ''
      parameters:
        - name: X-Amz-Algorithm
          in: query
          required: false
          schema:
            type: string
        - name: X-Amz-Content-Sha256
          in: query
          required: false
          schema:
            type: string
        - name: X-Amz-Credential
          in: query
          required: false
          schema:
            type: string
        - name: X-Amz-Date
          in: query
          required: false
          schema:
            type: string
        - name: X-Amz-Expires
          in: query
          required: false
          schema:
            type: integer
        - name: X-Amz-Signature
          in: query
          required: false
          schema:
            type: string
        - name: X-Amz-SignedHeaders
          in: query
          required: false
          schema:
            type: string
        - name: x-amz-checksum-crc32
          in: query
          required: false
          schema:
            type: string
        - name: x-amz-sdk-checksum-algorithm
          in: query
          required: false
          schema:
            type: string
        - name: x-id
          in: query
          required: false
          schema:
            type: string
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
        - name: x-amz-meta-organization-id
          in: header
          required: false
          schema:
            type: string
        - name: x-amz-meta-user-id
          in: header
          required: false
          schema:
            type: string
        - name: x-amz-meta-ttl-hours
          in: header
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Upload a big file_Response_200'
      requestBody:
        content:
          application/octet-stream:
            schema:
              type: string
              format: binary
servers:
  - url: https:/
  - url: https://foo.bar.com
components:
  schemas:
    Upload a big file_Response_200:
      type: object
      properties: {}
      description: Empty response body
      title: Upload a big file_Response_200
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

```

## SDK Code Examples

```python
import requests

url = "https://https/qwertyasdfghjkl.zip"

querystring = {"X-Amz-Algorithm":"AWS4-HMAC-SHA256","X-Amz-Content-Sha256":"UNSIGNED-PAYLOAD","X-Amz-Credential":"qwertyasdfghjkl%2F20260428%2Fauto%2Fs3%2Faws4_request","X-Amz-Date":"20260428T231423Z","X-Amz-Expires":"3600","X-Amz-Signature":"qwertyasdfghjkl","X-Amz-SignedHeaders":"host%3Bx-amz-meta-organization-id%3Bx-amz-meta-ttl-hours%3Bx-amz-meta-user-id","x-amz-checksum-crc32":"AAAAAA%3D%3D","x-amz-sdk-checksum-algorithm":"CRC32","x-id":"PutObject"}

headers = {
    "x-amz-meta-organization-id": "qwertyasdfgh",
    "x-amz-meta-user-id": "qwertyasdfgh",
    "x-amz-meta-ttl-hours": "48",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/octet-stream"
}

response = requests.put(url, headers=headers, params=querystring)

print(response.json())
```

```javascript
const url = 'https://https/qwertyasdfghjkl.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=qwertyasdfghjkl%252F20260428%252Fauto%252Fs3%252Faws4_request&X-Amz-Date=20260428T231423Z&X-Amz-Expires=3600&X-Amz-Signature=qwertyasdfghjkl&X-Amz-SignedHeaders=host%253Bx-amz-meta-organization-id%253Bx-amz-meta-ttl-hours%253Bx-amz-meta-user-id&x-amz-checksum-crc32=AAAAAA%253D%253D&x-amz-sdk-checksum-algorithm=CRC32&x-id=PutObject';
const options = {
  method: 'PUT',
  headers: {
    'x-amz-meta-organization-id': 'qwertyasdfgh',
    'x-amz-meta-user-id': 'qwertyasdfgh',
    'x-amz-meta-ttl-hours': '48',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/octet-stream'
  }
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://https/qwertyasdfghjkl.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=qwertyasdfghjkl%252F20260428%252Fauto%252Fs3%252Faws4_request&X-Amz-Date=20260428T231423Z&X-Amz-Expires=3600&X-Amz-Signature=qwertyasdfghjkl&X-Amz-SignedHeaders=host%253Bx-amz-meta-organization-id%253Bx-amz-meta-ttl-hours%253Bx-amz-meta-user-id&x-amz-checksum-crc32=AAAAAA%253D%253D&x-amz-sdk-checksum-algorithm=CRC32&x-id=PutObject"

	req, _ := http.NewRequest("PUT", url, nil)

	req.Header.Add("x-amz-meta-organization-id", "qwertyasdfgh")
	req.Header.Add("x-amz-meta-user-id", "qwertyasdfgh")
	req.Header.Add("x-amz-meta-ttl-hours", "48")
	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/octet-stream")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://https/qwertyasdfghjkl.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=qwertyasdfghjkl%252F20260428%252Fauto%252Fs3%252Faws4_request&X-Amz-Date=20260428T231423Z&X-Amz-Expires=3600&X-Amz-Signature=qwertyasdfghjkl&X-Amz-SignedHeaders=host%253Bx-amz-meta-organization-id%253Bx-amz-meta-ttl-hours%253Bx-amz-meta-user-id&x-amz-checksum-crc32=AAAAAA%253D%253D&x-amz-sdk-checksum-algorithm=CRC32&x-id=PutObject")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["x-amz-meta-organization-id"] = 'qwertyasdfgh'
request["x-amz-meta-user-id"] = 'qwertyasdfgh'
request["x-amz-meta-ttl-hours"] = '48'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/octet-stream'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.put("https://https/qwertyasdfghjkl.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=qwertyasdfghjkl%252F20260428%252Fauto%252Fs3%252Faws4_request&X-Amz-Date=20260428T231423Z&X-Amz-Expires=3600&X-Amz-Signature=qwertyasdfghjkl&X-Amz-SignedHeaders=host%253Bx-amz-meta-organization-id%253Bx-amz-meta-ttl-hours%253Bx-amz-meta-user-id&x-amz-checksum-crc32=AAAAAA%253D%253D&x-amz-sdk-checksum-algorithm=CRC32&x-id=PutObject")
  .header("x-amz-meta-organization-id", "qwertyasdfgh")
  .header("x-amz-meta-user-id", "qwertyasdfgh")
  .header("x-amz-meta-ttl-hours", "48")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/octet-stream")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PUT', 'https://https/qwertyasdfghjkl.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=qwertyasdfghjkl%252F20260428%252Fauto%252Fs3%252Faws4_request&X-Amz-Date=20260428T231423Z&X-Amz-Expires=3600&X-Amz-Signature=qwertyasdfghjkl&X-Amz-SignedHeaders=host%253Bx-amz-meta-organization-id%253Bx-amz-meta-ttl-hours%253Bx-amz-meta-user-id&x-amz-checksum-crc32=AAAAAA%253D%253D&x-amz-sdk-checksum-algorithm=CRC32&x-id=PutObject', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/octet-stream',
    'x-amz-meta-organization-id' => 'qwertyasdfgh',
    'x-amz-meta-ttl-hours' => '48',
    'x-amz-meta-user-id' => 'qwertyasdfgh',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://https/qwertyasdfghjkl.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=qwertyasdfghjkl%252F20260428%252Fauto%252Fs3%252Faws4_request&X-Amz-Date=20260428T231423Z&X-Amz-Expires=3600&X-Amz-Signature=qwertyasdfghjkl&X-Amz-SignedHeaders=host%253Bx-amz-meta-organization-id%253Bx-amz-meta-ttl-hours%253Bx-amz-meta-user-id&x-amz-checksum-crc32=AAAAAA%253D%253D&x-amz-sdk-checksum-algorithm=CRC32&x-id=PutObject");
var request = new RestRequest(Method.PUT);
request.AddHeader("x-amz-meta-organization-id", "qwertyasdfgh");
request.AddHeader("x-amz-meta-user-id", "qwertyasdfgh");
request.AddHeader("x-amz-meta-ttl-hours", "48");
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/octet-stream");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "x-amz-meta-organization-id": "qwertyasdfgh",
  "x-amz-meta-user-id": "qwertyasdfgh",
  "x-amz-meta-ttl-hours": "48",
  "Authorization": "Bearer <token>",
  "Content-Type": "application/octet-stream"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://https/qwertyasdfghjkl.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=qwertyasdfghjkl%252F20260428%252Fauto%252Fs3%252Faws4_request&X-Amz-Date=20260428T231423Z&X-Amz-Expires=3600&X-Amz-Signature=qwertyasdfghjkl&X-Amz-SignedHeaders=host%253Bx-amz-meta-organization-id%253Bx-amz-meta-ttl-hours%253Bx-amz-meta-user-id&x-amz-checksum-crc32=AAAAAA%253D%253D&x-amz-sdk-checksum-algorithm=CRC32&x-id=PutObject")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```