无法使用 REST API (/groups) POST 在户外创建新组

Cannot create a new Group in alfresco using the REST API (/groups) POST

向社区致以问候!我正尝试按照本指南 https://api-explorer.alfresco.com/api-explorer/#!/groups/createGroup 使用 REST API 在户外创建一个新用户组。我正在使用 Postman 进行 REST 调用。到目前为止,我已经成功地使用 (/people) (POST) 方法创建了新用户,如下所示:

POST: http://localhost:8080/alfresco/s/api/people?alf_ticket=TICKET_<<my_alf_ticket>> 以及正文中的以下 JSON:

{
    "userId": "user",
    "password": "pass",
    "userName": "user",
    "firstName": "user",
    "lastName": "user",
    "email": "user@user.com"
   }

不幸的是,当我类似地尝试创建一个像下面这样的新组时

POST: http://localhost:8080/alfresco/s/api/groups?alf_ticket=TICKET<<my_alf_ticket>>

在正文部分

{
            "authorityType": "GROUP",
            "shortName": "GROUP1",
            "fullName": "GROUP_GROUP1",
            "displayName": "GROUP_GROUP1"
   }

我面临以下情况error

任何帮助将不胜感激:)

这是旧的api:

1) POST http://localhost:8080/alfresco/s/api/rootgroups/{shortName} to create group

2) POST http://localhost:8080/alfresco/s/api/groups/{shortName}/children/{fullAuthorityName} Adds a group or user to a group.

对于新 api 你应该使用:

POST http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/groups

CURL

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Authorization: Basic YWRtaW46YWRtaW4=' -d '{
  "id": "TEST_GROUP_ID",
  "displayName": "Group for tests"
}' 'https://api-explorer.alfresco.com/alfresco/api/-default-/public/alfresco/versions/1/groups'

回应

{
  "entry": {
    "isRoot": true,
    "displayName": "Group for tests",
    "id": "GROUP_TEST_GROUP_ID"
  }
}