API Bảng thuật ngữ
Xóa bảng thuật ngữ
POST/v1/glossary/delete
Xóa một bảng thuật ngữ theo ID.
- Địa chỉ đầy đủ
- https://otranslator.com/api/v1/glossary/delete
- Xác thực
- Cần truyền API Key vào request header Authorization
- Content-Type
- application/json
- Lỗi định dạng
- { "error": "Invalid API key." }
Lưu ý
Thao tác xóa chỉ ảnh hưởng đến thuật ngữ trong tài khoản API hiện tại.
Ví dụ
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}'Tham Số Yêu Cầu
| Tham số | Loại | Mặc Định | Mô Tả | Ví dụ |
|---|---|---|---|---|
| *glossaryId | String | - | ID bảng thuật ngữ | - |
Phản Hồi
| Tham số | Loại | Mặc Định | Mô Tả | Ví dụ |
|---|---|---|---|---|
| success | Boolean | - | Có xóa thành công không | - |
Lỗi thường gặp
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.