How to import notebook from local in Azure Databricks?
I have sample notebook in DBC format on my local machine and I need to import via Notebook Rest API.
curl -n -H "Content-Type: application/json" -X POST -d @- https://YOUR_DOMAIN/api/2.0/workspace/import <<JSON
{
"path": "/Users/user@example.com/new-notebook",
"format": "SOURCE",
"language": "SCALA",
"content": "Ly8gRGF0YWJyaWNrcyBub3RlYm9vayBzb3VyY2UKcHJpbnQoImhlbGxvLCB3b3JsZCIpCgovLyBDT01NQU5EIC0tLS0tLS0tLS0KCg==",
"overwrite": "false"
}
JSON
Refer this doc
They are given as destination file path but not mention about source file path instead they given as content. But How could I add the source file to import notebook?