package_collaborator_create
POST
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.
apiTokenHeaderheader
Authorization<token>CKAN API token
application/json- body
id?stringthe id or name of the dataset
user_id?stringthe id or name of the user to add or edit
capacity?stringthe 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 '{}'