Create a series
curl --request POST \
--url https://api.relettr.com/v1/series \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"title_ko": "<string>",
"notes": "<string>",
"metadata": {}
}
'import requests
url = "https://api.relettr.com/v1/series"
payload = {
"title": "<string>",
"title_ko": "<string>",
"notes": "<string>",
"metadata": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({title: '<string>', title_ko: '<string>', notes: '<string>', metadata: {}})
};
fetch('https://api.relettr.com/v1/series', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"title": "<string>",
"title_ko": "<string>",
"notes": "<string>",
"metadata": {},
"id": "ser_3hT9aB7cD1eF2gH3iJ4kL5",
"object": "series",
"livemode": true,
"chapter_count": 123,
"glossary_count": 123,
"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>"
}
}Series
Create a series
POST
/
series
Create a series
curl --request POST \
--url https://api.relettr.com/v1/series \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"title_ko": "<string>",
"notes": "<string>",
"metadata": {}
}
'import requests
url = "https://api.relettr.com/v1/series"
payload = {
"title": "<string>",
"title_ko": "<string>",
"notes": "<string>",
"metadata": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({title: '<string>', title_ko: '<string>', notes: '<string>', metadata: {}})
};
fetch('https://api.relettr.com/v1/series', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"title": "<string>",
"title_ko": "<string>",
"notes": "<string>",
"metadata": {},
"id": "ser_3hT9aB7cD1eF2gH3iJ4kL5",
"object": "series",
"livemode": true,
"chapter_count": 123,
"glossary_count": 123,
"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
Headers
Body
application/json
Response
The series.