Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2024 04:05 AM
Hey there! I have been using Volumes to get the files. It looks like this:
dbk = WorkspaceClient(host=args.host, token=args.token, auth_type="pat")
file_path = "/Volumes/{{your_catalog}}/{{your_schema}}/json_volumes/sample1.json"
content = dbutils.fs.head(file_path)
job_dict = eval(content)
job = dbk.jobs.create(**job_dict)
Your problem is probably when creating the dict, not calling the API function.