package_relationship_update
Update a relationship between two datasets (packages).
The subject, object and type parameters are required to identify the relationship. Only the comment can be updated.
You must be authorized to edit both the subject and the object datasets.
Authorization
apiTokenHeader Authorization<token>
CKAN API token
In: header
Request Body
application/json
subject?string
the name or id of teh dataset that is the subject of the relationship
object?string
the name or id of the dataset that is the object of the relationship
type?string
the type of the relationship, one of 'depends_on', 'dependency_of', 'derives_from', 'has_derivation', 'links_to', 'linked_from', 'child_of', or 'parent_of'
comment?string
a comment about the relationship
curl -X PUT "http://localhost:5000/api/3/action/package_relationship_update" \ -H "Content-Type: application/json" \ -d '{}'