Get Started
Portal api methods
Help

POST api/2.0/group This function requires authentication

Description

Adds a new group with the group manager, name and users specified

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 users 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": [
    "00000000-0000-0000-0000-000000000000"
  ]
}
Returns

Newly created group

Example Response

application/json

{
  "status": 0,
  "response": {
    "id": "d445e9f6-01a4-407a-8ca8-37295b51697c",
    "name": "Sample group",
    "category": "2475b243-b02b-4992-a230-1e97b2de96ba",
    "parent": "06db9091-4d0a-4794-9554-efd294ed9c11",
    "description": null,
    "manager": {
      "id": "00000000-0000-0000-0000-000000000000",
      "displayName": "Mike Zanyatski",
      "title": "Manager",
      "avatarSmall": "url to small avatar",
      "profileUrl": ""
    },
    "members": [
      {
        "id": "00000000-0000-0000-0000-000000000000",
        "displayName": "Mike Zanyatski",
        "title": "Manager",
        "avatarSmall": "url to small avatar",
        "profileUrl": ""
      }
    ]
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <id>d445e9f6-01a4-407a-8ca8-37295b51697c</id>
    <name>Sample group</name>
    <category>2475b243-b02b-4992-a230-1e97b2de96ba</category>
    <parent>06db9091-4d0a-4794-9554-efd294ed9c11</parent>
    <description />
    <manager>
      <id>00000000-0000-0000-0000-000000000000</id>
      <displayName>Mike Zanyatski</displayName>
      <title>Manager</title>
      <avatarSmall>url to small avatar</avatarSmall>
      <profileUrl></profileUrl>
    </manager>
    <members>
      <id>00000000-0000-0000-0000-000000000000</id>
      <displayName>Mike Zanyatski</displayName>
      <title>Manager</title>
      <avatarSmall>url to small avatar</avatarSmall>
      <profileUrl></profileUrl>
    </members>
  </response>
</result>