ckanaction

member_create

Make an object (e.g. a user, dataset or group) a member of a group.

If the object is already a member of the group then the capacity of the membership will be updated.

You must be authorized to edit the group.

POST
member_create

Authorization

apiTokenHeader
Authorization<token>

CKAN API token

In: header

Request Body

application/json

id?string

the id or name of the group to add the object to

object?string

the id or name of the object to add

object_type?string

the type of the object being added, e.g. 'package' or 'user'

capacity?string

the capacity of the membership

curl -X POST "http://localhost:5000/api/3/action/member_create" \  -H "Content-Type: application/json" \  -d '{}'