curl --location --request POST '/api/admin/books/bulk' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"books": [
{
"titleEn": "Steps to Christ",
"translations": [
{
"languageCode": "fr",
"title": "Vers Jésus"
}
],
"files": [
{
"languageCode": "fr",
"fileType": "pdf",
"sourceType": "google_drive",
"cloudUrl": "https://drive.google.com/file/d/abc123/view",
"fileName": "vers-jesus.pdf",
"fileSizeBytes": 3145728
}
]
}
]
}'{
"summary": {
"total": 1,
"created": 0,
"updated": 1,
"failed": 0
},
"results": [
{
"index": 0,
"slug": "steps-to-christ",
"status": "updated",
"bookId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"translationsUpserted": 1,
"filesUpserted": 1
}
]
}