package_relationship_create
POST
Create a relationship between two datasets (packages).
You must be authorized to edit both the subject and the object datasets.
apiTokenHeaderheader
Authorization<token>CKAN API token
application/json- body
subject?stringthe id or name of the dataset that is the subject of the relationship
object?stringthe id or name of the dataset that is the object of the relationship
type?stringthe type of the relationship, one of 'depends_on', 'dependency_of', 'derives_from', 'has_derivation', 'links_to', 'linked_from', 'child_of', or 'parent_of'`
comment?stringa comment about the relationship
curl -X POST 'http://localhost:5000/api/3/action/package_relationship_create' \ -H 'Content-Type: application/json' \ -d '{}'