POST
/movies
curl \
-X POST http://api.example.com/movies \
-H "Authorization: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"movieId":"string","title":"string","year":42,"category":"string","budget":"string","boxOffice":"string"}'
Request example
{
"movieId": "string",
"title": "string",
"year": 42,
"category": "string",
"budget": "string",
"boxOffice": "string"
}
Response examples (200)
{
"movieId": "string",
"title": "string",
"year": 42,
"category": "string",
"budget": "string",
"boxOffice": "string"
}
Response examples (400)
{
"message": "Error message"
}
Response examples (401)
{
"message": "Error message"
}
Response examples (403)
{
"message": "Error message"
}
Response examples (404)
{
"message": "Error message"
}
Response examples (422)
{
"message": "Error message"
}
Response examples (500)
{
"message": "Error message"
}
Response examples (502)
{
"message": "Error message"
}
Response examples (504)
{
"message": "Error message"
}