> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developer.gitiho.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developer.gitiho.com/_mcp/server.

# Get employer assgined

GET https://example.gitiho.com/api/lms/assigned/%7Bemployer_id%7D

Trả về dữ liệu khoá học và đợt thi đã được assign cho nhân sự

Reference: https://developer.gitiho.com/gitiho-business-api/lms/get-employer-assgined

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /api/lms/assigned/%7Bemployer_id%7D:
    get:
      operationId: Get employer assgined
      summary: Get employer assgined
      description: Trả về dữ liệu khoá học và đợt thi đã được assign cho nhân sự
      tags:
        - LMS
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/type_lms:GetEmployerAssginedLmsResponse'
servers:
  - url: https://example.gitiho.com
    description: Default
components:
  schemas:
    type_lms:GetEmployerAssginedLmsResponseDataItemAssignExamResult:
      type: object
      properties:
        score:
          type: integer
        time_end:
          type: string
        score_exam:
          type: integer
        time_start:
          type: string
        exam_duration:
          type: integer
        question_fail:
          type: integer
        question_count:
          type: integer
        question_correct:
          type: integer
        question_complete:
          type: integer
      required:
        - score
        - time_end
        - score_exam
        - time_start
        - exam_duration
        - question_fail
        - question_count
        - question_correct
        - question_complete
      title: GetEmployerAssginedLmsResponseDataItemAssignExamResult
    type_lms:GetEmployerAssginedLmsResponseDataItemAssign:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        type:
          type: string
        status:
          type: integer
        content:
          type: string
        is_public:
          type: integer
        time_join:
          type: integer
        pass_score:
          type: integer
        public_url:
          type: string
          format: uri
        description:
          type: string
        exam_result:
          $ref: >-
            #/components/schemas/type_lms:GetEmployerAssginedLmsResponseDataItemAssignExamResult
        show_answer:
          type: integer
        limit_remake:
          type: integer
        enable_remake:
          type: integer
        time_join_end:
          oneOf:
            - description: Any type
            - type: 'null'
        contestant_info:
          type: integer
        time_join_start:
          oneOf:
            - description: Any type
            - type: 'null'
        certificate_pass:
          type: integer
        result_display_type:
          type: string
      required:
        - id
        - name
        - type
        - status
        - content
        - is_public
        - time_join
        - pass_score
        - public_url
        - description
        - exam_result
        - show_answer
        - limit_remake
        - enable_remake
        - contestant_info
        - certificate_pass
        - result_display_type
      title: GetEmployerAssginedLmsResponseDataItemAssign
    type_lms:GetEmployerAssginedLmsResponseDataItem:
      type: object
      properties:
        id:
          type: integer
        assign:
          $ref: >-
            #/components/schemas/type_lms:GetEmployerAssginedLmsResponseDataItemAssign
        assign_mode:
          type: string
        assigned_at:
          type: string
          format: date-time
      required:
        - id
        - assign
        - assign_mode
        - assigned_at
      title: GetEmployerAssginedLmsResponseDataItem
    type_lms:GetEmployerAssginedLmsResponseLinksItem:
      type: object
      properties:
        url:
          oneOf:
            - description: Any type
            - type: 'null'
        label:
          type: string
        active:
          type: boolean
      required:
        - label
        - active
      title: GetEmployerAssginedLmsResponseLinksItem
    type_lms:GetEmployerAssginedLmsResponse:
      type: object
      properties:
        to:
          type: integer
        data:
          type: array
          items:
            $ref: >-
              #/components/schemas/type_lms:GetEmployerAssginedLmsResponseDataItem
        from:
          type: integer
        path:
          type: string
          format: uri
        links:
          type: array
          items:
            $ref: >-
              #/components/schemas/type_lms:GetEmployerAssginedLmsResponseLinksItem
        total:
          type: integer
        per_page:
          type: integer
        last_page:
          type: integer
        current_page:
          type: integer
        last_page_url:
          type: string
          format: uri
        next_page_url:
          oneOf:
            - description: Any type
            - type: 'null'
        prev_page_url:
          oneOf:
            - description: Any type
            - type: 'null'
        first_page_url:
          type: string
          format: uri
      required:
        - to
        - data
        - from
        - path
        - links
        - total
        - per_page
        - last_page
        - current_page
        - last_page_url
        - first_page_url
      title: GetEmployerAssginedLmsResponse

```

## Examples

**Response**

```json
{
  "to": 7,
  "data": [
    {
      "id": 2016,
      "assign": {
        "id": 19,
        "name": "Đợi thi hè",
        "type": "examination",
        "status": 1,
        "content": "<p>Đợi thi hè</p>",
        "is_public": 1,
        "time_join": 0,
        "pass_score": 80,
        "public_url": "https://datao.githo.com/contest-doing/9GaEMqe6O2siTbjkCzlHLXFJn",
        "description": "",
        "exam_result": {
          "score": 80,
          "time_end": "2025-06-17 14:41:55",
          "score_exam": 100,
          "time_start": "2025-06-17 14:32:57",
          "exam_duration": 538,
          "question_fail": 1,
          "question_count": 5,
          "question_correct": 4,
          "question_complete": 5
        },
        "show_answer": 1,
        "limit_remake": 3,
        "enable_remake": 1,
        "contestant_info": 0,
        "certificate_pass": 0,
        "result_display_type": "last"
      },
      "assign_mode": "assign",
      "assigned_at": "2025-06-21T03:57:06Z"
    },
    {
      "id": 2015,
      "assign": {
        "id": 20,
        "name": "Kiểm tra kì 1",
        "type": "examination",
        "status": 1,
        "content": "<p>Kiểm tra kì 1</p>",
        "is_public": 0,
        "time_join": 0,
        "pass_score": 80,
        "public_url": "https://datao.githo.com/contest-doing/iTpW6IZEo0JMaS_yq9GejuOhU",
        "description": "",
        "exam_result": {
          "score": 1,
          "time_end": "time_end",
          "score_exam": 1,
          "time_start": "time_start",
          "exam_duration": 1,
          "question_fail": 1,
          "question_count": 1,
          "question_correct": 1,
          "question_complete": 1
        },
        "show_answer": 1,
        "limit_remake": 3,
        "enable_remake": 1,
        "contestant_info": 0,
        "certificate_pass": 0,
        "result_display_type": "max_score",
        "time_join_end": "2025-06-21 00:00:00",
        "time_join_start": "2025-06-18 00:00:00"
      },
      "assign_mode": "assign",
      "assigned_at": "2025-06-21T03:56:57Z"
    },
    {
      "id": 2010,
      "assign": {
        "id": 970,
        "name": "Kế toán Tổng hợp Thực hành Thực tế từ A đến Z - Thực hành trên MISA + EXCEL",
        "type": "course",
        "status": 1,
        "content": "content",
        "is_public": 1,
        "time_join": 1,
        "pass_score": 1,
        "public_url": "public_url",
        "description": "description",
        "exam_result": {
          "score": 1,
          "time_end": "time_end",
          "score_exam": 1,
          "time_start": "time_start",
          "exam_duration": 1,
          "question_fail": 1,
          "question_count": 1,
          "question_correct": 1,
          "question_complete": 1
        },
        "show_answer": 1,
        "limit_remake": 1,
        "enable_remake": 1,
        "contestant_info": 1,
        "certificate_pass": 1,
        "result_display_type": "result_display_type"
      },
      "assign_mode": "",
      "assigned_at": "2025-06-17T09:00:45Z"
    },
    {
      "id": 2011,
      "assign": {
        "id": 1021,
        "name": "Thiết kế Website bán hàng chuẩn SEO - Chuyển đổi mô hình bán hàng thời đại số",
        "type": "course",
        "status": 1,
        "content": "content",
        "is_public": 1,
        "time_join": 1,
        "pass_score": 1,
        "public_url": "public_url",
        "description": "description",
        "exam_result": {
          "score": 1,
          "time_end": "time_end",
          "score_exam": 1,
          "time_start": "time_start",
          "exam_duration": 1,
          "question_fail": 1,
          "question_count": 1,
          "question_correct": 1,
          "question_complete": 1
        },
        "show_answer": 1,
        "limit_remake": 1,
        "enable_remake": 1,
        "contestant_info": 1,
        "certificate_pass": 1,
        "result_display_type": "result_display_type"
      },
      "assign_mode": "",
      "assigned_at": "2025-06-17T09:00:45Z"
    },
    {
      "id": 2009,
      "assign": {
        "id": 968,
        "name": "Hãy thêm tên và mô tả cho khóa học của bạn:",
        "type": "course",
        "status": 1,
        "content": "content",
        "is_public": 1,
        "time_join": 1,
        "pass_score": 1,
        "public_url": "public_url",
        "description": "description",
        "exam_result": {
          "score": 1,
          "time_end": "time_end",
          "score_exam": 1,
          "time_start": "time_start",
          "exam_duration": 1,
          "question_fail": 1,
          "question_count": 1,
          "question_correct": 1,
          "question_complete": 1
        },
        "show_answer": 1,
        "limit_remake": 1,
        "enable_remake": 1,
        "contestant_info": 1,
        "certificate_pass": 1,
        "result_display_type": "result_display_type"
      },
      "assign_mode": "",
      "assigned_at": "2025-06-16T02:28:16Z"
    },
    {
      "id": 2005,
      "assign": {
        "id": 803,
        "name": "Khóa học hội nhập",
        "type": "course",
        "status": 1,
        "content": "content",
        "is_public": 1,
        "time_join": 1,
        "pass_score": 1,
        "public_url": "public_url",
        "description": "description",
        "exam_result": {
          "score": 1,
          "time_end": "time_end",
          "score_exam": 1,
          "time_start": "time_start",
          "exam_duration": 1,
          "question_fail": 1,
          "question_count": 1,
          "question_correct": 1,
          "question_complete": 1
        },
        "show_answer": 1,
        "limit_remake": 1,
        "enable_remake": 1,
        "contestant_info": 1,
        "certificate_pass": 1,
        "result_display_type": "result_display_type"
      },
      "assign_mode": "",
      "assigned_at": "2025-06-11T02:08:11Z"
    },
    {
      "id": 2004,
      "assign": {
        "id": 794,
        "name": "EXG02 - Thủ thuật Excel cập nhật hàng tuần cho dân văn phòng",
        "type": "course",
        "status": 1,
        "content": "content",
        "is_public": 1,
        "time_join": 1,
        "pass_score": 1,
        "public_url": "public_url",
        "description": "description",
        "exam_result": {
          "score": 1,
          "time_end": "time_end",
          "score_exam": 1,
          "time_start": "time_start",
          "exam_duration": 1,
          "question_fail": 1,
          "question_count": 1,
          "question_correct": 1,
          "question_complete": 1
        },
        "show_answer": 1,
        "limit_remake": 1,
        "enable_remake": 1,
        "contestant_info": 1,
        "certificate_pass": 1,
        "result_display_type": "result_display_type"
      },
      "assign_mode": "",
      "assigned_at": "2025-06-10T10:48:38Z"
    }
  ],
  "from": 1,
  "path": "https://datao.githo.com/api/employer/264/assigned",
  "links": [
    {
      "label": "&laquo; Trang trước",
      "active": false
    },
    {
      "label": "1",
      "active": true,
      "url": "https://datao.githo.com/api/employer/264/assigned?page=1"
    },
    {
      "label": "Trang sau &raquo;",
      "active": false
    }
  ],
  "total": 7,
  "per_page": 10,
  "last_page": 1,
  "current_page": 1,
  "last_page_url": "https://datao.githo.com/api/employer/264/assigned?page=1",
  "first_page_url": "https://datao.githo.com/api/employer/264/assigned?page=1"
}
```

**SDK Code**

```python
import requests

url = "https://example.gitiho.com/api/lms/assigned/%7Bemployer_id%7D"

response = requests.get(url)

print(response.json())
```

```javascript
const url = 'https://example.gitiho.com/api/lms/assigned/%7Bemployer_id%7D';
const options = {method: 'GET'};

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

```go
package main

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

func main() {

	url := "https://example.gitiho.com/api/lms/assigned/%7Bemployer_id%7D"

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

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

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

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

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://example.gitiho.com/api/lms/assigned/%7Bemployer_id%7D")

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

request = Net::HTTP::Get.new(url)

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

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://example.gitiho.com/api/lms/assigned/%7Bemployer_id%7D")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://example.gitiho.com/api/lms/assigned/%7Bemployer_id%7D');

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

```csharp
using RestSharp;

var client = new RestClient("https://example.gitiho.com/api/lms/assigned/%7Bemployer_id%7D");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://example.gitiho.com/api/lms/assigned/%7Bemployer_id%7D")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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()
```