ckanaction

package_relationship_delete

DELETE
package_relationship_delete

Delete a dataset (package) relationship.

You must be authorised to delete dataset relationships, and to edit both the subject and the object datasets.

Authorization

apiTokenHeader
headerAuthorization<token>

CKAN API token

Request Body

application/json
  1. body
subject?string

the id or name of the dataset that is the subject of the relationship

object?string

the id or name of the dataset that is the object of the relationship

type?string

the type of the relationship

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