API อภิธานศัพท์
ลบอภิธานศัพท์
POST/v1/glossary/delete
ลบศัพท์คลังโดยใช้ ID
- ที่อยู่แบบเต็ม
- https://otranslator.com/api/v1/glossary/delete
- การรับรอง
- ต้องส่งผ่าน API Key ในส่วนหัวคำขอ Authorization
- Content-Type
- application/json
- รูปแบบผิดพลาด
- { "error": "Invalid API key." }
ข้อควรระวัง
การลบจะส่งผลกระทบเฉพาะคลังศัพท์ภายใต้บัญชี API ปัจจุบันเท่านั้น
ตัวอย่าง
curl
1curl -X POST 'https://otranslator.com/api/v1/glossary/delete' \
2--header 'Authorization: [yourSecretKey]' \
3--header 'Content-Type: application/json' \
4--data '{
5 "glossaryId": "[string]"
6}'พารามิเตอร์ของคำขอ
| พารามิเตอร์ | ประเภท | ค่าเริ่มต้น | คำอธิบาย | ตัวอย่าง |
|---|---|---|---|---|
| *glossaryId | String | - | ID อภิธานศัพท์ | - |
การตอบสนอง
| พารามิเตอร์ | ประเภท | ค่าเริ่มต้น | คำอธิบาย | ตัวอย่าง |
|---|---|---|---|---|
| success | Boolean | - | การลบสำเร็จหรือไม่ | - |
ข้อผิดพลาดทั่วไป
401 Missing API key.
The Authorization request header is required.
401 Invalid API key.
The API key does not exist, has been deleted, or is no longer valid.