ckanaction

file_register

POST
file_register

Register untracked file from storage in DB.

Authorization

apiTokenHeader
headerAuthorization<token>

CKAN API token

Request Body

application/json
  1. body
location?string

location of the file in the storage

storage?string

name of the storage that will handle the upload. Defaults to the configured default storage

Example Request
curl -X POST 'http://localhost:5000/api/3/action/file_register' \  -H 'Content-Type: application/json' \  -d '{}'