public. Add or modify a group
None
| Name | Type | Description |
| authenticate | bool? | Force authentication for request (default: false) |
| authpassword | string? | Password to use for verification with external authentication service |
| authusername | string? | Username to use for verification with external authentication service |
| Name | Value | Description |
| BadRequest | 400 | Invalid input parameter or request body |
| Conflict | 409 | Group already exists |
| Forbidden | 403 | Administrator access is required |
| NotFound | 404 | Requested group could not be found |
| Ok | 200 | Request completed successfully |
Input:
<group id="{int}">
<name>{text}</name>
<service.authentication id="{int}" />
<users>
<user id="{int}"/>
...
</users>
<permissions.group>
<role>{text}</role>
</permissions.group>
</group>
Output :
<group id="{int}" href="{uri}">
<name>{text}</name>
<service.authentication id="{int}" href="{uri}" />
<users count="{int}" href="{uri}" />
<permissions.group>
<operations mask="{int}">{text}</operations>
<role id="{int}" href="{uri}">{text}</role>
</permissions.group>
</group>
If group ID is unspecified, a new group will be created. If group ID is specified, the role of the existing group will be updated.
If service.authentication is unspecified, the local authentication service is assumed. Otherwise, if an external authentication service is used, the authpassword and authusername query parameters will be used to login.
The role name must match one of the roles defined by GET:site/roles.
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |
Copyright © 2011 MindTouch, Inc. Powered by