ckanaction

file_ownership_transfer

POST
file_ownership_transfer

Transfer file ownership.

Authorization

apiTokenHeader
headerAuthorization<token>

CKAN API token

Request Body

application/json
  1. body
id?string

ID of the file upload

owner_id?string

ID of the new owner

owner_type?string

type of the new owner

force?boolean

move file evne if it's pinned. Default: False

pin?boolean

pin file after transfer to stop future transfers. Default: False

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