Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2024 11:48 AM
the api didn't work for me ,so I used databricks sdk to upload files.
I used WorkspaceClient's upload method. Here's the sample that might help
workspace_client = WorkspaceClient(
host = SERVER_HOSTNAME,
token = ACCESS_TOKEN
)
response = workspace_client.files.upload(file_path, content)
.