API說明
API位置 |
/new_ezding/qa/update/{qa_menu_id} |
需求描述 |
刪除常見問題選單 |
傳輸物件格式 |
json |
方法 |
DELETE |
範例
curl -X DELETE \
-H " X-Ftcsys-key: {KEY}" \
-H " X-Ftc-Authorization: Bearer {token}" \
-H " X-Accept-Language: {language}" \
-H " Content-Type: application/json" \
-d '{
"status": 2
}
https://{endpoint}/new_ezding/qa/update/{qa_menu_id}
回傳範例 - 刪除成功
< HTTP/1.1 200 OK
< Content-Type: application/json; charset=UTF-8
{
"result": "",
"code": 200,
"status": "success"
}
回傳錯誤 - 刪除失敗
< HTTP/1.1 400 Bad Request
< Content-Type: application/json; charset=UTF-8
{
"code": 400,
"message": "刪除失敗",
"status": "failure"
}
接收json參數
參數 |
名稱 |
範例 |
必填 |
備註 |
qa_menu_id |
常見問答子選單ID |
00002 |
Y |
|
status |
狀態 |
2 |
Y |
2:無效 |