> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.tangerine365.com/llms.txt.
> For full documentation content, see https://docs.tangerine365.com/llms-full.txt.

# My Course List (For the new view)

POST https://localhost:8090//api/user/myCourseList
Content-Type: application/x-www-form-urlencoded

[The API endpoint <code>https://localhost:8090/api/user/</code>](https://localhost:8090//api/)myCourseListis a POST request that is used to retrieve a list of courses available and assigned to the user in the system.

This endpoint returns course details such as name, description, status, and associated organizational or category information.

Use this endpoint to display or manage user's courses in list views.

### Request

- Method: POST
    
- Base URL: [https://localhost:8090/](https://localhost:8090/)
    
- Path: /api/User/myCourseList
    
- Headers:
    
    - Content-Type: application/x-www-form-urlencoded
        

### Request Body

The request body type is **`x-www-form-urlencoded`**

- idst (integer): id of the user is required
    
- `auth` (string):Authentication token is required
    

### Response

The response will be in JSON format and will include the following fields:

• success (boolean) Indicates the success of the request.

• courses:

- course_id (string) The unique identifier for the course.
    
- code (string) The code associated with the course.
    
- course_name (string) The name of the course.
    
- course_description (string) The description of the course.
    
- course_box_description (string) The box description of the course.
    
- status (string) The status of the course.
    
- selling (string) The selling status of the course.
    
- price (string) The price of the course.
    
- subscribe_method (string) The method for subscribing to the course. (0 = Only Admin, 1 = Requires admin approval, 2 = Free for all),
    
- unsubscribe_method (string) The method for unsubscribing from the course. (0 = Only Admin, 1 = Requires admin approval, 2 = Free for all),
    
- course_edition (string) The edition of the course.
    
- course_type (string) The type of the course.
    
- can_subscribe (string) The subscription availability status. (0 = Closed, 1 = Always open, 2 = Open within sub_start_date & sub_end_date),
    
- sub_start_date (string) The start date for subscription.
    
- sub_end_date (string) The end date for subscription.
    
- date_begin (string) The start date of the course.
    
- date_end (string) The end date of the course.
    
- course_link (string) The link to the course.
    
- img_course (string) The image associated with the course.
    
- category_id (string) The unique identifier for the course category.
    
- category (string) The category name of the course.
    
- enrolled (string) The enrollment status of the course.
    
- dates:
    
- string) Array of dates associated with the course.

Reference: https://docs.tangerine365.com/tangerine-365-enterprise/my-course-list-for-the-new-view

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: Tangerine365 Enterprise
  version: 1.0.0
paths:
  //api/user/myCourseList:
    post:
      operationId: my-course-list-for-the-new-view
      summary: My Course List (For the new view)
      description: >-
        [The API endpoint
        <code>https://localhost:8090/api/user/</code>](https://localhost:8090//api/)myCourseListis
        a POST request that is used to retrieve a list of courses available and
        assigned to the user in the system.


        This endpoint returns course details such as name, description, status,
        and associated organizational or category information.


        Use this endpoint to display or manage user's courses in list views.


        ### Request


        - Method: POST
            
        - Base URL: [https://localhost:8090/](https://localhost:8090/)
            
        - Path: /api/User/myCourseList
            
        - Headers:
            
            - Content-Type: application/x-www-form-urlencoded
                

        ### Request Body


        The request body type is **`x-www-form-urlencoded`**


        - idst (integer): id of the user is required
            
        - `auth` (string):Authentication token is required
            

        ### Response


        The response will be in JSON format and will include the following
        fields:


        • success (boolean) Indicates the success of the request.


        • courses:


        - course_id (string) The unique identifier for the course.
            
        - code (string) The code associated with the course.
            
        - course_name (string) The name of the course.
            
        - course_description (string) The description of the course.
            
        - course_box_description (string) The box description of the course.
            
        - status (string) The status of the course.
            
        - selling (string) The selling status of the course.
            
        - price (string) The price of the course.
            
        - subscribe_method (string) The method for subscribing to the course. (0
        = Only Admin, 1 = Requires admin approval, 2 = Free for all),
            
        - unsubscribe_method (string) The method for unsubscribing from the
        course. (0 = Only Admin, 1 = Requires admin approval, 2 = Free for all),
            
        - course_edition (string) The edition of the course.
            
        - course_type (string) The type of the course.
            
        - can_subscribe (string) The subscription availability status. (0 =
        Closed, 1 = Always open, 2 = Open within sub_start_date & sub_end_date),
            
        - sub_start_date (string) The start date for subscription.
            
        - sub_end_date (string) The end date for subscription.
            
        - date_begin (string) The start date of the course.
            
        - date_end (string) The end date of the course.
            
        - course_link (string) The link to the course.
            
        - img_course (string) The image associated with the course.
            
        - category_id (string) The unique identifier for the course category.
            
        - category (string) The category name of the course.
            
        - enrolled (string) The enrollment status of the course.
            
        - dates:
            
        - string) Array of dates associated with the course.
      tags:
        - ''
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/My Course List (For the new
                  view)_Response_200
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                auth:
                  type: string
                idst:
                  type: string
              required:
                - auth
                - idst
servers:
  - url: https://localhost:8090
components:
  schemas:
    ApiUserMyCourseListPostResponsesContentApplicationJsonSchemaCoursesForAdminApprovalItems:
      type: object
      properties:
        '0':
          type: string
        '1':
          type: string
        '2':
          type: string
        '3':
          type: string
        '4':
          type: string
        '5':
          type: string
        '6':
          type: string
        '7':
          type: string
        '8':
          type: string
        '9':
          type: string
        '10':
          type: string
        '11':
          description: Any type
        '12':
          description: Any type
        '13':
          description: Any type
        '14':
          type: string
        '15':
          description: Any type
        '16':
          description: Any type
        '17':
          description: Any type
        '18':
          description: Any type
        '19':
          type: string
        '20':
          type: string
        '21':
          type: string
        '22':
          description: Any type
        code:
          type: string
        name:
          type: string
        status:
          type: string
        date_end:
          description: Any type
        hour_end:
          description: Any type
        idCourse:
          type: string
        difficult:
          type: string
        lang_code:
          type: string
        date_begin:
          description: Any type
        hour_begin:
          description: Any type
        idCategory:
          type: string
        img_course:
          type: string
          format: uri
        course_demo:
          description: Any type
        course_type:
          type: string
        create_date:
          type: string
        description:
          type: string
        img_material:
          description: Any type
        can_subscribe:
          type: string
        box_description:
          type: string
        level_show_user:
          type: string
        auto_unsubscribe:
          type: string
        subscribe_method:
          type: string
        autoregistration_code:
          description: Any type
      required:
        - '0'
        - '1'
        - '2'
        - '3'
        - '4'
        - '5'
        - '6'
        - '7'
        - '8'
        - '9'
        - '10'
        - '14'
        - '19'
        - '20'
        - '21'
        - code
        - name
        - status
        - idCourse
        - difficult
        - lang_code
        - idCategory
        - img_course
        - course_type
        - create_date
        - description
        - can_subscribe
        - box_description
        - level_show_user
        - auto_unsubscribe
        - subscribe_method
      title: >-
        ApiUserMyCourseListPostResponsesContentApplicationJsonSchemaCoursesForAdminApprovalItems
    ApiUserMyCourseListPostResponsesContentApplicationJsonSchemaCoursesForSelfEnrollmentItems:
      type: object
      properties:
        code:
          type: string
        name:
          type: string
        status:
          type: string
        date_end:
          description: Any type
        hour_end:
          type: string
        idCourse:
          type: string
        difficult:
          type: string
        lang_code:
          type: string
        date_begin:
          description: Any type
        hour_begin:
          type: string
        idCategory:
          type: string
        img_course:
          type: string
          format: uri
        course_demo:
          type: string
        course_type:
          type: string
        create_date:
          type: string
        description:
          type: string
        img_material:
          type: string
        can_subscribe:
          type: string
        box_description:
          type: string
        level_show_user:
          type: string
        auto_unsubscribe:
          type: string
        subscribe_method:
          type: string
        autoregistration_code:
          type: string
      required:
        - code
        - name
        - status
        - hour_end
        - idCourse
        - difficult
        - lang_code
        - hour_begin
        - idCategory
        - img_course
        - course_demo
        - course_type
        - create_date
        - description
        - img_material
        - can_subscribe
        - box_description
        - level_show_user
        - auto_unsubscribe
        - subscribe_method
        - autoregistration_code
      title: >-
        ApiUserMyCourseListPostResponsesContentApplicationJsonSchemaCoursesForSelfEnrollmentItems
    My Course List (For the new view)_Response_200:
      type: object
      properties:
        success:
          type: boolean
        coursesForAdminApproval:
          type: array
          items:
            $ref: >-
              #/components/schemas/ApiUserMyCourseListPostResponsesContentApplicationJsonSchemaCoursesForAdminApprovalItems
        coursesForSelfEnrollment:
          type: array
          items:
            $ref: >-
              #/components/schemas/ApiUserMyCourseListPostResponsesContentApplicationJsonSchemaCoursesForSelfEnrollmentItems
      required:
        - success
        - coursesForAdminApproval
        - coursesForSelfEnrollment
      title: My Course List (For the new view)_Response_200

```

## SDK Code Examples

```python My Course List (For the new view)_example
import requests

url = "https://localhost:8090//api/user/myCourseList"

payload = ""
headers = {"Content-Type": "application/x-www-form-urlencoded"}

response = requests.post(url, data=payload, headers=headers)

print(response.json())
```

```javascript My Course List (For the new view)_example
const url = 'https://localhost:8090//api/user/myCourseList';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/x-www-form-urlencoded'},
  body: new URLSearchParams('')
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go My Course List (For the new view)_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://localhost:8090//api/user/myCourseList"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("Content-Type", "application/x-www-form-urlencoded")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby My Course List (For the new view)_example
require 'uri'
require 'net/http'

url = URI("https://localhost:8090//api/user/myCourseList")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/x-www-form-urlencoded'

response = http.request(request)
puts response.read_body
```

```java My Course List (For the new view)_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://localhost:8090//api/user/myCourseList")
  .header("Content-Type", "application/x-www-form-urlencoded")
  .asString();
```

```php My Course List (For the new view)_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://localhost:8090//api/user/myCourseList', [
  'form_params' => null,
  'headers' => [
    'Content-Type' => 'application/x-www-form-urlencoded',
  ],
]);

echo $response->getBody();
```

```csharp My Course List (For the new view)_example
using RestSharp;

var client = new RestClient("https://localhost:8090//api/user/myCourseList");
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
IRestResponse response = client.Execute(request);
```

```swift My Course List (For the new view)_example
import Foundation

let headers = ["Content-Type": "application/x-www-form-urlencoded"]

let request = NSMutableURLRequest(url: NSURL(string: "https://localhost:8090//api/user/myCourseList")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```