Update or confirm an entry
curl --request PATCH \
--url https://api.relettr.com/v1/series/{series_id}/glossary/{entry_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"source": "<string>",
"target": "<string>",
"since_chapter": 2,
"note": "<string>",
"status": "confirmed"
}
'import requests
url = "https://api.relettr.com/v1/series/{series_id}/glossary/{entry_id}"
payload = {
"source": "<string>",
"target": "<string>",
"since_chapter": 2,
"note": "<string>",
"status": "confirmed"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
source: '<string>',
target: '<string>',
since_chapter: 2,
note: '<string>',
status: 'confirmed'
})
};
fetch('https://api.relettr.com/v1/series/{series_id}/glossary/{entry_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"source": "<string>",
"target": "<string>",
"type": "name",
"gender": "f",
"since_chapter": 2,
"note": "<string>",
"id": "gle_9pQ2rS3tU4vW5xY6zA7bC8",
"object": "glossary_entry",
"status": "confirmed",
"proposed_by_chapter": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}{
"error": {
"type": "invalid_request",
"code": "parameter_invalid",
"message": "<string>",
"request_id": "<string>",
"param": "files[3].content_type",
"doc_url": "<string>"
}
}{
"error": {
"type": "invalid_request",
"code": "parameter_invalid",
"message": "<string>",
"request_id": "<string>",
"param": "files[3].content_type",
"doc_url": "<string>"
}
}{
"error": {
"type": "invalid_request",
"code": "parameter_invalid",
"message": "<string>",
"request_id": "<string>",
"param": "files[3].content_type",
"doc_url": "<string>"
}
}{
"error": {
"type": "invalid_request",
"code": "parameter_invalid",
"message": "<string>",
"request_id": "<string>",
"param": "files[3].content_type",
"doc_url": "<string>"
}
}Glossary
Update or confirm an entry
Edit an entry. Set status to confirmed to accept a proposal.
PATCH
/
series
/
{series_id}
/
glossary
/
{entry_id}
Update or confirm an entry
curl --request PATCH \
--url https://api.relettr.com/v1/series/{series_id}/glossary/{entry_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"source": "<string>",
"target": "<string>",
"since_chapter": 2,
"note": "<string>",
"status": "confirmed"
}
'import requests
url = "https://api.relettr.com/v1/series/{series_id}/glossary/{entry_id}"
payload = {
"source": "<string>",
"target": "<string>",
"since_chapter": 2,
"note": "<string>",
"status": "confirmed"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
source: '<string>',
target: '<string>',
since_chapter: 2,
note: '<string>',
status: 'confirmed'
})
};
fetch('https://api.relettr.com/v1/series/{series_id}/glossary/{entry_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"source": "<string>",
"target": "<string>",
"type": "name",
"gender": "f",
"since_chapter": 2,
"note": "<string>",
"id": "gle_9pQ2rS3tU4vW5xY6zA7bC8",
"object": "glossary_entry",
"status": "confirmed",
"proposed_by_chapter": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}{
"error": {
"type": "invalid_request",
"code": "parameter_invalid",
"message": "<string>",
"request_id": "<string>",
"param": "files[3].content_type",
"doc_url": "<string>"
}
}{
"error": {
"type": "invalid_request",
"code": "parameter_invalid",
"message": "<string>",
"request_id": "<string>",
"param": "files[3].content_type",
"doc_url": "<string>"
}
}{
"error": {
"type": "invalid_request",
"code": "parameter_invalid",
"message": "<string>",
"request_id": "<string>",
"param": "files[3].content_type",
"doc_url": "<string>"
}
}{
"error": {
"type": "invalid_request",
"code": "parameter_invalid",
"message": "<string>",
"request_id": "<string>",
"param": "files[3].content_type",
"doc_url": "<string>"
}
}Authorizations
Path Parameters
Body
application/json
Response
The entry.