# program_mutation_api All URIs are relative to *https://dev-sg.portal.hocvienconggiao.com* Method | HTTP request | Description ------------- | ------------- | ------------- **addProgram**](program_mutation_api.md#addProgram) | **POST** /mutation-api/enrolable-service/programs | Add new program **deleteProgram**](program_mutation_api.md#deleteProgram) | **DELETE** /mutation-api/enrolable-service/programs/{id} | Deletes a program **updateProgram**](program_mutation_api.md#updateProgram) | **PUT** /mutation-api/enrolable-service/programs/{id} | Update an existing program # **addProgram** > models::Program addProgram(ctx, program) Add new program ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **program** | [**Program**](Program.md)| program object that needs to be added to the database | ### Return type [**models::Program**](Program.md) ### Authorization [program_auth](../README.md#program_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) # **deleteProgram** > deleteProgram(ctx, id) Deletes a program ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **id** | [****](.md)| ID of program to delete | ### Return type (empty response body) ### Authorization [program_auth](../README.md#program_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) # **updateProgram** > models::Program updateProgram(ctx, id, program) Update an existing program ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **id** | [****](.md)| ID of program to update | **program** | [**Program**](Program.md)| program object that needs to be added to the database | ### Return type [**models::Program**](Program.md) ### Authorization [program_auth](../README.md#program_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)