# mutation_student_api All URIs are relative to *https://dev-sg.portal.hocvienconggiao.com* Method | HTTP request | Description ------------- | ------------- | ------------- **addstudent**](mutation_student_api.md#addstudent) | **POST** /mutation-api/student-service/students | Add new student **delete_student**](mutation_student_api.md#delete_student) | **DELETE** /mutation-api/student-service/students/{id} | Deletes a student **update_student**](mutation_student_api.md#update_student) | **PUT** /mutation-api/student-service/students/{id} | Update an existing student # **addstudent** > models::Student addstudent(ctx, student) Add new student ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **student** | [**Student**](Student.md)| student object that needs to be added to the database | ### Return type [**models::Student**](Student.md) ### Authorization [student_auth](../README.md#student_auth) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_student** > delete_student(ctx, id) Deletes a student ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **id** | [****](.md)| ID of student to delete | ### Return type (empty response body) ### Authorization [student_auth](../README.md#student_auth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_student** > models::Student update_student(ctx, id, student) Update an existing student ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **id** | [****](.md)| ID of student to update | **student** | [**Student**](Student.md)| student object that needs to be added to the database | ### Return type [**models::Student**](Student.md) ### Authorization [student_auth](../README.md#student_auth) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)