ckanaction

resource_create

Appends a new resource to a datasets list of resources.

POST
resource_create

Authorization

apiTokenHeader
Authorization<token>

CKAN API token

In: header

Request Body

multipart/form-data

package_id?string

id of package that the resource should be added to

url?string

url of resource

description?string
format?string
hash?string
name?string
resource_type?string
mimetype?string
mimetype_inner?string
cache_url?string
size?integer
created?string
last_modified?string
cache_last_updated?string
upload?file
Formatbinary
curl -X POST "http://localhost:5000/api/3/action/resource_create"