/services/v2/group/[groupId].json
You can use the following parameters in your update a group request:
projection: include, exclude, includeOnly
Other options: wrap.
Permissions & Notes:
You must have the Edit user and groups permission under Site Administration Roles in the Advanced Editor.
You can specify the data describing what fields of group you are editing or updating, both in the body of the request, or as request parameter, with the same names as the fields in the body.
- When you send data in the body of the request, the format should match the URL extension, or the value of the site's HTTP request header content-type.
- If you specify data values for the same field, both on the request body and as request or query parameters, the value of the parameters takes precedence over the value in the body.
We added this request in version 1.6.3.
Sample Request
A PUT update a group request to https://apidocs.cloud.answerhub.com using a human-readable username and password (answerhub/test123) that updates a group (groupId: 95) to have a description ("Updating a Group") would look like this:
curl
-H "answerhub:test123"
-H "Accept: application/json"
-H "Content-type: application/json"
-X PUT
-d '{"description":"Updating a Group"}' "https://apidocs.cloud.answerhub.com/services/v2/group/95.json" -v
In the example above, Test Group (group 95) now has an added description, "Updating a Group" in the admin console.
Expected Response
Successful Response:
- HTTP Status 201 - Created