Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
/social/community/add/{name}/{description}/{tags}/{parentid}

...

Info

Add a new community.

Authentication

...

parentid (optional)
ID of the new community's parent community (typically the Infinit.e System community).

Examples

http://infinite.ikanow.com/api/community/add/New Community/Text description for the new community/news,entertainment,fun/
http://infinite.ikanow.com/api/community/add/New Community/Text description for the new community/news,entertainment,fun/4c927585d591d31d7b37097a/

Example Response
Info
Code Block
{
	response: 
	{
		action: "Add Community"
		success: true
		message: "The New Community community has been added."
		time: 83
	}
 	data:
	{
		_id: "4e1c5d7c20be6403ca94c3bb"
		name: "New Community"
		description: "Text description for the new community"
		isSystemCommunity: false
		parentId: "4c927585d591d31d7b37097a"
		parentName: "Infinit.e System"
		isPersonalCommunity: false
		tags: ["news","entertainment","fun"]
		communityAttributes: {
			usersCanCreateSubCommunities: {type: "Boolean",value: "false"}
			registrationRequiresApproval: {type: "Boolean",value: "false"}
			isPublic: {type: "Boolean",value: "true"}
			usersCanSelfRegister: {type: "Boolean",value: "true"}
		}
		userAttributes: {
			publishCommentsPublicly: {type: "Boolean",defaultValue: "false",allowOverride: false}
			publishQueriesToActivityFeed: {type: "Boolean",defaultValue: "true",allowOverride: false}
			publishLoginToActivityFeed: {type: "Boolean",defaultValue: "true",allowOverride: false}
			publishSharingToActivityFeed: {type: "Boolean",defaultValue: "true",allowOverride: false}
			publishCommentsToActivityFeed: {type: "Boolean",defaultValue: "true",allowOverride: false}
		}
		ownerId: "4d88d0f1f9a624a4b0c8bd71"
		communityStatus: "active"
		ownerDisplayName: "Jane Doe"
		numberOfMembers: 0
	}
}