PUT api/Movies/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

Movie
NameDescriptionTypeAdditional information
Id

integer

None.

Title

string

Required

Year

integer

Range: inclusive between 1900 and 2020

MpaaRating

string

None.

Ratings

Rating

None.

CriticsConsensus

string

None.

Synopsis

string

None.

Genres

Collection of string

None.

Posters

Posters

None.

AbridgedCast

Collection of CastActor

None.

AbridgedDirectors

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "title": "sample string 2",
  "year": 1,
  "mpaaRating": "sample string 3",
  "ratings": {
    "criticsScore": 1,
    "audienceScore": 2
  },
  "criticsConsensus": "sample string 4",
  "synopsis": "sample string 5",
  "genres": [
    "sample string 1",
    "sample string 2"
  ],
  "posters": {
    "thumbnail": "sample string 1",
    "profile": "sample string 2",
    "detailed": "sample string 3",
    "original": "sample string 4"
  },
  "abridgedCast": [
    {
      "id": 1,
      "name": "sample string 2",
      "characters": [
        "sample string 1",
        "sample string 2"
      ]
    },
    {
      "id": 1,
      "name": "sample string 2",
      "characters": [
        "sample string 1",
        "sample string 2"
      ]
    }
  ],
  "abridgedDirectors": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<Movie xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RawStack.Models">
  <AbridgedCast>
    <CastActor>
      <Characters xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </Characters>
      <Id>1</Id>
      <Name>sample string 2</Name>
    </CastActor>
    <CastActor>
      <Characters xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </Characters>
      <Id>1</Id>
      <Name>sample string 2</Name>
    </CastActor>
  </AbridgedCast>
  <AbridgedDirectors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </AbridgedDirectors>
  <CriticsConsensus>sample string 4</CriticsConsensus>
  <Genres xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Genres>
  <Id>1</Id>
  <MpaaRating>sample string 3</MpaaRating>
  <Posters>
    <Detailed>sample string 3</Detailed>
    <Original>sample string 4</Original>
    <Profile>sample string 2</Profile>
    <Thumbnail>sample string 1</Thumbnail>
  </Posters>
  <Ratings>
    <AudienceScore>2</AudienceScore>
    <CriticsScore>1</CriticsScore>
  </Ratings>
  <Synopsis>sample string 5</Synopsis>
  <Title>sample string 2</Title>
  <Year>1</Year>
</Movie>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Movie'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.