Replies: 1 comment 2 replies
-
Instead of curl, I would use https://github.com/ckan/ckanapi#-create-a-resource-with-a-file-attached
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The following cURL is from: https://tech.datopian.com/ckan/play-around.html#create-organizations-datasets-and-resources and lets you add a resource to a datset from a url.
curl -X POST http://ckan:5000/api/3/action/resource_create -H "Authorization: 9c04a69d-79f4-4b4b-b4e1-f2ac31ed961c" -d '{ "package_id": "my-first-dataset", "url": "https://raw.githubusercontent.com/frictionlessdata/test-data/master/files/csv/100kb.csv", "description": "This is the best resource ever!" , "name": "brand-new-resource" }'
Was wondering how you could add a resource from a file.
Beta Was this translation helpful? Give feedback.
All reactions