curl --request POST \
--url https://api.example.com/movies \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"description": "<string>",
"duration": 123,
"main_language": "<string>",
"release_year": 123,
"nationality": "<string>",
"display_picture": "<string>",
"youtube_link": "<string>",
"production": "<string>",
"workshop": "<string>",
"ai_tool": "<string>",
"translation": "<string>",
"synopsis_anglais": "<string>",
"categories": [
{}
],
"collaborators": [
{}
]
}
'{
"message": "Film soumis avec succès",
"movie": {
"id_movie": 24,
"title": "Quantum Dreams",
"description": "A journey through the quantum realm visualized with AI",
"duration": 95,
"main_language": "English",
"release_year": 2025,
"nationality": "USA",
"display_picture": "poster-1710245678-111222333.jpg",
"picture1": "thumbnail1-1710245678-111222333.jpg",
"picture2": null,
"picture3": null,
"trailer": "filmFile-1710245678-111222333.mp4",
"youtube_link": null,
"production": "AI-Assisted",
"workshop": "Quantum Visualization Workshop",
"translation": null,
"synopsis": "A journey through the quantum realm visualized with AI",
"synopsis_anglais": "A journey through the quantum realm visualized with AI",
"subtitle": "subtitlesSrt-1710245678-111222333.srt",
"ai_tool": "DALL-E 3, Runway Gen-2",
"thumbnail": "poster-1710245678-111222333.jpg",
"selection_status": "submitted",
"jury_comment": null,
"admin_comment": null,
"id_user": 42,
"createdAt": "2025-03-07T10:15:30.000Z",
"updatedAt": "2025-03-07T10:15:30.000Z"
}
}
Submit a new movie to the festival
curl --request POST \
--url https://api.example.com/movies \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"description": "<string>",
"duration": 123,
"main_language": "<string>",
"release_year": 123,
"nationality": "<string>",
"display_picture": "<string>",
"youtube_link": "<string>",
"production": "<string>",
"workshop": "<string>",
"ai_tool": "<string>",
"translation": "<string>",
"synopsis_anglais": "<string>",
"categories": [
{}
],
"collaborators": [
{}
]
}
'{
"message": "Film soumis avec succès",
"movie": {
"id_movie": 24,
"title": "Quantum Dreams",
"description": "A journey through the quantum realm visualized with AI",
"duration": 95,
"main_language": "English",
"release_year": 2025,
"nationality": "USA",
"display_picture": "poster-1710245678-111222333.jpg",
"picture1": "thumbnail1-1710245678-111222333.jpg",
"picture2": null,
"picture3": null,
"trailer": "filmFile-1710245678-111222333.mp4",
"youtube_link": null,
"production": "AI-Assisted",
"workshop": "Quantum Visualization Workshop",
"translation": null,
"synopsis": "A journey through the quantum realm visualized with AI",
"synopsis_anglais": "A journey through the quantum realm visualized with AI",
"subtitle": "subtitlesSrt-1710245678-111222333.srt",
"ai_tool": "DALL-E 3, Runway Gen-2",
"thumbnail": "poster-1710245678-111222333.jpg",
"selection_status": "submitted",
"jury_comment": null,
"admin_comment": null,
"id_user": 42,
"createdAt": "2025-03-07T10:15:30.000Z",
"updatedAt": "2025-03-07T10:15:30.000Z"
}
}
PRODUCER or ADMIN rolemultipart/form-data for file uploads or application/json for metadata only.
filmTitleOriginal)synopsis or synopsisOriginal)durationSeconds). Maximum 120 seconds.filmLanguage)releaseYear)picture1)picture2)picture3)youtubeLink)aiClassification)aiMethodology)aiStack)synopsisEnglish)email (required)first_name or firstnamelast_name or lastnamejob (optional){
"message": "Film soumis avec succès",
"movie": {
"id_movie": 24,
"title": "Quantum Dreams",
"description": "A journey through the quantum realm visualized with AI",
"duration": 95,
"main_language": "English",
"release_year": 2025,
"nationality": "USA",
"display_picture": "poster-1710245678-111222333.jpg",
"picture1": "thumbnail1-1710245678-111222333.jpg",
"picture2": null,
"picture3": null,
"trailer": "filmFile-1710245678-111222333.mp4",
"youtube_link": null,
"production": "AI-Assisted",
"workshop": "Quantum Visualization Workshop",
"translation": null,
"synopsis": "A journey through the quantum realm visualized with AI",
"synopsis_anglais": "A journey through the quantum realm visualized with AI",
"subtitle": "subtitlesSrt-1710245678-111222333.srt",
"ai_tool": "DALL-E 3, Runway Gen-2",
"thumbnail": "poster-1710245678-111222333.jpg",
"selection_status": "submitted",
"jury_comment": null,
"admin_comment": null,
"id_user": 42,
"createdAt": "2025-03-07T10:15:30.000Z",
"updatedAt": "2025-03-07T10:15:30.000Z"
}
}
{
"error": "Le titre et la description sont obligatoires"
}
{
"error": "La durée maximale est de 120 secondes"
}
{
"error": "La durée du film est invalide"
}
{
"error": "Database error message"
}
curl -X POST https://api.marsai.com/movies \
-H "Authorization: Bearer YOUR_TOKEN" \
-F "title=Quantum Dreams" \
-F "description=A journey through the quantum realm visualized with AI" \
-F "duration=95" \
-F "main_language=English" \
-F "release_year=2025" \
-F "nationality=USA" \
-F "ai_tool=DALL-E 3, Runway Gen-2" \
-F "production=AI-Assisted" \
-F "workshop=Quantum Visualization Workshop" \
-F "filmFile=@/path/to/video.mp4" \
-F "thumbnail1=@/path/to/thumb1.jpg" \
-F "subtitlesSrt=@/path/to/subtitles.srt" \
-F 'categories=[1,3,5]' \
-F 'collaborators=[{"email":"john@example.com","first_name":"John","last_name":"Doe","job":"Director"}]'
selection_status: 'submitted'findOrCreate based on emailid_user) of the movie