PrData05
New Contributor II

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)

 

.