To add or remove a user from a Community, send a POST request containing the necessary data to the portal URL.
POST http://host/portal/server.pt/api/v1/user/current
{
"user": {
"joincommunityid": "COMMUNITY ID",
"leavecommunityid": "COMMUNITY ID"
}
}
For increased security, all JSON used in the API must be comment filtered. The JSON data should be wrapped in /* */ for any JSON, either in the API request or response. In addition, all JSON output will be wrapped in a plain { } block so that it can't be used directly in a script src tag.
This API currently only supports the special keyword "current" for the user identifier, meaning the current user. This API cannot be used to access users other than the currently logged in user.
| Variable | Description |
|---|---|
| COMMUNITY ID | The ID of the Community to join or unsubscribe. |
{
"user": {
"joincommunityid": "COMMUNITY ID",
"leavecommunityid": "COMMUNITY ID"
}
}
To view a complete implementation of this API, see the
Join Communities flyout included with the Oracle WebCenter Interaction
installation (in the image service under /plumtree/portal/private/joincommunities/).