ckanaction

resource_update

Update a resource.

To update a resource you must be authorized to update the dataset that the resource belongs to.

Note

Update methods may delete parameters not explicitly provided in the data_dict. If you want to edit only a specific attribute use resource_patch instead.
PUT
resource_update

Authorization

apiTokenHeader
Authorization<token>

CKAN API token

In: header

Request Body

multipart/form-data

id?string

the id of the resource to update

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 PUT "http://localhost:5000/api/3/action/resource_update"