# Update Student Type

Update a Student Type

**Endpoint:**

```
POST /v1/school/student-types/update
```

**Description:** This endpoint updates an existing student type for a specified school. It requires a JSON payload with the necessary details to update the student type.

**Headers:**

| Name          | Value                   |
| ------------- | ----------------------- |
| Content-Type  | application/json        |
| Authorization | Bearer \<access\_token> |

**Request Body:**

```json
{
    "school_slug": "string",
    "student_type": "string",
    "registration_fee": "string",
    "monthly_fee": "string",
    "student_type_slug": "string"
}
```

**Request Body Details:**

<table><thead><tr><th width="247">Field</th><th>Type</th><th>Description</th><th>Required</th></tr></thead><tbody><tr><td>school_slug</td><td>string</td><td>The slug of the school</td><td>Yes</td></tr><tr><td>student_type</td><td>string</td><td>The type of student</td><td>Yes</td></tr><tr><td>registration_fee</td><td>string</td><td>The registration fee for the student</td><td>Yes</td></tr><tr><td>monthly_fee</td><td>string</td><td>The updated monthly fee for the student</td><td>Yes</td></tr><tr><td>student_type_slug</td><td>string</td><td>The slug of the student type to be updated</td><td>Yes</td></tr></tbody></table>

**Response:**

{% tabs %}
{% tab title="200" %}

```json
```

{% endtab %}

{% tab title="400" %}

```json
{
  "message": "string",
  "error": "string",
  "statusCode": "number"
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dugsi-docs.tiigsi.io/school-endpoints/update-student-type.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
