CKAN icon

CKAN

Interact with the CKAN API

Resource Update

AI-generated

Summary

Fully replace the metadata of a CKAN resource, including URL, format, and size, using the CKAN API.

Inputs

  • id (required) — The unique ID of the resource to update.
  • url (required) — The URL where the resource data can be accessed.
  • name — Display name for the resource.
  • description — Description of the resource.
  • format — File format, e.g. "CSV", "JSON", "GeoJSON".
  • mimetype — MIME type, e.g. "text/csv".
  • size — File size in bytes.

Output shape

A single record containing the updated resource details and a success flag.

Requires a CKAN API token (POST method). All fields not provided revert to defaults.

Examples

Example 1: Update a specific resource's metadata, such as changing its name and description.

Set id, url, name, and description.

Links

Discussion