Groups: Tech Documentation - Add activity

 

This document will help to understand how to add an activity in a group

Background

  1. We can enable any activity type for a group

  2. We can configure form API for that

Form creation

This form will be used to populate the activity types that can be added for a group. If there is no form created we won’t be able to add any activity.

End Point:

POST: /data/v1/form/create

Request Body

{ "request": { "type": "group", "subType": "supported_activities", "action": "list", "data": { "templateName": "supported_activities", "action": "list", "fields": [ { "index": 0, "activityType": "Explanation Content", "objectType": "Content", "isEnabled": true, "sortBy": [ { "name": "asc" } ], "searchQuery": "{\"request\":{\"filters\":{\"primaryCategory\":[\"Explanation Content\"],\"status\":[\"Live\"],\"objectType\":[\"Content\"]},\"fields\":[\"name\",\"appIcon\",\"contentType\",\"identifier\",\"objectType\",\"createdBy\"]}}", "title": "Explanation Content", "translations": "{\"en\":\"Explanation Content\"}" }, { "index": 1, "activityType": "Learning Resource", "objectType": "Content", "isEnabled": true, "sortBy": [ { "name": "asc" } ], "searchQuery": "{\"request\":{\"filters\":{\"primaryCategory\":[\"Learning Resource\"],\"status\":[\"Live\"],\"objectType\":[\"Content\"]},\"fields\":[\"name\",\"appIcon\",\"contentType\",\"identifier\",\"objectType\",\"createdBy\"]}}", "title": "Learning Resource", "translations": "{\"en\":\"Learning Resource\"}" }, { "ind