Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

personid (required)
Person id to invite to community - this will normally be the person's username (normally email address) but can also be their database "_id".

Can also be a comma-separated list of either "_id" or username address, in which case the same operation is applied to each user (for output format see below)

skipinvitation (optional)
Allows administrators to automatically add a user to a community without having to send an invitation to the new user. 

...

http://infinite.ikanow.com/api/community/member/invite/*community%20name/user@organization.com

http://infinite.ikanow.com/api/community/member/invite/50a7a290fbf01a3c159895c4/5233614ee4b02e1667b3b822,506c8616fbf042893dd6b3f3,50bcd83cfbf0fd0b27875a82,50bcd83cfbf0fd0b27875aaa?skipinvitation=true

Example Response
Info
Code Block
{"response":{"action":"Invite Community","success":true,"message":"Invited user to community successfully","time":868}}

The bulk operation has a slightly different format ("success" is false if any of the requests fail)

Code Block
{"response": 
	{"action": "Invite Community",
	"success": false,
	"message": "succeeded=1 failed=3",
	"time": 1896
	},
"data": 
	{"succeeded": [ "5233614ee4b02e1667b3b822" ],
	"failed": 
	"50bcd83cfbf0fd0b27875aaa": "Person/User Group does not exist",
	"50bcd83cfbf0fd0b27875a82": "You are already a member of this community",
	"506c8616fbf042893dd6b3f3": "You are already a member of this community"
	}
	}
}