Group Service

Service for accessing information about social groups in the system. All the groups in the system can be retrieved, also particular groups can be accessed directly by providing their globally unique identifier.

ResourceDescription
Add memberAdd the specified membership entry to the specified group.
CreateCreate a new social group.
Create binary documentCreates a new binary based document in the system.
Create discussionCreates a disucssion with the given subject and body.
Create documentCreates a new HTML based document in the system.
DeleteDelete an existing social group.
FollowStart following the specified container.
Get activities
Get avatarRetrieves the avatar of this social group, if one has been set.
Get contentReturns all content in the container.
Get discussionsReturns a collection of discussions in a particular container.
Get documentsReturns a collection of documents in a particular container.
Get followerCheck if the user is following the specified container
Get groupReturns information about the social group with the given identifier.
Get groupsReturns a portion of all visible groups in the system as an array.
Get projects
InvitesReturn all of the outstanding invitations for the specified social group.
MembersRetrieve a list of group members (with their current membership status) for the specified social group.
Remove avatarDeletes the avatar image of this social group.
Send invitesSend invitations to join the specified social group to the specified users.
ShareShare this group with the specified set of users, using <code>html</code> as the notification message.
UnfollowStop following the specified container
UpdateUpdate an existing social group.
Upload avatarUploads a new avatar image for the specified social group by specifying a URL to download the image.

Add member

Add the specified membership entry to the specified group.

POST http://domain:port/application_context/api/core/v2/groups/{id}/members

Path Parameters

NameTypeDescriptionDefault Value
idlongthe id of the social group to which this membership entry should be added 

Form Parameters

NameTypeDescriptionDefault Value
usernameStringthe username of the user to be added to this group 
stateStringthe initial membership state ("banned", "member", "owner", or "pending") 

Response

TypeDescription
Responsea membership entity describing the new membership and a 201 status

Create

Create a new social group.

POST http://domain:port/application_context/api/core/v2/groups

Response

TypeDescription
Responsean HTTP status 201 (Created) with a "Location" header containing the URL

Create binary document

Creates a new binary based document in the system. A document is a piece of content with multiple versions and can be created in draft mode; though this endpoint does not expost that functionality. After a document is created it can be retrieved in the listing of all documents in the container it was created in or it can be retrieved directly by the URI provided in the response.

The subject of the document must be specified and the maximum length of the subject is limited to 255 characters. Additionally, the subject of a document must be unique within the container it is created in there is no means ahead of time to check if a document exists with the given subject but an error will result if the created resource's subject will duplicate another document's title in the container.

POST http://domain:port/application_context/api/core/v2/groups/{id}/binaryDocuments

Path Parameters

NameTypeDescriptionDefault Value
idlongthe id of the container in which the document will be created. 

Post Payload

NameTypeDescriptionDefault Value
bodyMultipartBodythe the multi-part body that contains the subject and binary body 

Response

TypeDescription
Responsea HTTP 201 response including the URL for the new document in the Location header.

Create discussion

Creates a disucssion with the given subject and body. The container the discussion is created in is the container pointed to with the given identifier. The discussion is created with the authenticated user as the author.

POST http://domain:port/application_context/api/core/v2/groups/{id}/discussions

Path Parameters

NameTypeDescriptionDefault Value
idlongthe id of the container in which the discussion is being posted 

Form Parameters

NameTypeDescriptionDefault Value
subjectStringthe subject of the newly created discussion. 
htmlDocumentParamthe content of the newly created discussion. 
questionBooleanflag indicating whether the discussion is a question or not. May be omitted in which case the system default is used. 
attachmentURIsSetany URIs for the attachments which are to be attached to the discussion 

Response

TypeDescription
Responsea HTTP 201 response including the URL for the new discussion in the Location header

Example

Form Parameter Payload
subject=Jru4ArAwnELsaBpcFRDP&html=ysyBVsUpc6cQl98FNsumyItYkp9Wom

Create document

Creates a new HTML based document in the system. A document is a piece of content with multiple versions and can be created in draft mode; though this endpoint does not expost that functionality. After a document is created it can be retrieved in the listing of all documents in the container it was created in or it can be retrieved directly by the URI provided in the response.

POST http://domain:port/application_context/api/core/v2/groups/{id}/documents

Path Parameters

NameTypeDescriptionDefault Value
idlongthe id of the container in which the document will be created. 

Form Parameters

NameTypeDescriptionDefault Value
subjectStringthe subject of the document. It must be specified and the maximum length of the subject is limited to 255 characters. Additionally, the subject of a document must be unique within the container it is created in there is no means ahead of time to check if a document exists with the given subject but an error will result if the created resource's subject will duplicate another document's title in the container. 
htmlDocumentParamHTML for the created document. 
attachmentURIsSetany URIs for the attachments which are to be attached to the document. 

Response

TypeDescription
Responsea HTTP 201 response including the URL for the new document in the Location header.

Delete

Delete an existing social group.

DELETE http://domain:port/application_context/api/core/v2/groups/{id}

Path Parameters

NameTypeDescriptionDefault Value
idlongthe id of the social group to be deleted 

Response

TypeDescription
void

Follow

Start following the specified container.

POST http://domain:port/application_context/api/core/v2/groups/{id}/followers

Path Parameters

NameTypeDescriptionDefault Value
idlongthe identifier of the container to follow. 

Response

TypeDescription
Responsea HTTP 201 response including the URL for the subscription in the Location header

Get activities

GET http://domain:port/application_context/api/core/v2/groups/{id}/activities?after=String&before=String&limit=int&type=Set

Path Parameters

NameTypeDescriptionDefault Value
idlong 

Query Parameters

NameTypeDescriptionDefault Value
afterString""
beforeString""
limitint"25"
typeSet 

Response

TypeDescription
EntityCollection

Get avatar

Retrieves the avatar of this social group, if one has been set.

Note: he image binary returned will likely not be identical to the that of the original image. Social group avatar images are scaled based on configuration of the Jive instance, then saved as PNG images. This service will only return those scaled PNG images.

GET http://domain:port/application_context/api/core/v2/groups/{id}/avatar?size=String

Path Parameters

NameTypeDescriptionDefault Value
idlongthe id of the social group. 

Query Parameters

NameTypeDescriptionDefault Value
sizeStringA query string parameter indicating the avatar size to download. This value mae be "small", "medium" or "large". If no value is specified, the large avatar is returned."large"

Response

TypeDescription
Responsean HTTP status 200 with the binary content of the image or 404 if no image has been set.

Get content

Returns all content in the container. Only content types which are supported in the specified container are returned.

GET http://domain:port/application_context/api/core/v2/groups/{id}/content?offset=int&limit=int&q=String

Path Parameters

NameTypeDescriptionDefault Value
idlongthe unique identifier for the container which is being returned. 

Query Parameters

NameTypeDescriptionDefault Value
offsetintused while paginating through results to specify the number of results to skip before the first retult in the returned result."0"
limitintthe maximum number of items to return. If there are fewer items available then limit then the lesser number of items will be returned. The default value is 25 and the maximum is 1000."25"
qStringcan be used to search across all content in the container with the given query string. 

Response

TypeDescription
EntityCollectionall content in the container.

Get discussions

Returns a collection of discussions in a particular container. The discussions are sorted by their creation date from newest to oldest and can be iterated through utilizing the date parameters since and until. Discussions will only be returned if the authenticated user has both permission to view the container and permission to view discussions in the container. Attempting to retrieve discussions for a container which the user does not have access to will result in an UNAUTHORIZED response.

When the discussions in the container are being searched the ordering of the returned discussions is by relevance as opposed to by date.

GET http://domain:port/application_context/api/core/v2/groups/{id}/discussions?limit=int&after=String&before=String&q=String&offset=int

Path Parameters

NameTypeDescriptionDefault Value
idlongthe identifier of the container for which the discussions are going to be returned. 

Query Parameters

NameTypeDescriptionDefault Value
limitintthe most dicussions which will be returned from this call. If there are fewer discussions available in the given time period, if either before or after is provided, then fewer discussions will be returned then the limit."25"
afterStringdisucssions newer than the date provided. So if the limit is 5 then the first 5 discussions created after the provided date will be returned. The provided date is required to be formatted in ISO 8601 format. 
beforeStringdiscussions older than the date provided. For a limit of 5 then the first 5 discussions created before the provided date will be returned. The provided date is required to be formatted in ISO 8601 format. 
qStringwhen provided, will search the discussions in the container using the given query. 
offsetintused in conjuction with query and paginating through discussions related to a search."0"

Response

TypeDescription
EntityCollectiona collection of discussions in the requested container ordered by the date they were created.

Example

JSON Response Payload
{
  "data" : [ {
    "message" : {
      "content" : {
        "type" : "text",
        "body" : "vpN7jU6yrJV991aTTgRaossuuyRR24L6gwCOVCg4daJvsRAdL8RDY1HQBw8wxnCNcQOpGxCx17DM010pnG6cXVNN0tezkD5AVboDNgKCylB5JGY5tmvU7T6e4lWvfCoM21TDMO70CMGRFhQV4yPaCqgoKR3803JacC2JQQdbDTIgeLPfk0rbXxD6Ata72625cr20H4FRCOroHaAVnksFmiBsJB051FC6gWWdaza74w5cGqZrbrcwmxbop7UabVE"
      },
      "status" : "published",
      "subject" : "ZCRVSOzDltsWiQzgzyNd",
      "id" : 1007,
      "type" : 2,
      "creationDate" : "2010-08-02T17:57:45.960+0000",
      "modificationDate" : "2010-08-02T17:57:45.960+0000",
      "links" : {
        "alt" : "http://localhost:50001/oc/v1/messages/1007"
      }
    },
    "replyCount" : 0,
    "status" : "published",
    "subject" : "ZCRVSOzDltsWiQzgzyNd",
    "author" : {
      "username" : "user-5bbpvrjql1t4ctbs",
      "id" : 2023,
      "type" : 3,
      "links" : {
        "alt" : "http://localhost:50001/oc/v1/users/2023",
        "avatar" : "http://localhost:50001/oc/v1/avatars/default"
      }
    },
    "id" : 1006,
    "type" : 1,
    "creationDate" : "2010-08-02T17:57:45.960+0000",
    "modificationDate" : "2010-08-02T17:57:45.960+0000",
    "links" : {
      "alt" : "http://localhost:50001/oc/v1/discussions/1006",
      "messages" : "http://localhost:50001/oc/v1/discussions/1006/messages"
    }
  }, {
    "message" : {
      "content" : {
        "type" : "text",
        "body" : "tIk1KodH7BTCL3ZOTH6W41ARDAugI9gCT4B2XwGdoT2p106n3f8jbIpzA7RVrjIXIK6HFvs2uN2DvnY2QmQP4J69AqeWndlmT4UsKvfwwrAKey7JLQZ0SOL3lFF3FhxhVMqJxZOebdjNPSaV4qJQZeP3qq3PB0uS318Y6qKItpSQerJuwOxmbCKGZGNYy2MuJCNrTVmFI3J2NKbVqPmxLStM7wymvBJqhswhvQsrUGUBrWKXecgCkoQqfIv7FIP"
      },
      "status" : "published",
      "subject" : "H3sDt7NUbEL4t0CX14ZB",
      "id" : 1006,
      "type" : 2,
      "creationDate" : "2010-08-02T17:57:45.945+0000",
      "modificationDate" : "2010-08-02T17:57:45.945+0000",
      "links" : {
        "alt" : "http://localhost:50001/oc/v1/messages/1006"
      }
    },
    "replyCount" : 0,
    "status" : "published",
    "subject" : "H3sDt7NUbEL4t0CX14ZB",
    "author" : {
      "username" : "user-oaobo2rqpudqopfc",
      "id" : 2022,
      "type" : 3,
      "links" : {
        "alt" : "http://localhost:50001/oc/v1/users/2022",
        "avatar" : "http://localhost:50001/oc/v1/avatars/default"
      }
    },
    "id" : 1005,
    "type" : 1,
    "creationDate" : "2010-08-02T17:57:45.945+0000",
    "modificationDate" : "2010-08-02T17:57:45.945+0000",
    "links" : {
      "alt" : "http://localhost:50001/oc/v1/discussions/1005",
      "messages" : "http://localhost:50001/oc/v1/discussions/1005/messages"
    }
  } ],
  "links" : {
    "next" : "http://localhost:50001/oc/v1/spaces/2053/discussions?limit=5&before=2010-08-02T17%253A57%253A45.888%252B0000",
    "previous" : "http://localhost:50001/oc/v1/spaces/2053/discussions?limit=5&after=2010-08-02T17%253A57%253A45.960%252B0000"
  }
}

Get documents

Returns a collection of documents in a particular container. The documents are sorted by their creation date from newest to oldest and can be iterated through utilizing the date parameters since and until. Documents will only be returned if the authenticated user has both permission to view the container and permission to view documents in the container. Attempting to retrieve documents for a container which the user does not have access to will result in an UNAUTHORIZED response.

When the documents in the container are being searched the ordering of the returned documents is by relevance as opposed to by date.

GET http://domain:port/application_context/api/core/v2/groups/{id}/documents?limit=int&after=String&before=String&q=String&offset=int

Path Parameters

NameTypeDescriptionDefault Value
idlongthe identifier of the container for which the documents are going to be returned. 

Query Parameters

NameTypeDescriptionDefault Value
limitintthe most dicussions which will be returned from this call. If there are fewer documents available in the given time period, if either before or after is provided, then fewer documents will be returned then the limit."25"
afterStringdisucssions newer than the date provided. So if the limit is 5 then the first 5 documents created after the provided date will be returned. The provided date is required to be formatted in ISO 8601 format. 
beforeStringdocuments older than the date provided. For a limit of 5 then the first 5 documents created before the provided date will be returned. The provided date is required to be formatted in ISO 8601 format. 
qStringwhen provided, will search the documents in the container using the given query. 
offsetintused in conjuction with query and paginating through documents related to a search."0"

Response

TypeDescription
EntityCollectiona collection of documents in the requested container ordered by the date they were created

Example

JSON Response Payload
{
  "data" : [ {
    "content" : {
      "type" : "text/html",
      "text" : "<body><!-- [DocumentBodyStart:2a06ccd8-b084-4724-a867-2572ab3d20d3] --><div class=\"jive-rendered-content\"><p>body-1282673665356</p></div><!-- [DocumentBodyEnd:2a06ccd8-b084-4724-a867-2572ab3d20d3] --></body>"
    },
    "status" : "published",
    "subject" : "title-1282673665356",
    "author" : {
      "name" : "Administrator",
      "username" : "admin",
      "links" : {
        "alt" : "http://localhost:50001/oc/v1/users/1",
        "avatar" : "http://localhost:50001/oc/v1/avatars/default"
      }
    },
    "replyCount" : 0,
    "likeCount" : 0,
    "creationDate" : "2010-08-24T18:14:25.356+0000",
    "modificationDate" : "2010-08-24T18:14:25.360+0000",
    "links" : {
      "alt" : "http://localhost:50001/oc/v1/documents/1004",
      "container" : "http://localhost:50001/oc/v1/spaces/2061"
    }
  }, {
    "content" : {
      "type" : "text/html",
      "text" : "<body><!-- [DocumentBodyStart:4e89abc7-0832-4ff3-9e76-71f8d7733fab] --><div class=\"jive-rendered-content\"><p>body-1282673665345</p></div><!-- [DocumentBodyEnd:4e89abc7-0832-4ff3-9e76-71f8d7733fab] --></body>"
    },
    "status" : "published",
    "subject" : "title-1282673665345",
    "author" : {
      "name" : "Administrator",
      "username" : "admin",
      "links" : {
        "alt" : "http://localhost:50001/oc/v1/users/1",
        "avatar" : "http://localhost:50001/oc/v1/avatars/default"
      }
    },
    "replyCount" : 0,
    "likeCount" : 0,
    "creationDate" : "2010-08-24T18:14:25.345+0000",
    "modificationDate" : "2010-08-24T18:14:25.349+0000",
    "links" : {
      "alt" : "http://localhost:50001/oc/v1/documents/1003",
      "container" : "http://localhost:50001/oc/v1/spaces/2061"
    }
  }, {
    "content" : {
      "type" : "text/html",
      "text" : "<body><!-- [DocumentBodyStart:94e41926-e8d5-49ee-bed1-5539d95d535f] --><div class=\"jive-rendered-content\"><p>body-1282673665334</p></div><!-- [DocumentBodyEnd:94e41926-e8d5-49ee-bed1-5539d95d535f] --></body>"
    },
    "status" : "published",
    "subject" : "title-1282673665334",
    "author" : {
      "name" : "Administrator",
      "username" : "admin",
      "links" : {
        "alt" : "http://localhost:50001/oc/v1/users/1",
        "avatar" : "http://localhost:50001/oc/v1/avatars/default"
      }
    },
    "replyCount" : 0,
    "likeCount" : 0,
    "creationDate" : "2010-08-24T18:14:25.334+0000",
    "modificationDate" : "2010-08-24T18:14:25.338+0000",
    "links" : {
      "alt" : "http://localhost:50001/oc/v1/documents/1002",
      "container" : "http://localhost:50001/oc/v1/spaces/2061"
    }
  }, {
    "content" : {
      "type" : "text/html",
      "text" : "<body><!-- [DocumentBodyStart:1cb6e8aa-b09e-479c-9a01-ba14d3591026] --><div class=\"jive-rendered-content\"><p>body-1282673665322</p></div><!-- [DocumentBodyEnd:1cb6e8aa-b09e-479c-9a01-ba14d3591026] --></body>"
    },
    "status" : "published",
    "subject" : "title-1282673665322",
    "author" : {
      "name" : "Administrator",
      "username" : "admin",
      "links" : {
        "alt" : "http://localhost:50001/oc/v1/users/1",
        "avatar" : "http://localhost:50001/oc/v1/avatars/default"
      }
    },
    "replyCount" : 0,
    "likeCount" : 0,
    "creationDate" : "2010-08-24T18:14:25.322+0000",
    "modificationDate" : "2010-08-24T18:14:25.327+0000",
    "links" : {
      "alt" : "http://localhost:50001/oc/v1/documents/1001",
      "container" : "http://localhost:50001/oc/v1/spaces/2061"
    }
  }, {
    "content" : {
      "type" : "text/html",
      "text" : "<body><!-- [DocumentBodyStart:7db9cb40-9e20-4bac-91f7-686f6a55a8e5] --><div class=\"jive-rendered-content\"><p>body-1282673665224</p></div><!-- [DocumentBodyEnd:7db9cb40-9e20-4bac-91f7-686f6a55a8e5] --></body>"
    },
    "status" : "published",
    "subject" : "title-1282673665224",
    "author" : {
      "name" : "Administrator",
      "username" : "admin",
      "links" : {
        "alt" : "http://localhost:50001/oc/v1/users/1",
        "avatar" : "http://localhost:50001/oc/v1/avatars/default"
      }
    },
    "replyCount" : 0,
    "likeCount" : 0,
    "creationDate" : "2010-08-24T18:14:25.224+0000",
    "modificationDate" : "2010-08-24T18:14:25.281+0000",
    "links" : {
      "alt" : "http://localhost:50001/oc/v1/documents/1000",
      "container" : "http://localhost:50001/oc/v1/spaces/2061"
    }
  } ],
  "links" : {
    "next" : "http://localhost:50001/oc/v1/spaces/2061/documents?limit=5&before=2010-08-24T18%253A14%253A25.224%252B0000",
    "previous" : "http://localhost:50001/oc/v1/spaces/2061/documents?limit=5&after=2010-08-24T18%253A14%253A25.356%252B0000"
  }
}

Get follower

Check if the user is following the specified container

GET http://domain:port/application_context/api/core/v2/groups/{id}/followers/{userId}

Path Parameters

NameTypeDescriptionDefault Value
idlongthe identifier of the container to check for followers. 
userIdlongthe id of the follower to check for 

Response

TypeDescription
UserSummarythe user summary for the user if the user is following and a HTTP 404 response if the user is not following.

Get group

Returns information about the social group with the given identifier.

GET http://domain:port/application_context/api/core/v2/groups/{id}

Path Parameters

NameTypeDescriptionDefault Value
idlongunique system wide identifier for the social group which is to be returned. 

Response

TypeDescription
groupinformation about the social group with the given identifier.

Example

JSON Response Payload
{
  "creator" : {
    "name" : "user-WNsQGBA8Ax3LQoGY",
    "username" : "user-wnsqgba8ax3lqogy",
    "links" : {
      "alt" : "http://localhost:50001/oc/v1/users/2000",
      "avatar" : "http://localhost:50001/oc/v1/avatars/default"
    }
  },
  "groupType" : "PRIVATE",
  "name" : "SocialGroup-oV72e8JVwT",
  "displayName" : "socialgroup-ov72e8jvwt",
  "description" : "SocialGroup-oV72e8JVwT",
  "creationDate" : "2010-08-19T00:26:21.808+0000",
  "modificationDate" : "2010-08-19T00:26:22.889+0000"
}

Get groups

Returns a portion of all visible groups in the system as an array. The returned array is sorted in descending order by creation date. Both an offset and limit can be provided in order to be able to iterate through all groups in the system.

GET http://domain:port/application_context/api/core/v2/groups?offset=int&limit=int

Query Parameters

NameTypeDescriptionDefault Value
offsetintthe number of groups which should be skipped in the returned array. For instance, if the first 25 groups have already been retrieved groups after the 25th group can be retrieved by specifying an offset of 25. The minimum value for the offset is 0, specifying anything less than 0 for the offset will result in an exception."0"
limitintthe limit is the maximum number of groups which should be returned in the array. Depending upon how the groups are being presented on the client should define how many groups are needing to be returned. If the the total number of groups available in the system is less than the offset or if, in combination with the offset, the number of groups cannot be returned than the number of groups returned will be less than the given number. The minimum number is 1 and the maximum number is 1000, any limits provided outside of this range will result in an exception"25"

Response

TypeDescription
EntityCollectiona portion of all visible groups in the system as an array.

Example

JSON Response Payload

{
  "creator" : {
    "name" : null,
    "username" : "user-g3u2r9sbb9qn5y8s",
    "links" : {
      "alt" : "http://localhost:50001/oc/v1/users/2000",
      "avatar" : "http://localhost:50001/oc/v1/avatars/default"
    }
  },
  "groupType" : "OPEN",
  "name" : "SocialGroup-O58MeyHo5p",
  "displayName" : "socialgroup-o58meyho5p",
  "contents" : [ {
    "name" : "discussions",
    "ref" : "http://localhost:50001/oc/v1/groups/1000/discussions"
  }, {
    "name" : "documents",
    "ref" : "http://localhost:50001/oc/v1/groups/1000/documents"
  } ],
  "creationDate" : 1279752670108,
  "modificationDate" : 1279752670129,
  "description" : "SocialGroup-O58MeyHo5p"
}

Get projects

GET http://domain:port/application_context/api/core/v2/groups/{id}/projects?limit=int&after=String&before=String

Path Parameters

NameTypeDescriptionDefault Value
idlong 

Query Parameters

NameTypeDescriptionDefault Value
limitint"25"
afterString 
beforeString 

Response

TypeDescription
EntityCollection

Invites

Return all of the outstanding invitations for the specified social group.

GET http://domain:port/application_context/api/core/v2/groups/{groupID}/invites?limit=int&offset=int

Path Parameters

NameTypeDescriptionDefault Value
groupIDlongthe ID of the group whose invites are to retrieved 

Query Parameters

NameTypeDescriptionDefault Value
limitintthe maximum number of invites to be returned (default is 25)"25"
offsetintthe zero-relative starting point for the invites to be returned (default is 0)"0"

Response

TypeDescription
EntityCollection

Members

Retrieve a list of group members (with their current membership status) for the specified social group.

GET http://domain:port/application_context/api/core/v2/groups/{id}/members?limit=int&offset=int&state=List

Path Parameters

NameTypeDescriptionDefault Value
idlongthe id of the social group for which to retrieve members 

Query Parameters

NameTypeDescriptionDefault Value
limitintthe maximum number of members to be returned (default is 25)"25"
offsetintthe zero-relative starting point for the members to be returned (default is 0)"0"
stateListif specified, limit the returned members to those who have one of these states 

Response

TypeDescription
EntityCollection

Remove avatar

Deletes the avatar image of this social group.

Note: While there are three images of different sizes that represent the social group, they are considered the same resource. Deleting the avatar deletes all three sizes, just as updating with one image creates or updates all three sizes.

DELETE http://domain:port/application_context/api/core/v2/groups/{id}/avatar

Path Parameters

NameTypeDescriptionDefault Value
idlongthe id of the social group. 

Response

TypeDescription
Responsean HTTP status 204 is successful, or 404 is no image is attached to this social group.

Send invites

Send invitations to join the specified social group to the specified users.

POST http://domain:port/application_context/api/core/v2/groups/{groupID}/invites

Path Parameters

NameTypeDescriptionDefault Value
groupIDlongthe group that users are being invited to join 

Form Parameters

NameTypeDescriptionDefault Value
bodyDocumentParamthe HTML body of the invitation message to be sent 
inviteesListthe list of usernames or email addresses to whom this invitation should be extended 

Response

TypeDescription
Response

Share

Share this group with the specified set of users, using html as the notification message. Private social groups cannot be shared; members must be invited.

POST http://domain:port/application_context/api/core/v2/groups/{id}/share

Path Parameters

NameTypeDescriptionDefault Value
idlongthe group to be shared 

Form Parameters

NameTypeDescriptionDefault Value
htmlDocumentParamthe notification message 
userURIsSetthe users with which this group should be shared 

Response

TypeDescription
void

Unfollow

Stop following the specified container

DELETE http://domain:port/application_context/api/core/v2/groups/{id}/followers/{userId}

Path Parameters

NameTypeDescriptionDefault Value
idlongthe identifier of the container. 
userIdlongthe id of the following user to be removed. 

Response

TypeDescription
void

Update

Update an existing social group.

PUT http://domain:port/application_context/api/core/v2/groups/{id}

Path Parameters

NameTypeDescriptionDefault Value
idlongthe id of the social group to be updated 

Response

TypeDescription
group

Upload avatar

Uploads a new avatar image for the specified social group by specifying a URL to download the image. This operation will replace the existing avatar image, if any, for this social group.

The image will be downloaded and scaled as necessary before this operation returns.

POST http://domain:port/application_context/api/core/v2/groups/{id}/avatar

Path Parameters

NameTypeDescriptionDefault Value
idlongthe id of the social group. 

Form Parameters

NameTypeDescriptionDefault Value
urlStringThe URL of the image to use. This image may be a JPEG, PNG, or GIF formatted image. 

Response

TypeDescription
Responsean HTTP status 201 if the image was created, ot 204 if an existing image was replaced.