Update a movie

PUT /movies/{movieId}

Update a movie

Path parameters

  • movieId string Required

    Identifier of the movie

    Format should match the following pattern: ^[A-Za-z0-9\\-]{1,100}$.

application/json

Body Required

Create or Update Movie request body

  • movieId string Required

    Movie identifier

    Minimum length is 1, maximum length is 100. Format should match the following pattern: ^[A-Za-z0-9\\-]{1,100}$.

  • title string Required

    Title of the movie

  • year integer Required

    Year that the movie is released

  • category string Required

    Category of the movie

  • budget string

    Budget in free text

  • boxOffice string

    Box office revenue

  • Additional properties are NOT allowed

Responses

  • 200 application/json

    Successful response returning the updated movie

    Hide response attributes Show response attributes object
    • movieId string

      Movie identifier

      Minimum length is 1, maximum length is 100. Format should match the following pattern: ^[A-Za-z0-9\\-]{1,100}$.

    • title string

      Title of the movie

    • year integer

      Year that the movie is released

    • category string

      Category of the movie

    • budget string

      Budget in free text

    • boxOffice string

      Box office revenue

    • Additional properties are NOT allowed
  • 400 application/json

    Default error response

    Hide response attribute Show response attribute object
    • message string Required
  • 401 application/json

    Default error response

    Hide response attribute Show response attribute object
    • message string Required
  • 403 application/json

    Default error response

    Hide response attribute Show response attribute object
    • message string Required
  • 404 application/json

    Default error response

    Hide response attribute Show response attribute object
    • message string Required
  • 422 application/json

    Default error response

    Hide response attribute Show response attribute object
    • message string Required
  • 500 application/json

    Default error response

    Hide response attribute Show response attribute object
    • message string Required
  • 502 application/json

    Default error response

    Hide response attribute Show response attribute object
    • message string Required
  • 504 application/json

    Default error response

    Hide response attribute Show response attribute object
    • message string Required
PUT /movies/{movieId}
curl \
 -X PUT http://api.example.com/movies/{movieId} \
 -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"
}