Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
{
  "id": "api.form.read",
  "params": {
    "resmsgid": "ca4e73c4-ce1c-4208-a621-7ddfc6bde86e",
    "msgid": "47e955db-f3b1-4a4a-a1dc-242f6454d013",
    "status": "successful"
  },
  "responseCode": "OK",
  "result": {
    "form": {
      "type": "group",
      "subtype": "supported_activities",
      "action": "list",
      "component": "*",
      "framework": "*",
      "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\"}"
          },
          {
            "index": 2,
            "activityType": "Course",
            "objectType": "Content",
            "isEnabled": true,
            "sortBy": [
              {
                "name": "asc"
              }
            ],
            "searchQuery": "{\"request\":{\"filters\":{\"primaryCategory\":[\"Course\"],\"batches.status\":1,\"batches.enrollmentType\":\"open\",\"objectType\":[\"Content\"],\"status\":[\"Live\"]},\"fields\":[\"name\",\"appIcon\",\"contentType\",\"identifier\",\"objectType\",\"createdBy\"]}}",
            "title": "Course",
            "translations": "{\"en\": \"Course\", \"as\": \"পাঠ্যক্ৰমসমুহ\", \"bn\": \"পাঠ্যধারাগুলি\", \"gu\":\"કોર્સ\", \"hi\":\"कोर्स\", \"kn\":\"ಕೋರ್ಸ್ ಗಳು\", \"mr\":\"कोर्सेस\", \"or\":\"ପାଠ୍ୟକ୍ରମଗୁଡ଼ିକ\", \"pa\":\"ਕੋਰਸਿਸ\", \"ta\":\"பாடநெறிகள்\", \"te\":\"కోర్సులు\", \"ur\":\"کورسز\"}"
          }
        ]
      },
      "created_on": "2021-03-04T16:36:03.084Z",
      "last_modified_on": "2020-11-20T08:23:59.301Z",
      "rootOrgId": "*"
    }
  },
  "ts": "2021-03-09T04:09:33.853Z",
  "ver": "1.0"
}

Add activity request

The request for adding activity to a group

Endpoint

Code Block
group/v1/update

...