add_parent
Add a guardian to a student's account by providing school ID, student ID, and guardian contact details. Establishes parent-student link for school communication.
Instructions
Create a guardian/parent and link them to a student. Requires PS_ENABLE_WRITES.
A parent is always created attached to at least one student. The new user id is not returned — call list_students or the parent roster afterward.
Args: school_id: School ID student_id: Student ID to attach the guardian to (from list_students) first_name: Guardian first name last_name: Guardian last name email: Guardian email (optional) phone: Guardian phone (optional)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | |||
| phone | No | ||
| last_name | Yes | ||
| school_id | Yes | ||
| first_name | Yes | ||
| student_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |