> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.canvas.courses.ListCoursesTaughtByTeacher

- Component: `appmixer.canvas.courses.ListCoursesTaughtByTeacher`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.canvas 1.1.2](https://connectors.appmixer.com/connector/appmixer.canvas/1.1.2.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.canvas/1.1.2/component/appmixer.canvas.courses.ListCoursesTaughtByTeacher>

Returns the details for courses taught by a teacher.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Teacher ID (`teacherId`) | number | The ID of the teacher. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Courses (`courses`) | array | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.canvas.courses.ListCoursesTaughtByTeacher",
  "author": "Harsha Surisetty <harsha@client.io>",
  "description": "Returns the details for courses taught by a teacher.",
  "private": false,
  "auth": {
    "service": "appmixer:canvas"
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "teacherId": {
            "type": "number"
          }
        },
        "required": [
          "teacherId"
        ]
      },
      "inspector": {
        "inputs": {
          "teacherId": {
            "type": "number",
            "index": 1,
            "label": "Teacher ID",
            "tooltip": "The ID of the teacher."
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Courses",
          "value": "courses",
          "schema": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "courseId": {
                  "type": "string",
                  "title": "Course ID",
                  "example": "12345"
                },
                "courseUuid": {
                  "type": "string",
                  "title": "Course UUID",
                  "example": "12345"
                },
                "courseName": {
                  "type": "string",
                  "title": "Course Name",
                  "example": "Introduction to Computer Science"
                },
                "courseCode": {
                  "type": "string",
                  "title": "Course Code",
                  "example": "CS101"
                },
                "courseStatus": {
                  "type": "string",
                  "title": "Course Status",
                  "example": "available"
                },
                "enrollmentTerm": {
                  "type": "string",
                  "title": "Enrollment Term",
                  "example": "Fall 2024"
                },
                "gradingPeriodS": {
                  "type": "string",
                  "title": "Grading Period S",
                  "example": "Q1 2024"
                },
                "createdDate": {
                  "type": "string",
                  "title": "Created Date",
                  "example": "2024-01-15T10:30:00Z"
                },
                "startedDate": {
                  "type": "string",
                  "title": "Started Date",
                  "example": "2024-01-15T10:30:00Z"
                },
                "endedDate": {
                  "type": "string",
                  "title": "Ended Date",
                  "example": "2024-01-15T10:30:00Z"
                },
                "enrollments": {
                  "type": "string",
                  "title": "Enrollments",
                  "example": "[]"
                },
                "totalStudents": {
                  "type": "string",
                  "title": "Total Students",
                  "example": "30"
                },
                "syllabusBody": {
                  "type": "string",
                  "title": "Syllabus Body",
                  "example": "<p>Course syllabus content</p>"
                },
                "needsGradingCount": {
                  "type": "string",
                  "title": "Needs Grading Count"
                },
                "license": {
                  "type": "string",
                  "title": "License",
                  "example": "private"
                },
                "timeZone": {
                  "type": "string",
                  "title": "Time Zone",
                  "example": "America/New_York"
                }
              }
            },
            "example": [
              {
                "courseId": "12345",
                "courseUuid": "12345",
                "courseName": "Introduction to Computer Science",
                "courseCode": "CS101",
                "courseStatus": "available",
                "enrollmentTerm": "Fall 2024",
                "gradingPeriodS": "Q1 2024",
                "createdDate": "2024-01-15T10:30:00Z",
                "startedDate": "2024-01-15T10:30:00Z",
                "endedDate": "2024-01-15T10:30:00Z",
                "enrollments": "[]",
                "totalStudents": "30",
                "syllabusBody": "<p>Course syllabus content</p>",
                "needsGradingCount": "3",
                "license": "private",
                "timeZone": "America/New_York"
              }
            ]
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
