{
  "opencollection": "1.0.0",
  "info": {
    "name": "D2L Brightspace Valence Learning Framework Assignments Discussions API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://auth.brightspace.com/oauth2/auth",
      "accessTokenUrl": "https://auth.brightspace.com/core/connect/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Discussions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List discussion forums",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{host}/d2l/api/le/1.92/:orgUnitId/discussions/forums/",
            "params": [
              {
                "name": "orgUnitId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Retrieves the discussion forums in a course offering."
        },
        {
          "info": {
            "name": "Create a discussion forum",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{host}/d2l/api/le/1.92/:orgUnitId/discussions/forums/",
            "params": [
              {
                "name": "orgUnitId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new discussion forum in a course offering."
        },
        {
          "info": {
            "name": "List posts in a discussion topic",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{host}/d2l/api/le/1.92/:orgUnitId/discussions/forums/:forumId/topics/:topicId/posts/",
            "params": [
              {
                "name": "orgUnitId",
                "value": "",
                "type": "path"
              },
              {
                "name": "forumId",
                "value": "",
                "type": "path"
              },
              {
                "name": "topicId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Retrieves the posts in a discussion topic."
        },
        {
          "info": {
            "name": "Create a post in a discussion topic",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{host}/d2l/api/le/1.92/:orgUnitId/discussions/forums/:forumId/topics/:topicId/posts/",
            "params": [
              {
                "name": "orgUnitId",
                "value": "",
                "type": "path"
              },
              {
                "name": "forumId",
                "value": "",
                "type": "path"
              },
              {
                "name": "topicId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new post in a discussion topic."
        }
      ]
    }
  ],
  "bundled": true
}