-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document Group API #198
Comments
Name and shortcode follow standard sanitation functions: {
"error": {
"message": "name did not pass sanitization‚ shortCode did not pass sanitization",
"status_code": 400
}
} |
|
Keeping this open as |
And |
All GroupMember examples in the documentation have
(all of these have been tested.) |
Maybe one more thing: They changed recently that you can create multiple announcements, so Endpoint Read PostsGET
To Create a new Post:POST
Response:
Delete PostDELETE Reponse:
Fields:
|
Note: only GET /groups/roleTemplates and /users//feedback?contentId=&metadata=true seem to be missing |
|
Oh, true |
Written by @ariesclark and @Miner28. Moving to an Issue to better track information across PR's.
Group API
Research Stage
List User Groups
GET /users/<user-id>/groups
Response (example)
Create Group
POST /groups
Body (example)
name
must be at least 3 characters.shortCode
must be at least 3 characters.joinState
one ofclosed
,invite
,request
,open
.privacy
one ofdefault
,private
.roleTemplate
one ofdefault
,managedFree
,managedInvite
,managedRequest
.Response
Group Object
Get Group
GET groups/<group-id>
Query parameters
includeRoles
optional boolean, default false.Response (example)
Update Group
PUT groups/<group-id>
Body
Response
Group Object
Delete Group
DELETE groups/<group-id>
Response
List Group Galleries
GET /groups/<group-id>/galleries/<group-gallery-id>
Query parameters
looks like the website sends a duplicate parameter
galleryId
typical pagination:
n
,offset
.Response (example)
List Group Roles
GET /groups/<group-id>/roles
Response (example)
Create Group Role
POST /groups/<group-id>/roles
Body (example)
Response
Group Role Object
Update Group Role
PUT /groups/<group-id>/roles/<group-role-id>
Body
assuming same properties as creation.
Response
Array of existing role objects.
Delete Group Role
DELETE /groups/<group-id>/roles/<group-role-id>
Body (example)
Response
Array of existing role objects.
List Group Invites
GET /groups/<group-id>/invites
Query parameters
typical pagination:
n
,offset
.Response (example)
Create Group Invite
POST /groups/<group-id>/invites
Body (example)
Delete Group Invite
DELETE /groups/<group-id>/invites/<user-id>
Response
List Group Requests
GET /groups/<group-id>/requests
Query parameters
typical pagination:
n
,offset
.List Group Members
GET /groups/<group-id>/members
Query parameters
typical pagination:
n
,offset
.Response (example)
List Group Audit Log
GET /groups/<group-id>/auditLogs
Query parameters
typical pagination:
n
,offset
.Response (example)
List Group Permissions
GET /groups/<group-id>/permissions
Response (example)
Get Group Announcement
GET /groups/<group-id>/announcement
Response (example)
Empty object when no announcement or
Set Group Announcement
POST /groups/<group-id>/announcement
Body
Response
Group Announcement Object
List Group Instances
GET /groups/<group-id>/instances
Delete Join Request
DELETE /groups/<group-id>/requests
Create Join Request
POST /groups/<group-id>/join
List Group Role Templates
GET /groups/roleTemplates
Feedback API?
/users/<user-id>/feedback?contentId=<group-id>&metadata=true
POST
/feedbacks/group/<group-id>
RESPONSE
PUT
/groups/<groupId>/requests/<userId>
ACCEPT RESPONSE
REJECT RESPONSE
The text was updated successfully, but these errors were encountered: