---
title: "Put JSON Object"
url: "https://help.flows.world/en/article/put-json-object"
language: "en"
last_updated: "2025-12-16T19:01:23.848Z"
---

# Put JSON Object

Uploads a JSON file to your S3 storage bucket.

**Parameters**

| **Parameter** | **Required** | **Description** |
| --- | --- | --- |
| key | Yes | The path/filename to save the object as (e.g., "folder/myfile.json") |
| payloadBody | Yes | The JSON content to upload |
| query | No | Optional query parameters |

**Example Payload**

{  
    "key": "data/users.json",  
    "query": "",  
    "payloadBody": {  
        "users": \[  
            {"id": 1, "name": "John Smith"},  
            {"id": 2, "name": "Jane Doe"}  
        \]  
    }  
}

**Response**

On success, returns:

-   data - Response from S3 (typically empty for successful PUT)
-   data.responseCode - HTTP status code (200 for success)

On error, returns:

-   error - Error details from S3
-   error.responseCode - HTTP error code
-   error.Message - Error description
