# Transparent Classroom

> Read children, classrooms, observations and forms in Transparent Classroom, update children and handle online applications.

App · 21 actions. Web page: https://docs.lodol.com/docs/integrations/transparent-classroom

## Actions

### Accept an online application

Accept an online application: Transparent Classroom creates the child and parents and adds the child to a classroom.

**Inputs**

- Application ID (`application_id`, number, required): The ID of the online application to accept.
- Classroom (`classroom_id`, number, required): The classroom to add the new child to.

**Outputs**

- `data` (object): The response from Transparent Classroom.

**Example output**

```json
{
  "data": {
    "child_id": 1
  }
}
```

### Get a child

Get one child's record: program, grade, allergies, parents, classrooms and more.

**Inputs**

- Child (`child_id`, number, required): The child to get.
- As of (`as_of`, date): Show the child's details as they were on this date.

**Outputs**

- `data` (object): The response from Transparent Classroom.

**Example output**

```json
{
  "data": {
    "allergies": "example",
    "birth_date": "example",
    "classroom_ids": [
      1
    ],
    "dominant_language": "example",
    "ethnicity": [
      "example"
    ],
    "exit_notes": "example",
    "exit_reason": "example",
    "exit_survey_id": 1,
    "first_day": "example",
    "first_name": "example",
    "gender": "example",
    "grade": "example",
    "hours_string": "example",
    "household_income": "example",
    "id": 1,
    "last_day": "example",
    "last_name": "example",
    "notes": "example",
    "parent_ids": [
      1
    ],
    "profile_photo": "example",
    "program": "example",
    "student_id": "example"
  }
}
```

### Get a form response

Get one form response with every answer.

**Inputs**

- Form ID (`form_id`, number, required): The ID of the form response.

**Outputs**

- `data` (object): The response from Transparent Classroom.

**Example output**

```json
{
  "data": {
    "child_id": 1,
    "created_at": "example",
    "fields": {},
    "form_template_id": 1,
    "id": 1,
    "state": "example"
  }
}
```

### Get a lesson set

Get a lesson set: its areas, their groups and every lesson in them.

**Inputs**

- Lesson set (`lesson_set_id`, number, required): The lesson set to get. Each classroom names the lesson set it uses.
- Format (`format`, text): Long includes each lesson's photos and descriptions. One of: `short`, `long`.

**Outputs**

- `data` (object): The response from Transparent Classroom.

**Example output**

```json
{
  "data": {
    "children": [
      {}
    ],
    "id": 1,
    "name": "example"
  }
}
```

### Get a user

Get one user's contact details, roles and classrooms.

**Inputs**

- User (`account_id`, number, required): The user to get.

**Outputs**

- `data` (object): The response from Transparent Classroom.

**Example output**

```json
{
  "data": {
    "accessible_classroom_ids": [
      1
    ],
    "address": "example",
    "default_classroom_id": 1,
    "email": "example",
    "first_name": "example",
    "home_number": "example",
    "id": 1,
    "inactive": true,
    "last_name": "example",
    "mobile_number": "example",
    "roles": [
      "example"
    ],
    "type": "example",
    "work_number": "example"
  }
}
```

### Get an online application

Get one online application with every answer on it.

**Inputs**

- Application ID (`application_id`, number, required): The ID of the online application.

**Outputs**

- `data` (object): The response from Transparent Classroom.

**Example output**

```json
{
  "data": {
    "fields": {},
    "id": 1,
    "school_id": 1,
    "state": "example",
    "type": "example"
  }
}
```

### List a child's lesson levels

List where a child stands on each lesson, such as planned.

**Inputs**

- Child (`child_id`, number, required): The child whose lesson levels to list.
- Lesson set (`lesson_set_id`, number): Only lessons in this lesson set.

**Outputs**

- `data` (list): The response from Transparent Classroom.

**Example output**

```json
{
  "data": [
    {
      "child_id": 1,
      "lesson_id": 1,
      "planned": true
    }
  ]
}
```

### List a child's lesson progress by date

List the proficiency a child reached on lessons, with the date of each, between two dates.

**Inputs**

- Child (`child_id`, number, required): The child whose progress to list.
- Date start (`date_start`, date, required): The first date to include.
- Date end (`date_end`, date, required): The last date to include.

**Outputs**

- `data` (list): The response from Transparent Classroom.

**Example output**

```json
{
  "data": [
    {
      "child_id": 1,
      "date": "example",
      "lesson_id": 1,
      "proficiency": 1
    }
  ]
}
```

### List activity

List the observations, presentations and photos recorded for a child or a classroom.

**Inputs**

- Child (`child_id`, number): Show activity for this child. Choose a child or a classroom.
- Classroom (`classroom_id`, number): Show activity for this classroom. Choose a child or a classroom.
- Only photos (`only_photos`, true/false): Only activity with photos.
- Only portfolio (`only_portfolio`, true/false): Only activity added to the portfolio.
- Date start (`date_start`, date): Only activity on or after this date.
- Date end (`date_end`, date): Only activity on or before this date. Empty means today.
- Page (`page`, number): Which page of results to return, starting at 1. At least 1.
- Per page (`per_page`, number): How many results to return on each page. Transparent Classroom returns 50 when this is empty. From 1 to 500.

**Outputs**

- `data` (list): The response from Transparent Classroom.

**Example output**

```json
{
  "data": [
    {
      "author_id": 1,
      "created_at": "example",
      "date": "example",
      "html": "example",
      "id": 1,
      "text": "example"
    }
  ]
}
```

### List children

List the children in the school or in one classroom, for the current session unless you choose another.

**Inputs**

- Classroom (`classroom_id`, number): Only children in this classroom. Teacher accounts must choose one.
- Session (`session_id`, number): Only children enrolled in this session. Empty means the current session.
- Only current (`only_current`, true/false): Leave out children who have left the school.
- Page (`page`, number): Which page of results to return, starting at 1. At least 1.
- Per page (`per_page`, number): How many results to return on each page. Transparent Classroom returns 50 when this is empty. From 1 to 500.

**Outputs**

- `data` (list): The response from Transparent Classroom.

**Example output**

```json
{
  "data": [
    {
      "allergies": "example",
      "birth_date": "example",
      "classroom_ids": [
        1
      ],
      "dominant_language": "example",
      "ethnicity": [
        "example"
      ],
      "exit_notes": "example",
      "exit_reason": "example",
      "exit_survey_id": 1,
      "first_day": "example",
      "first_name": "example",
      "gender": "example",
      "grade": "example",
      "hours_string": "example",
      "household_income": "example",
      "id": 1,
      "last_day": "example",
      "last_name": "example",
      "notes": "example",
      "parent_ids": [
        1
      ],
      "profile_photo": "example",
      "program": "example",
      "student_id": "example"
    }
  ]
}
```

### List classrooms

List the school's classrooms with their level and lesson set.

**Inputs**

- Show inactive (`show_inactive`, true/false): Include inactive classrooms too. Only admins see them.

**Outputs**

- `data` (list): The response from Transparent Classroom.

**Example output**

```json
{
  "data": [
    {
      "active": true,
      "id": 1,
      "lesson_set_id": 1,
      "level": "example",
      "name": "example"
    }
  ]
}
```

### List conference reports

List conference reports, for one child or the whole school.

**Inputs**

- Child (`child_id`, number): Only reports for this child.
- Created after (`created_after`, date): Only reports created after this date.
- Created before (`created_before`, date): Only reports created before this date.
- Page (`page`, number): Which page of results to return, starting at 1. At least 1.
- Per page (`per_page`, number): How many results to return on each page. Transparent Classroom returns 50 when this is empty. From 1 to 500.

**Outputs**

- `data` (list): The response from Transparent Classroom.

**Example output**

```json
{
  "data": [
    {
      "child_id": 1,
      "created_at": "example",
      "data": [
        {}
      ],
      "id": 1,
      "name": "example"
    }
  ]
}
```

### List daily tracking events

List a child's daily tracking events (attendance, naps, meals, toileting and so on) between two dates.

**Inputs**

- Child (`child_id`, number, required): The child whose events to list.
- Date start (`date_start`, date, required): The first date to include.
- Date end (`date_end`, date, required): The last date to include.

**Outputs**

- `data` (list): The response from Transparent Classroom.

**Example output**

```json
{
  "data": [
    {
      "child_id": 1,
      "classroom_id": 1,
      "created_by_id": 1,
      "created_by_name": "example",
      "event_type": "example",
      "id": 1,
      "time": "example",
      "value": "example",
      "value2": "example"
    }
  ]
}
```

### List form responses

List responses to the school's forms, by form, child or date.

**Inputs**

- Form (`form_template_id`, number): Only responses to this form.
- Child (`child_id`, number): Only responses about this child.
- Created after (`created_after`, date): Only responses created after this date.
- Created before (`created_before`, date): Only responses created before this date.
- Page (`page`, number): Which page of results to return, starting at 1. At least 1.
- Per page (`per_page`, number): How many results to return on each page. Transparent Classroom returns 50 when this is empty. From 1 to 500.

**Outputs**

- `data` (list): The response from Transparent Classroom.

**Example output**

```json
{
  "data": [
    {
      "child_id": 1,
      "created_at": "example",
      "fields": {},
      "form_template_id": 1,
      "id": 1,
      "state": "example"
    }
  ]
}
```

### List forms

List the school's forms and the questions on each.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Transparent Classroom.

**Example output**

```json
{
  "data": [
    {
      "id": 1,
      "name": "example",
      "widgets": [
        {}
      ]
    }
  ]
}
```

### List online applications

List the school's online applications, optionally only those made after a time.

**Inputs**

- Created at (`created_at`, date and time): Only applications made after this date and time.
- Page (`page`, number): Which page of results to return, starting at 1. At least 1.
- Per page (`per_page`, number): How many results to return on each page. Transparent Classroom returns 50 when this is empty. From 1 to 500.

**Outputs**

- `data` (list): The response from Transparent Classroom.

**Example output**

```json
{
  "data": [
    {
      "created_at": "example",
      "first_name": "example",
      "id": 1,
      "last_name": "example",
      "state": "example"
    }
  ]
}
```

### List schools

List the schools the connected account can reach. For a network admin this is every school in the network.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Transparent Classroom.

**Example output**

```json
{
  "data": [
    {
      "address": "example",
      "id": 1,
      "name": "example",
      "phone": "example",
      "time_zone": "example",
      "type": "example"
    }
  ]
}
```

### List sessions

List the school's sessions (school years and terms), newest first. Needs an admin account.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Transparent Classroom.

**Example output**

```json
{
  "data": [
    {
      "children": 1,
      "current": true,
      "id": 1,
      "inactive": true,
      "name": "example",
      "start_date": "example",
      "stop_date": "example"
    }
  ]
}
```

### List users

List the school's users (teachers, parents, admins and family members), optionally by role.

**Inputs**

- Classroom (`classroom_id`, number): Only users of this classroom. Teacher accounts must choose one.
- Roles (`roles`, list): Only users with any of these roles. One or more of: `teacher`, `parent`, `admin`, `billing_manager` (Billing manager), `family_member` (Family member).
- Page (`page`, number): Which page of results to return, starting at 1. At least 1.
- Per page (`per_page`, number): How many results to return on each page. Transparent Classroom returns 50 when this is empty. From 1 to 500.

**Outputs**

- `data` (list): The response from Transparent Classroom.

**Example output**

```json
{
  "data": [
    {
      "accessible_classroom_ids": [
        1
      ],
      "address": "example",
      "default_classroom_id": 1,
      "email": "example",
      "first_name": "example",
      "home_number": "example",
      "id": 1,
      "inactive": true,
      "last_name": "example",
      "mobile_number": "example",
      "roles": [
        "example"
      ],
      "type": "example",
      "work_number": "example"
    }
  ]
}
```

### Submit an online application

Submit an online application to the school, as a family would on the school's application form.

**Inputs**

- Fields (`fields`, object, required): The answers, keyed by the application form's field names, for example {"program": "Full Day", "child_name.first": "Billy", "child_name.last": "Bob", "child_birth_date": "5/1/2012", "session": 52}.
- Template ID (`template_id`, number): The application form to use, when the school has more than one.
- Silence notifications (`silence_notifications`, true/false): Don't send the email that says an application arrived.

**Outputs**

- `data` (object): The response from Transparent Classroom.

**Example output**

```json
{
  "data": {
    "id": 1
  }
}
```

### Update a child

Change details on a child's record. Only the fields you fill in are changed.

**Inputs**

- Child (`child_id`, number, required): The child to update.
- First name (`first_name`, text): The child's first name.
- Last name (`last_name`, text): The child's last name.
- Birth date (`birth_date`, date): The child's date of birth.
- Gender (`gender`, text): The child's gender, as Transparent Classroom stores it (for example M or F).
- Program (`program`, text): The program the child is in, such as Full Day.
- Ethnicity (`ethnicity`, list): The child's ethnicities, one per item.
- Household income (`household_income`, text): The household income band. One of: `very_low` (Very low), `low`, `medium`, `high`.
- Dominant language (`dominant_language`, text): The language spoken most at home.
- Grade (`grade`, text): The child's grade, such as 3rd.
- Student ID (`student_id`, text): The school's own ID for the child.
- Hours string (`hours_string`, text): The child's hours, written like 8:00AM(9:00AM) - 5:00PM M-F.
- Allergies (`allergies`, text): The child's allergies.
- Approved adults string (`approved_adults_string`, text): The adults approved to pick the child up.
- Emergency contacts string (`emergency_contacts_string`, text): The child's emergency contacts.
- Notes (`notes`, text): Notes about the child.

**Outputs**

- `data` (object): The response from Transparent Classroom.

**Example output**

```json
{
  "data": {
    "allergies": "example",
    "birth_date": "example",
    "classroom_ids": [
      1
    ],
    "dominant_language": "example",
    "ethnicity": [
      "example"
    ],
    "exit_notes": "example",
    "exit_reason": "example",
    "exit_survey_id": 1,
    "first_day": "example",
    "first_name": "example",
    "gender": "example",
    "grade": "example",
    "hours_string": "example",
    "household_income": "example",
    "id": 1,
    "last_day": "example",
    "last_name": "example",
    "notes": "example",
    "parent_ids": [
      1
    ],
    "profile_photo": "example",
    "program": "example",
    "student_id": "example"
  }
}
```
