Get Started
Usage API
More information

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

Newly created group

Example Response

application/json

{
  "status": 0,
  "response": {
    "id": "49d4607c-63cd-4d7f-992a-fc8aac5009fa",
    "name": "Sample group",
    "category": "12fd6584-50cb-40da-8220-43605254b0ef",
    "parent": "10f9562e-bba7-43cb-bafe-53ec60241d8d",
    "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>49d4607c-63cd-4d7f-992a-fc8aac5009fa</id>
    <name>Sample group</name>
    <category>12fd6584-50cb-40da-8220-43605254b0ef</category>
    <parent>10f9562e-bba7-43cb-bafe-53ec60241d8d</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>