Skip to content

Releases: mondaycom/monday-api-python-sdk

v1.6.0

22 Dec 13:26
e086b99

Choose a tag to compare

Added the ability to upload files to file columns on monday.com items.

New Features

  • ItemModule.upload_file_to_column() - New method to upload files to a file column on an item
  • MondayGraphQL.execute_multipart() - New method for executing GraphQL mutations with file uploads using multipart/form-data
  • FileInput dataclass - New type for encapsulating file upload parameters

📖 Usage Example

import os
from datetime import datetime
from monday_sdk import MondayClient

# Initialize the client
client = MondayClient(os.getenv("MONDAY_TOKEN"))

# Configuration
BOARD_ID = 18392575661
FILE_COLUMN_ID = "file_mkyr6m1h"

# First, create an item (or use an existing item_id)
create_response = client.items.create_item(
    board_id=BOARD_ID,
    group_id="your_group_id",
    item_name="My Track",
    column_values={
        "text_column": "Artist Name",
        "date_column": {
            "date": datetime.now().strftime("%Y-%m-%d"),
            "time": datetime.now().strftime("%H:%M:%S")
        }
    }
)
item_id = create_response.data.create_item.id

# Upload a file to the file column
upload_response = client.items.upload_file_to_column(
    item_id=item_id,
    column_id=FILE_COLUMN_ID,
    file_path="/path/to/your/file.mp4",
    mimetype="audio/mp4"  # Optional - auto-detected if not provided
)

print(f"File uploaded successfully!")
print(f"Asset ID: {upload_response['data']['add_file_to_column']['id']}")
print(f"File URL: {upload_response['data']['add_file_to_column']['url']}")

🔧 API Response

The upload_file_to_column() method returns a dictionary containing the uploaded asset information:

{
  "data": {
    "add_file_to_column": {
      "id": "123456789",
      "name": "file.mp4",
      "url": "https://files.monday.com/...",
      "file_extension": "mp4",
      "file_size": 1048576
    }
  }
}

v1.5.4

02 Dec 11:53
2a95fec

Choose a tag to compare

Merge pull request #35 from mondaycom/feature/michaelim/item-updated-at

item updated_at

1.5.3 Release

01 Dec 12:31
c0a0637

Choose a tag to compare

Merge pull request #34 from mondaycom/feature/michaelim/board-updated-at

board updated_at

v1.5.2

17 Nov 10:07
ab2dfec

Choose a tag to compare

Merge pull request #33 from mondaycom/monday-docs-updated-at

monday docs updated_at

Allow mentions in item updates

12 Nov 07:54

Choose a tag to compare

Pre-release
v1.5.2

support updates mentions

1.5.1 Release

04 Nov 12:21
050a745

Choose a tag to compare

v1.5.1

Merge pull request #31 from mondaycom/feature/michaelim/monday-update…

1.5.0 Release

04 Nov 11:19
a88ecae

Choose a tag to compare

v1.5.0

Merge pull request #30 from mondaycom/feature/michaelim/fetch-updates…

v1.4.8 Release

26 Oct 06:32
5cd2a08

Choose a tag to compare

  • Support monday docs
  • Return raw response

v1.4.7 Release

16 Oct 06:47

Choose a tag to compare

v1.4.7 Release Pre-release
Pre-release
Merge remote-tracking branch 'refs/remotes/origin/feature/michaelim/m…

v1.4.6 Release

05 Oct 07:23

Choose a tag to compare

v1.4.6 Release Pre-release
Pre-release

Allow non ASCII chars on item updates