CKAN icon

CKAN

Interact with the CKAN API

Resource Patch

AI-generated

Summary

Patch selected metadata on an existing CKAN resource. Supply the CKAN instance URL and resource ID, then set any resource fields to update; omitted fields are left unchanged.

Inputs

  • CKAN URL (required) — Base URL of the CKAN instance, such as https://demo.ckan.org.
  • Id (required) — Unique ID of the resource to patch.
  • Name — New display name for the resource.
  • Description — New description for the resource.
  • Format — New file format label, such as CSV, XLSX, or GeoJSON.
  • Url — New URL for the resource.

Output shape

One item per input item, containing the CKAN result in json.data and json.success on success.

Requires CKAN API credentials with a token. The node sends a POST request to CKAN's resource_patch action; with Continue On Fail enabled, failed items instead contain a json.error message.

Examples

Example 1: Change the name and format of a resource while keeping its description and URL unchanged.

Set the resource ID, Name, and Format; leave Description and Url empty or unset.

Links

Discussion