Feed /group/{group-id}/feed

The feed of a group.

Reading

GET /group/{group-id}/feed HTTP/1.1
Host: localhost:3000

Permissions

  • The applied permissions to retrieve the parent group are required.

Fields

An array of Post objects attached to the parent group and whose its retrieve permissions are granted.

Publishing

POST /group/{group-id}/feed HTTP/1.1
Host: localhost:3000

Permissions

  • An access token (pointing to an user) with publish_speaking permission is required.
  • At least one of the following criteria must be met :
    • The privacy field of the parent group is set to PUBLIC and the current person is a member of the workspace at witch is attached the parent group.
    • The privacy field of the parent group is set to PRIVATE or HIDDEN and at least one of the following criteria is met :
      • The parent group is owned by the current person.
      • The current person is a member of the parent group.
      • The current person is an admin (with MANAGE permission) of the workspace at witch is attached the parent group.

Fields

Name Description Type

message

The message of the post.

string

subject

The subject of the post.
Must be a subject belonging to the Group subjects.

string

Response

If successful :

{
    "success" : true,
    "_id" : "..."
}

Otherwise a relevant error message will be returned.

Updating

You can update posts by using the /post edge.

Deleting

You can delete posts by using the /post edge.