ckanaction

member_create

POST
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.

Authorization

apiTokenHeader
headerAuthorization<token>

CKAN API token

Request Body

application/json
  1. body
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

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