package_collaborator_create
Make a user a collaborator in a dataset.
If the user is already a collaborator in the dataset then their capacity will be updated.
Currently you must be an Admin on the dataset owner organization to manage collaborators.
Note: This action requires the collaborators feature to be enabled with the ckan.auth.allow_dataset_collaborators configuration option.
Authorization
apiTokenHeader Authorization<token>
CKAN API token
In: header
Request Body
application/json
id?string
the id or name of the dataset
user_id?string
the id or name of the user to add or edit
capacity?string
the capacity or role of the membership. Must be one of "editor" or "member". Additionally if ckan.auth.allow_admin_collaborators is set to True, "admin" is also allowed.
curl -X POST "http://localhost:5000/api/3/action/package_collaborator_create" \ -H "Content-Type: application/json" \ -d '{}'