> For the complete documentation index, see [llms.txt](https://guide.fariaedu.com/integrations-portal/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.fariaedu.com/integrations-portal/openapply/public-rest-apis/v3/forms.md).

# Forms

This page describes all the APIs relating to forms.

## Submit a form for a student

> Saves the values onto the student and submits the form the way a parent does\
> on the form itself: the student's status moves to Applied (Application forms),\
> tags, flags and the checklist are updated, and the activity is logged. Nothing\
> is saved unless the whole submission succeeds.\
> \
> The parent and the student must both belong to the school and be linked by a\
> relationship (see \`PUT /api/v3/relationships/parent/{id}\`), otherwise the response\
> is \`422\` with an \`error\` message; the parent is recorded as the one acting on the\
> submission. Only published Application and Supplementary\
> forms can be submitted for an existing student; a Supplementary must be assigned\
> to the student through a checklist item. As on the parent form, a form that has\
> already been submitted is locked until the school unlocks the student's profile,\
> and a form past its deadline is closed; an Application form must also be one of the\
> school's upcoming application forms. Forms that take a payment or need an\
> e-signature are not supported yet, and neither are file uploads: a required file\
> field must already have a file, uploaded on the parent form.\
> \
> Run the same request against \`/prepare\` first to check it without saving.<br>

```json
{"openapi":"3.0.1","info":{"title":"openapply","version":"3.0.0"},"tags":[{"name":"Forms","description":"This page describes all the APIs relating to forms."}],"servers":[{"url":"https://api.openapply.com","description":"CAN region auth server"},{"url":"https://api.openapply.cn","description":"CN region auth server"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}}},"paths":{"/api/v3/parents/{parent_id}/students/{student_id}/forms/{id}/submit":{"post":{"summary":"Submit a form for a student","tags":["Forms"],"operationId":"submitStudentForm","description":"Saves the values onto the student and submits the form the way a parent does\non the form itself: the student's status moves to Applied (Application forms),\ntags, flags and the checklist are updated, and the activity is logged. Nothing\nis saved unless the whole submission succeeds.\n\nThe parent and the student must both belong to the school and be linked by a\nrelationship (see `PUT /api/v3/relationships/parent/{id}`), otherwise the response\nis `422` with an `error` message; the parent is recorded as the one acting on the\nsubmission. Only published Application and Supplementary\nforms can be submitted for an existing student; a Supplementary must be assigned\nto the student through a checklist item. As on the parent form, a form that has\nalready been submitted is locked until the school unlocks the student's profile,\nand a form past its deadline is closed; an Application form must also be one of the\nschool's upcoming application forms. Forms that take a payment or need an\ne-signature are not supported yet, and neither are file uploads: a required file\nfield must already have a file, uploaded on the parent form.\n\nRun the same request against `/prepare` first to check it without saving.\n","parameters":[{"name":"parent_id","in":"path","required":true,"schema":{"type":"integer"},"description":"Parent ID"},{"name":"student_id","in":"path","required":true,"schema":{"type":"integer"},"description":"Student ID"},{"name":"id","in":"path","required":true,"schema":{"type":"integer"},"description":"Form ID"}],"responses":{"201":{"description":"form submitted","content":{"application/json":{"schema":{"type":"object","properties":{"submission":{"type":"object","properties":{"form_id":{"type":"integer"},"kind":{"type":"string","enum":["application","supplementary"]},"status":{"type":"string","enum":["submitted"]},"student_id":{"type":"integer"},"parent_ids":{"type":"array","items":{"type":"integer"}}}}}}}}},"404":{"description":"parent, student or form not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"422":{"description":"validation failed or form not supported","content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}},"field_errors":{"type":"array","description":"Errors that can be tied to a field. `slug` is the field slug, `<group slug>[<i>].<child slug>` for the i-th row the request sent for a group, or `parents[<i>].<child slug>` for the i-th entry of `parents`. A stored row or parent that the request did not send gets `<group slug>.<child slug>` or `parents.<child slug>`; `row_id` or `parent_id` says which one, so it can be sent with the fix.","items":{"type":"object","properties":{"slug":{"type":"string"},"parent_id":{"type":"integer","description":"For a parent field: the existing parent it belongs to."},"row_id":{"type":"integer","description":"For a group row field: the existing row it belongs to."},"message":{"type":"string"}}}}},"required":["errors","field_errors"]}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"values":{"type":"object","description":"Field values keyed by the field `slug` from `GET /api/v3/forms/{id}`. Omitted fields keep their stored value; `null` clears a field. Choice fields take option ids (an array of ids for multiple choice). A group field takes an array of rows `{ id, _destroy, values }`: a row with `id` updates that row, a row without `id` adds one, `_destroy: true` removes one, and omitted rows are kept. Parents are not sent here; use `parents`.","additionalProperties":true},"options":{"type":"object","properties":{"send_welcome_email":{"type":"boolean","default":false,"description":"Send each parent this submission creates the welcome email inviting them to set their password. Off by default; the parent still gets a login account."}}},"parents":{"type":"array","description":"Parents, with values keyed by the slugs of the form's parent group children. An `id` updates that parent of the school and links them to the student if needed; without `id` a new parent is always created and linked, even if their name matches an existing parent, with a login account; see `options.send_welcome_email`. A new parent needs a first name, last name or email. Omitted values keep their stored value, including the relationship. Parents cannot be removed here: unlink them with `PUT /api/v3/relationships/parent/{id}`.","items":{"type":"object","properties":{"id":{"type":"integer"},"values":{"type":"object","additionalProperties":true}}}}}}}}}}}}}
```

## Check a form submission without saving

> Runs exactly the same checks as \`/submit\` for the same request body, but never\
> saves anything. A \`200\` means the identical body will be accepted by \`/submit\`;\
> a \`422\` returns the same errors \`/submit\` would.\
> \
> The parent and the student must both belong to the school and be linked by a\
> relationship (see \`PUT /api/v3/relationships/parent/{id}\`), otherwise the response\
> is \`422\` with an \`error\` message; the parent is recorded as the one acting on the\
> submission. Only published Application and Supplementary\
> forms can be submitted for an existing student; a Supplementary must be assigned\
> to the student through a checklist item. As on the parent form, a form that has\
> already been submitted is locked until the school unlocks the student's profile,\
> and a form past its deadline is closed; an Application form must also be one of the\
> school's upcoming application forms. Forms that take a payment or need an\
> e-signature are not supported yet, and neither are file uploads: a required file\
> field must already have a file, uploaded on the parent form.\ <br>

```json
{"openapi":"3.0.1","info":{"title":"openapply","version":"3.0.0"},"tags":[{"name":"Forms","description":"This page describes all the APIs relating to forms."}],"servers":[{"url":"https://api.openapply.com","description":"CAN region auth server"},{"url":"https://api.openapply.cn","description":"CN region auth server"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}}},"paths":{"/api/v3/parents/{parent_id}/students/{student_id}/forms/{id}/prepare":{"post":{"summary":"Check a form submission without saving","tags":["Forms"],"operationId":"prepareStudentForm","description":"Runs exactly the same checks as `/submit` for the same request body, but never\nsaves anything. A `200` means the identical body will be accepted by `/submit`;\na `422` returns the same errors `/submit` would.\n\nThe parent and the student must both belong to the school and be linked by a\nrelationship (see `PUT /api/v3/relationships/parent/{id}`), otherwise the response\nis `422` with an `error` message; the parent is recorded as the one acting on the\nsubmission. Only published Application and Supplementary\nforms can be submitted for an existing student; a Supplementary must be assigned\nto the student through a checklist item. As on the parent form, a form that has\nalready been submitted is locked until the school unlocks the student's profile,\nand a form past its deadline is closed; an Application form must also be one of the\nschool's upcoming application forms. Forms that take a payment or need an\ne-signature are not supported yet, and neither are file uploads: a required file\nfield must already have a file, uploaded on the parent form.\n\n","parameters":[{"name":"parent_id","in":"path","required":true,"schema":{"type":"integer"},"description":"Parent ID"},{"name":"student_id","in":"path","required":true,"schema":{"type":"integer"},"description":"Student ID"},{"name":"id","in":"path","required":true,"schema":{"type":"integer"},"description":"Form ID"}],"responses":{"200":{"description":"ready to submit","content":{"application/json":{"schema":{"type":"object","properties":{"submission":{"type":"object","properties":{"form_id":{"type":"integer"},"kind":{"type":"string","enum":["application","supplementary"]},"status":{"type":"string","enum":["ready"]}}}}}}}},"422":{"description":"validation failed or form not supported","content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}},"field_errors":{"type":"array","description":"Errors that can be tied to a field. `slug` is the field slug, `<group slug>[<i>].<child slug>` for the i-th row the request sent for a group, or `parents[<i>].<child slug>` for the i-th entry of `parents`. A stored row or parent that the request did not send gets `<group slug>.<child slug>` or `parents.<child slug>`; `row_id` or `parent_id` says which one, so it can be sent with the fix.","items":{"type":"object","properties":{"slug":{"type":"string"},"parent_id":{"type":"integer","description":"For a parent field: the existing parent it belongs to."},"row_id":{"type":"integer","description":"For a group row field: the existing row it belongs to."},"message":{"type":"string"}}}}},"required":["errors","field_errors"]}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"values":{"type":"object","description":"Field values keyed by the field `slug` from `GET /api/v3/forms/{id}`. Omitted fields keep their stored value; `null` clears a field. Choice fields take option ids (an array of ids for multiple choice). A group field takes an array of rows `{ id, _destroy, values }`: a row with `id` updates that row, a row without `id` adds one, `_destroy: true` removes one, and omitted rows are kept. Parents are not sent here; use `parents`.","additionalProperties":true},"options":{"type":"object","properties":{"send_welcome_email":{"type":"boolean","default":false,"description":"Send each parent this submission creates the welcome email inviting them to set their password. Off by default; the parent still gets a login account."}}},"parents":{"type":"array","description":"Parents, with values keyed by the slugs of the form's parent group children. An `id` updates that parent of the school and links them to the student if needed; without `id` a new parent is always created and linked, even if their name matches an existing parent, with a login account; see `options.send_welcome_email`. A new parent needs a first name, last name or email. Omitted values keep their stored value, including the relationship. Parents cannot be removed here: unlink them with `PUT /api/v3/relationships/parent/{id}`.","items":{"type":"object","properties":{"id":{"type":"integer"},"values":{"type":"object","additionalProperties":true}}}}}}}}}}}}}
```

## Submit a form for a new student

> Creates a student from the values and submits the form the way a parent does on\
> the form itself. An Application moves the student to Applied; an ROI creates an\
> inquiry. Nothing is saved unless the whole submission succeeds.\
> \
> The student is created under the parent, who must belong to the school. The parent\
> and their partners are linked to the new student, as the parent form does for a\
> signed-in parent, with the relationship each already has with another child; send\
> it in \`parents\` if they have none. To update a partner's values, send them with\
> their \`id\`. Published Application forms and the school's\
> active ROI form are supported; a Supplementary form needs an existing student. As\
> on the parent form, an Application form must be one of the school's upcoming\
> application forms, not past its deadline.\
> Forms that take a payment or need an e-signature are not supported yet, and\
> neither are file uploads.\
> \
> Run the same request against \`/prepare\` first to check it without saving.<br>

```json
{"openapi":"3.0.1","info":{"title":"openapply","version":"3.0.0"},"tags":[{"name":"Forms","description":"This page describes all the APIs relating to forms."}],"servers":[{"url":"https://api.openapply.com","description":"CAN region auth server"},{"url":"https://api.openapply.cn","description":"CN region auth server"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}}},"paths":{"/api/v3/parents/{parent_id}/forms/{id}/submit":{"post":{"summary":"Submit a form for a new student","tags":["Forms"],"operationId":"submitNewStudentForm","description":"Creates a student from the values and submits the form the way a parent does on\nthe form itself. An Application moves the student to Applied; an ROI creates an\ninquiry. Nothing is saved unless the whole submission succeeds.\n\nThe student is created under the parent, who must belong to the school. The parent\nand their partners are linked to the new student, as the parent form does for a\nsigned-in parent, with the relationship each already has with another child; send\nit in `parents` if they have none. To update a partner's values, send them with\ntheir `id`. Published Application forms and the school's\nactive ROI form are supported; a Supplementary form needs an existing student. As\non the parent form, an Application form must be one of the school's upcoming\napplication forms, not past its deadline.\nForms that take a payment or need an e-signature are not supported yet, and\nneither are file uploads.\n\nRun the same request against `/prepare` first to check it without saving.\n","parameters":[{"name":"parent_id","in":"path","required":true,"schema":{"type":"integer"},"description":"Parent ID"},{"name":"id","in":"path","required":true,"schema":{"type":"integer"},"description":"Form ID"}],"responses":{"201":{"description":"student created and form submitted","content":{"application/json":{"schema":{"type":"object","properties":{"submission":{"type":"object","properties":{"form_id":{"type":"integer"},"kind":{"type":"string","enum":["application","roi"]},"status":{"type":"string","enum":["submitted"]},"student_id":{"type":"integer","description":"The new student."},"parent_ids":{"type":"array","items":{"type":"integer"}}}}}}}}},"422":{"description":"validation failed or form not supported","content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}},"field_errors":{"type":"array","description":"Errors that can be tied to a field. `slug` is the field slug, `<group slug>[<i>].<child slug>` for the i-th row the request sent for a group, or `parents[<i>].<child slug>` for the i-th entry of `parents`. A stored row or parent that the request did not send gets `<group slug>.<child slug>` or `parents.<child slug>`; `row_id` or `parent_id` says which one, so it can be sent with the fix.","items":{"type":"object","properties":{"slug":{"type":"string"},"parent_id":{"type":"integer","description":"For a parent field: the existing parent it belongs to."},"row_id":{"type":"integer","description":"For a group row field: the existing row it belongs to."},"message":{"type":"string"}}}}},"required":["errors","field_errors"]}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"values":{"type":"object","description":"Field values keyed by the field `slug` from `GET /api/v3/forms/{id}`. Omitted fields keep their stored value; `null` clears a field. Choice fields take option ids (an array of ids for multiple choice). A group field takes an array of rows `{ id, _destroy, values }`: a row with `id` updates that row, a row without `id` adds one, `_destroy: true` removes one, and omitted rows are kept. Parents are not sent here; use `parents`.","additionalProperties":true},"options":{"type":"object","properties":{"send_welcome_email":{"type":"boolean","default":false,"description":"Send each parent this submission creates the welcome email inviting them to set their password. Off by default; the parent still gets a login account."}}},"parents":{"type":"array","description":"Parents, with values keyed by the slugs of the form's parent group children. An `id` updates that parent of the school and links them to the student if needed; without `id` a new parent is always created and linked, even if their name matches an existing parent, with a login account; see `options.send_welcome_email`. A new parent needs a first name, last name or email. Omitted values keep their stored value, including the relationship. Parents cannot be removed here: unlink them with `PUT /api/v3/relationships/parent/{id}`.","items":{"type":"object","properties":{"id":{"type":"integer"},"values":{"type":"object","additionalProperties":true}}}}}}}}}}}}}
```

## Check a new-student form submission without saving

> Runs exactly the same checks as \`/submit\` for the same request body, but never\
> saves anything; no student is created.\
> \
> The student is created under the parent, who must belong to the school. The parent\
> and their partners are linked to the new student, as the parent form does for a\
> signed-in parent, with the relationship each already has with another child; send\
> it in \`parents\` if they have none. To update a partner's values, send them with\
> their \`id\`. Published Application forms and the school's\
> active ROI form are supported; a Supplementary form needs an existing student. As\
> on the parent form, an Application form must be one of the school's upcoming\
> application forms, not past its deadline.\
> Forms that take a payment or need an e-signature are not supported yet, and\
> neither are file uploads.\ <br>

```json
{"openapi":"3.0.1","info":{"title":"openapply","version":"3.0.0"},"tags":[{"name":"Forms","description":"This page describes all the APIs relating to forms."}],"servers":[{"url":"https://api.openapply.com","description":"CAN region auth server"},{"url":"https://api.openapply.cn","description":"CN region auth server"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}}},"paths":{"/api/v3/parents/{parent_id}/forms/{id}/prepare":{"post":{"summary":"Check a new-student form submission without saving","tags":["Forms"],"operationId":"prepareNewStudentForm","description":"Runs exactly the same checks as `/submit` for the same request body, but never\nsaves anything; no student is created.\n\nThe student is created under the parent, who must belong to the school. The parent\nand their partners are linked to the new student, as the parent form does for a\nsigned-in parent, with the relationship each already has with another child; send\nit in `parents` if they have none. To update a partner's values, send them with\ntheir `id`. Published Application forms and the school's\nactive ROI form are supported; a Supplementary form needs an existing student. As\non the parent form, an Application form must be one of the school's upcoming\napplication forms, not past its deadline.\nForms that take a payment or need an e-signature are not supported yet, and\nneither are file uploads.\n\n","parameters":[{"name":"parent_id","in":"path","required":true,"schema":{"type":"integer"},"description":"Parent ID"},{"name":"id","in":"path","required":true,"schema":{"type":"integer"},"description":"Form ID"}],"responses":{"200":{"description":"ready to submit","content":{"application/json":{"schema":{"type":"object","properties":{"submission":{"type":"object","properties":{"form_id":{"type":"integer"},"kind":{"type":"string","enum":["application","roi"]},"status":{"type":"string","enum":["ready"]}}}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"values":{"type":"object","description":"Field values keyed by the field `slug` from `GET /api/v3/forms/{id}`. Omitted fields keep their stored value; `null` clears a field. Choice fields take option ids (an array of ids for multiple choice). A group field takes an array of rows `{ id, _destroy, values }`: a row with `id` updates that row, a row without `id` adds one, `_destroy: true` removes one, and omitted rows are kept. Parents are not sent here; use `parents`.","additionalProperties":true},"options":{"type":"object","properties":{"send_welcome_email":{"type":"boolean","default":false,"description":"Send each parent this submission creates the welcome email inviting them to set their password. Off by default; the parent still gets a login account."}}},"parents":{"type":"array","description":"Parents, with values keyed by the slugs of the form's parent group children. An `id` updates that parent of the school and links them to the student if needed; without `id` a new parent is always created and linked, even if their name matches an existing parent, with a login account; see `options.send_welcome_email`. A new parent needs a first name, last name or email. Omitted values keep their stored value, including the relationship. Parents cannot be removed here: unlink them with `PUT /api/v3/relationships/parent/{id}`.","items":{"type":"object","properties":{"id":{"type":"integer"},"values":{"type":"object","additionalProperties":true}}}}}}}}}}}}}
```

## Submit an ROI form for a new family

> Creates the student and their parents from the payload, as a family that is not\
> signed in does on the ROI form. Only the school's active ROI form is accepted, and\
> at least one parent must be sent in \`parents\`. An existing school parent is linked\
> only when sent by \`id\`; a parent without \`id\` is always created, so an email that\
> belongs to an existing parent is rejected as taken.\
> Forms that take a payment or need an e-signature are not supported yet, and\
> neither are file uploads.\
> \
> Nothing is saved unless the whole submission succeeds. Run the same request\
> against \`/prepare\` first to check it without saving.<br>

```json
{"openapi":"3.0.1","info":{"title":"openapply","version":"3.0.0"},"tags":[{"name":"Forms","description":"This page describes all the APIs relating to forms."}],"servers":[{"url":"https://api.openapply.com","description":"CAN region auth server"},{"url":"https://api.openapply.cn","description":"CN region auth server"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}}},"paths":{"/api/v3/forms/{id}/submit":{"post":{"summary":"Submit an ROI form for a new family","tags":["Forms"],"operationId":"submitRoiForm","description":"Creates the student and their parents from the payload, as a family that is not\nsigned in does on the ROI form. Only the school's active ROI form is accepted, and\nat least one parent must be sent in `parents`. An existing school parent is linked\nonly when sent by `id`; a parent without `id` is always created, so an email that\nbelongs to an existing parent is rejected as taken.\nForms that take a payment or need an e-signature are not supported yet, and\nneither are file uploads.\n\nNothing is saved unless the whole submission succeeds. Run the same request\nagainst `/prepare` first to check it without saving.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"},"description":"ROI form ID"}],"responses":{"201":{"description":"student and parents created","content":{"application/json":{"schema":{"type":"object","properties":{"submission":{"type":"object","properties":{"form_id":{"type":"integer"},"kind":{"type":"string","enum":["roi"]},"status":{"type":"string","enum":["submitted"]},"student_id":{"type":"integer"},"parent_ids":{"type":"array","items":{"type":"integer"}}}}}}}}},"422":{"description":"validation failed or form not supported","content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}},"field_errors":{"type":"array","description":"Errors that can be tied to a field. `slug` is the field slug, `<group slug>[<i>].<child slug>` for the i-th row the request sent for a group, or `parents[<i>].<child slug>` for the i-th entry of `parents`. A stored row or parent that the request did not send gets `<group slug>.<child slug>` or `parents.<child slug>`; `row_id` or `parent_id` says which one, so it can be sent with the fix.","items":{"type":"object","properties":{"slug":{"type":"string"},"parent_id":{"type":"integer","description":"For a parent field: the existing parent it belongs to."},"row_id":{"type":"integer","description":"For a group row field: the existing row it belongs to."},"message":{"type":"string"}}}}},"required":["errors","field_errors"]}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"values":{"type":"object","description":"Field values keyed by the field `slug` from `GET /api/v3/forms/{id}`. Omitted fields keep their stored value; `null` clears a field. Choice fields take option ids (an array of ids for multiple choice). A group field takes an array of rows `{ id, _destroy, values }`: a row with `id` updates that row, a row without `id` adds one, `_destroy: true` removes one, and omitted rows are kept. Parents are not sent here; use `parents`.","additionalProperties":true},"options":{"type":"object","properties":{"send_welcome_email":{"type":"boolean","default":false,"description":"Send each parent this submission creates the welcome email inviting them to set their password. Off by default; the parent still gets a login account."}}},"parents":{"type":"array","description":"Parents, with values keyed by the slugs of the form's parent group children. An `id` updates that parent of the school and links them to the student if needed; without `id` a new parent is always created and linked, even if their name matches an existing parent, with a login account; see `options.send_welcome_email`. A new parent needs a first name, last name or email. Omitted values keep their stored value, including the relationship. Parents cannot be removed here: unlink them with `PUT /api/v3/relationships/parent/{id}`.","items":{"type":"object","properties":{"id":{"type":"integer"},"values":{"type":"object","additionalProperties":true}}}}}}}}}}}}}
```

## Check an ROI submission for a new family without saving

> Runs exactly the same checks as \`/submit\` for the same request body, but never\
> saves anything; no student or parent is created.\
> \
> Creates the student and their parents from the payload, as a family that is not\
> signed in does on the ROI form. Only the school's active ROI form is accepted, and\
> at least one parent must be sent in \`parents\`. An existing school parent is linked\
> only when sent by \`id\`; a parent without \`id\` is always created, so an email that\
> belongs to an existing parent is rejected as taken.\
> Forms that take a payment or need an e-signature are not supported yet, and\
> neither are file uploads.\ <br>

```json
{"openapi":"3.0.1","info":{"title":"openapply","version":"3.0.0"},"tags":[{"name":"Forms","description":"This page describes all the APIs relating to forms."}],"servers":[{"url":"https://api.openapply.com","description":"CAN region auth server"},{"url":"https://api.openapply.cn","description":"CN region auth server"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}}},"paths":{"/api/v3/forms/{id}/prepare":{"post":{"summary":"Check an ROI submission for a new family without saving","tags":["Forms"],"operationId":"prepareRoiForm","description":"Runs exactly the same checks as `/submit` for the same request body, but never\nsaves anything; no student or parent is created.\n\nCreates the student and their parents from the payload, as a family that is not\nsigned in does on the ROI form. Only the school's active ROI form is accepted, and\nat least one parent must be sent in `parents`. An existing school parent is linked\nonly when sent by `id`; a parent without `id` is always created, so an email that\nbelongs to an existing parent is rejected as taken.\nForms that take a payment or need an e-signature are not supported yet, and\nneither are file uploads.\n\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"},"description":"ROI form ID"}],"responses":{"200":{"description":"ready to submit","content":{"application/json":{"schema":{"type":"object","properties":{"submission":{"type":"object","properties":{"form_id":{"type":"integer"},"kind":{"type":"string","enum":["roi"]},"status":{"type":"string","enum":["ready"]}}}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"values":{"type":"object","description":"Field values keyed by the field `slug` from `GET /api/v3/forms/{id}`. Omitted fields keep their stored value; `null` clears a field. Choice fields take option ids (an array of ids for multiple choice). A group field takes an array of rows `{ id, _destroy, values }`: a row with `id` updates that row, a row without `id` adds one, `_destroy: true` removes one, and omitted rows are kept. Parents are not sent here; use `parents`.","additionalProperties":true},"options":{"type":"object","properties":{"send_welcome_email":{"type":"boolean","default":false,"description":"Send each parent this submission creates the welcome email inviting them to set their password. Off by default; the parent still gets a login account."}}},"parents":{"type":"array","description":"Parents, with values keyed by the slugs of the form's parent group children. An `id` updates that parent of the school and links them to the student if needed; without `id` a new parent is always created and linked, even if their name matches an existing parent, with a login account; see `options.send_welcome_email`. A new parent needs a first name, last name or email. Omitted values keep their stored value, including the relationship. Parents cannot be removed here: unlink them with `PUT /api/v3/relationships/parent/{id}`.","items":{"type":"object","properties":{"id":{"type":"integer"},"values":{"type":"object","additionalProperties":true}}}}}}}}}}}}}
```

## List available forms

> Lists the school's published forms. Results are paginated. Use \`kind\` to\
> filter by a single form type. For schools that version their forms per\
> year, \`applicable\_academic\_years\` lets a consumer resolve an academic\
> year to that year's Application form id(s), for use with the\
> \`application\_form\_id\` filter on \`GET /api/v3/students\`. Schools whose\
> Application form is standalone (not year-versioned) normally return\
> \`\[]\` there; resolve years per student instead, via\
> \`application\_form.academic\_year\` / \`application\_history\` on\
> \`GET /api/v3/students\`, or the year-scoped\
> \`GET /api/v3/students/applied\`.<br>

```json
{"openapi":"3.0.1","info":{"title":"openapply","version":"3.0.0"},"tags":[{"name":"Forms","description":"This page describes all the APIs relating to forms."}],"servers":[{"url":"https://api.openapply.com","description":"CAN region auth server"},{"url":"https://api.openapply.cn","description":"CN region auth server"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}}},"paths":{"/api/v3/forms":{"get":{"summary":"List available forms","tags":["Forms"],"operationId":"listForms","description":"Lists the school's published forms. Results are paginated. Use `kind` to\nfilter by a single form type. For schools that version their forms per\nyear, `applicable_academic_years` lets a consumer resolve an academic\nyear to that year's Application form id(s), for use with the\n`application_form_id` filter on `GET /api/v3/students`. Schools whose\nApplication form is standalone (not year-versioned) normally return\n`[]` there; resolve years per student instead, via\n`application_form.academic_year` / `application_history` on\n`GET /api/v3/students`, or the year-scoped\n`GET /api/v3/students/applied`.\n","parameters":[{"name":"kind","in":"query","required":false,"description":"Filter by form kind.","schema":{"type":"string","enum":["roi","application","supplementary","questionnaire","reenrollment","reenrollment_undecided","reenrollment_declined","tour","exam_score","rubric","agent","idat","enrollment","feeder_school_reference","alumni","constituent","alumni_sign_up","advancement_event","contact"]}},{"name":"since_id","in":"query","required":false,"description":"Return results with an ID greater than the specified ID.","schema":{"type":"integer"}},{"name":"since_date","in":"query","required":false,"description":"Return results updated since the specified date, in UTC timezone","schema":{"type":"string","format":"date_time"}},{"name":"page","in":"query","required":false,"description":"The page number of results to return.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"per_page","in":"query","required":false,"description":"Request for how many records to return.","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"count","in":"query","required":false,"description":"Synonym for per_page","schema":{"type":"integer"}}],"responses":{"200":{"description":"forms found","content":{"application/json":{"schema":{"type":"object","properties":{"forms":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"title":{"type":"string"},"kind":{"type":"string","enum":["roi","application","supplementary","questionnaire","reenrollment","reenrollment_undecided","reenrollment_declined","tour","exam_score","rubric","agent","idat","enrollment","feeder_school_reference","alumni","constituent","alumni_sign_up","advancement_event","contact"]},"published":{"type":"boolean"},"field_count":{"type":"integer"},"updated_at":{"type":"string","format":"date-time"},"applicable_academic_years":{"type":"array","items":{"type":"integer"},"description":"Academic years (4-digit start year) the form is configured for. Form Settings offers the setting only for forms inside a version group, where it picks which version serves a given year; re-enrollment and enrollment forms also carry years for their own flows. A standalone Application form normally returns an empty array even when students are attached."}}}},"meta":{"type":"object","properties":{"pages":{"type":"integer"},"page":{"type":"integer"},"per_page":{"type":"integer"}}}}}}}},"400":{"description":"invalid kind","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}}}}}}
```

## Get form field schema

> Returns a published form with the schema of the fields an applicant fills in,\
> so an integrator knows which values to send before submitting. Fields are\
> flat (no page or section layout); section headers, static text and\
> office-use fields are omitted. Group fields list their children and size\
> limits; choice fields list their options. Published forms of every kind are\
> returned; only ROI, Application and Supplementary forms can be prefilled\
> with a student's values or submitted.\
> \
> \`required\` is design-time only: it means the field is \*potentially\*\
> required. A field with \`conditional: true\` has a conditional rule and is\
> hidden (and not validated) when that rule does not match the applicant's\
> answers. To check a specific submission, send it to\
> \`POST /api/v3/parents/{parent\_id}/students/{student\_id}/forms/{id}/prepare\`,\
> which runs the real validation without saving.<br>

```json
{"openapi":"3.0.1","info":{"title":"openapply","version":"3.0.0"},"tags":[{"name":"Forms","description":"This page describes all the APIs relating to forms."}],"servers":[{"url":"https://api.openapply.com","description":"CAN region auth server"},{"url":"https://api.openapply.cn","description":"CN region auth server"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}}},"paths":{"/api/v3/forms/{id}":{"get":{"summary":"Get form field schema","tags":["Forms"],"operationId":"getForm","description":"Returns a published form with the schema of the fields an applicant fills in,\nso an integrator knows which values to send before submitting. Fields are\nflat (no page or section layout); section headers, static text and\noffice-use fields are omitted. Group fields list their children and size\nlimits; choice fields list their options. Published forms of every kind are\nreturned; only ROI, Application and Supplementary forms can be prefilled\nwith a student's values or submitted.\n\n`required` is design-time only: it means the field is *potentially*\nrequired. A field with `conditional: true` has a conditional rule and is\nhidden (and not validated) when that rule does not match the applicant's\nanswers. To check a specific submission, send it to\n`POST /api/v3/parents/{parent_id}/students/{student_id}/forms/{id}/prepare`,\nwhich runs the real validation without saving.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"},"description":"Form ID"}],"responses":{"200":{"description":"form found","content":{"application/json":{"schema":{"type":"object","properties":{"form":{"type":"object","properties":{"id":{"type":"integer"},"title":{"type":"string"},"kind":{"type":"string","enum":["roi","application","supplementary","questionnaire","reenrollment","reenrollment_undecided","reenrollment_declined","tour","exam_score","rubric","agent","idat","enrollment","feeder_school_reference","alumni","constituent","alumni_sign_up","advancement_event","contact"]},"published":{"type":"boolean"},"field_count":{"type":"integer"},"updated_at":{"type":"string","format":"date-time"},"applicable_academic_years":{"type":"array","items":{"type":"integer"}},"fields":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"slug":{"type":"string","description":"Identifier to use when sending the field's value."},"label":{"type":"string"},"type":{"type":"string","description":"Field type, e.g. text, select, radio, checkbox, date, group."},"required":{"type":"boolean","description":"Potentially required; see the endpoint description."},"record_type":{"type":"string","nullable":true,"description":"Record the value is stored on, e.g. student or parent."},"conditional":{"type":"boolean","description":"True when a conditional rule can hide the field."},"options":{"type":"array","description":"Choice fields only.","items":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"position":{"type":"integer","nullable":true},"active":{"type":"boolean","nullable":true}}}},"min_size":{"type":"integer","nullable":true,"description":"Group fields only."},"max_size":{"type":"integer","nullable":true,"description":"Group fields only."},"children":{"type":"array","description":"Group fields only. Each child has the same shape as a field.","items":{"type":"object","additionalProperties":true}}},"required":["id","slug","label","type","required","conditional"]}}}}}}}}},"404":{"description":"form not found or not published","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}}}}}}
```

## Get form field schema with a student's values

> Same field schema as \`GET /api/v3/forms/{id}\`, plus each field's current\
> \`value\` from the student's stored data, so an integrator can see what is\
> already filled in. Only published ROI, Application and Supplementary\
> forms are available. Parent fields belong to the parent group, whose\
> value lists the student's linked parents.<br>

```json
{"openapi":"3.0.1","info":{"title":"openapply","version":"3.0.0"},"tags":[{"name":"Forms","description":"This page describes all the APIs relating to forms."}],"servers":[{"url":"https://api.openapply.com","description":"CAN region auth server"},{"url":"https://api.openapply.cn","description":"CN region auth server"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}}},"paths":{"/api/v3/students/{student_id}/forms/{id}":{"get":{"summary":"Get form field schema with a student's values","tags":["Forms"],"operationId":"getStudentForm","description":"Same field schema as `GET /api/v3/forms/{id}`, plus each field's current\n`value` from the student's stored data, so an integrator can see what is\nalready filled in. Only published ROI, Application and Supplementary\nforms are available. Parent fields belong to the parent group, whose\nvalue lists the student's linked parents.\n","parameters":[{"name":"student_id","in":"path","required":true,"schema":{"type":"integer"},"description":"Student ID"},{"name":"id","in":"path","required":true,"schema":{"type":"integer"},"description":"Form ID"}],"responses":{"200":{"description":"form found","content":{"application/json":{"schema":{"type":"object","properties":{"form":{"type":"object","properties":{"id":{"type":"integer"},"title":{"type":"string"},"kind":{"type":"string","enum":["roi","application","supplementary","questionnaire","reenrollment","reenrollment_undecided","reenrollment_declined","tour","exam_score","rubric","agent","idat","enrollment","feeder_school_reference","alumni","constituent","alumni_sign_up","advancement_event","contact"]},"published":{"type":"boolean"},"field_count":{"type":"integer"},"updated_at":{"type":"string","format":"date-time"},"applicable_academic_years":{"type":"array","items":{"type":"integer"}},"fields":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"slug":{"type":"string","description":"Identifier to use when sending the field's value."},"label":{"type":"string"},"type":{"type":"string","description":"Field type, e.g. text, select, radio, checkbox, date, group."},"required":{"type":"boolean","description":"Potentially required; see the endpoint description."},"record_type":{"type":"string","nullable":true,"description":"Record the value is stored on, e.g. student or parent."},"conditional":{"type":"boolean","description":"True when a conditional rule can hide the field."},"options":{"type":"array","description":"Choice fields only.","items":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"position":{"type":"integer","nullable":true},"active":{"type":"boolean","nullable":true}}}},"min_size":{"type":"integer","nullable":true,"description":"Group fields only."},"max_size":{"type":"integer","nullable":true,"description":"Group fields only."},"children":{"type":"array","description":"Group fields only. Each child has the same shape as a field.","items":{"type":"object","additionalProperties":true}},"value":{"nullable":true,"description":"The student's stored value. Choice fields hold the option id from `options` (an array of ids for multiple choice); file fields hold file details. Group fields hold one row per record, e.g. one per linked parent: `{ id, values: { <child slug>: value } }`."}},"required":["id","slug","label","type","required","conditional","value"]}}}}}}}}},"404":{"description":"student or form not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}}}}}}
```
