POST api/2.0/group This function requires authentication

Description

Adds a new group with the group manager, name, and members specified in the request.

Parameters
Name Description Type Example
groupManager
sent in body
Group manager guid 9924256A-739C-462b-AF15-E652A3B1B6EB
groupName
sent in body
Group name string some text
members
sent in body
List of group members Collection of guids
collection
9924256A-739C-462b-AF15-E652A3B1B6EB
Example
POST api/2.0/group
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "groupManager": "9924256A-739C-462b-AF15-E652A3B1B6EB",
  "groupName": "some text",
  "members": [
    "9924256A-739C-462b-AF15-E652A3B1B6EB"
  ]
}
Returns

Newly created group

Example Response

application/json

{
  "status": 0,
  "response": {
    "Id": "fadd9f49-2431-4610-a518-3ca9b3843c88",
    "Name": "Sample group",
    "Category": "74f31a85-991b-4e9b-b9e8-ae8e80d468f5",
    "Parent": "852d4b63-997a-4bae-aa7b-89bb87d85dbf",
    "Description": "Description",
    "Manager": {
      "Id": "00000000-0000-0000-0000-000000000000",
      "DisplayName": "Mike Zanyatski",
      "Title": "Manager",
      "AvatarSmall": "url to small avatar",
      "ProfileUrl": "\\/Products\\/People\\/Profile.aspx?user=administrator"
    },
    "Members": [
      {
        "Id": "00000000-0000-0000-0000-000000000000",
        "DisplayName": "Mike Zanyatski",
        "Title": "Manager",
        "AvatarSmall": "url to small avatar",
        "ProfileUrl": "\\/Products\\/People\\/Profile.aspx?user=administrator"
      }
    ]
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <Id>fadd9f49-2431-4610-a518-3ca9b3843c88</Id>
    <Name>Sample group</Name>
    <Category>74f31a85-991b-4e9b-b9e8-ae8e80d468f5</Category>
    <Parent>852d4b63-997a-4bae-aa7b-89bb87d85dbf</Parent>
    <Description>Description</Description>
    <Manager>
      <Id>00000000-0000-0000-0000-000000000000</Id>
      <DisplayName>Mike Zanyatski</DisplayName>
      <Title>Manager</Title>
      <AvatarSmall>url to small avatar</AvatarSmall>
      <ProfileUrl>\/Products\/People\/Profile.aspx?user=administrator</ProfileUrl>
    </Manager>
    <Members>
      <Id>00000000-0000-0000-0000-000000000000</Id>
      <DisplayName>Mike Zanyatski</DisplayName>
      <Title>Manager</Title>
      <AvatarSmall>url to small avatar</AvatarSmall>
      <ProfileUrl>\/Products\/People\/Profile.aspx?user=administrator</ProfileUrl>
    </Members>
  </response>
</result>