---
# System prepended metadata

title: 解惑通API

---

### 解惑通API

## Create A Correction
POST /api/corrections.json or /api/corrections.xml

| Parameter     | Required | type     | Comment 
| ------------- | -------- | -------- | ------- 
| token         | yes      | String   |
| source        | yes      | Integer  | 0: 課程 1: 題目
| source_id     | yes      | String   | 
| category      | yes.     | Integer  | when source is question
|               |          |          | 0: 題目敘述有誤
|               |          |          | 1: 選項內容有誤
|               |          |          | 2: 文字錯誤
|               |          |          | 3: 答案設定有誤
|               |          |          | 4: 缺圖(含圖示不清)
|               |          |          | 5: 答案錯誤
|               |          |          | 6: 詳解與答案不符
|               |          |          | 7: 題型分類錯誤 
|               |          |          | 8: 影音詳解連結無效
|               |          |          | when source is course
|               |          |          | 100: 老師口誤
|               |          |          | 101: 板書筆誤
|               |          |          | 102: 講義本有誤
|               |          |          | 103: PDF檔有誤
|               |          |          | 104: 不恰當用語
|               |          |          | 105: 影片播放問題
| title         | yes      | String   | required when source is course
| subject_id    | yes      | Integer  |
| product_id    | yes      | String   | JC:國中, SC:高中, HC:會考, EC:國小
| image         | no       | String   |
| content       | yes      | String   |

![image](https://hackmd.io/_uploads/B1g4QoxQR.png)


![image](https://hackmd.io/_uploads/B1I1I5VWC.png)

## GET Categories
GET /api/corrections/category.json or /api/corrections/category.xml

| Parameter     | Required | type     | Comment 
| ------------- | -------- | -------- | ------- 
| token         | yes      | String   |
| source        | yes      | Integer  | 0: 課程 1: 題目

![image](https://hackmd.io/_uploads/B1bGxqlXA.png)

![image](https://hackmd.io/_uploads/r14dlclmR.png)

![image](https://hackmd.io/_uploads/Sk4nJ9Om0.png)

![image](https://hackmd.io/_uploads/Bkj0J9dQA.png)


## GET check_reported
GET /api/corrections/check_reported.json or /api/corrections/check_reported.xml
| Parameter     | Required | type     | Comment 
| ------------- | -------- | -------- | ------- 
| token         | yes      | String   |
| source        | yes      | Integer  | 0: 課程 1: 題目
| source_id     | yes      | String   |

![image](https://hackmd.io/_uploads/By8ItGQEC.png)


## GET check_ask_permission
GET /api/questions/check_ask_permission.json or /api/questions/check_ask_permission.xml
| Parameter     | Required | type     | Comment 
| ------------- | -------- | -------- | ------- 
| token         | yes      | String   |

![image](https://hackmd.io/_uploads/HJlNgLTBR.png)


## GET check_report_permission
GET /api/corrections/check_report_permission.json or /api/corrections/check_report_permission.xml
| Parameter     | Required | type     | Comment 
| ------------- | -------- | -------- | ------- 
| token         | yes      | String   |

![image](https://hackmd.io/_uploads/HkFpl8THC.png)

