CommunityRest Resource
Community
- Available Since
- 1.5.9
POST /2.0/communities/addUsers
Add an user to a community
Create a new community: fill object AddUserToCommunityVO
- Available Since
- 1.5.9
media type | data type | description |
---|---|---|
application/json | AddUserToCommunityVO (JSON) | Request JSON (example):
{
"communityAlias" : "community.alias", // community alias
"userAliases" : ["user1","user2"] // user aliases
} |
media type | data type | description |
---|---|---|
application/json | object (JSON) | This method just return HTTP 200 status, successful message |
- Available Since
- 1.5
POST /2.0/communities/create
Create a community
Create a new community: fill object CommunityCreateVO
- Available Since
- 1.5
media type | data type | description |
---|---|---|
application/json | CommunityCreateVO (JSON) | Request JSON (example):
{
"alias" : "alias.community", // Alias Communit
"name" : "Name Community Example", // Name Community
"description" : "Description of community", // Community description
"adminAlias" : "user.community.admin.login", // User Admin Alias
"hidden" : "false", // Community must be hidden
"privateContent" : "false", // The community has private content
"approvalRequired" : "false", // If is necessary to approve actions
"createForum" : "false", // If is necessary to create forum in the community
} |
media type | data type | description |
---|---|---|
application/json | object (JSON) | This method just return HTTP 200 status, successful message |
- Available Since
- 1.5.12
POST /2.0/communities/disablePostEditionAllCommunities
Disbale edition post in all communities
- Available Since
- 1.5.12
media type | data type | description |
---|---|---|
application/json | object (JSON) | This method just return HTTP 200 status |
- Available Since
- 1.5.7
POST /2.0/communities/update
update a community
Create a new community: fill object CommunityCreateVO
- Available Since
- 1.5.7
media type | data type | description |
---|---|---|
application/json | CommunityCreateVO (JSON) | Request JSON (example):
{
"alias" : "alias.community", // Alias Communit
"name" : "Name Community Example", // Name Community
"description" : "Description of community", // Community description
"adminAlias" : "user.community.admin.login", // User Admin Alias
"hidden" : "false", // Community must be hidden
"privateContent" : "false", // The community has private content
"approvalRequired" : "false", // If is necessary to approve actions,
"createForum" : "false", // If is necessary to create forum in the community
} |
media type | data type | description |
---|---|---|
application/json | object (JSON) | This method just return HTTP 200 status, successful message |
- Available Since
- 1.5
POST /2.0/communities/addUser/{communityId}
This method has been deprecated. As of release 1.5.9, replaced by addUsers
Add User
Add an user to a community
- Available Since
- 1.5
name | type | description | constraints |
---|---|---|---|
communityId | path | REQUIRED Community Id |
long |
media type | data type | description |
---|---|---|
application/json | string (JSON) | REQUIRED Alias Community
community_alias_name
|
media type | data type | description |
---|---|---|
application/json | object (JSON) | This method just return HTTP 200 status, successful message |