ckanaction

package_update

Update a dataset (package).

You must be authorized to edit the dataset and the groups that it 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 package_patch instead.

It is recommended to call ckan.logic.action.get.package_show(), make the desired changes to the result, and then call package_update() with it.

Plugins may change the parameters of this function depending on the value of the dataset's type attribute, see the IDatasetForm plugin interface.

PUT
package_update

Authorization

apiTokenHeader
Authorization<token>

CKAN API token

In: header

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

curl -X PUT "http://localhost:5000/api/3/action/package_update"