Skip to main content

Update reindeer details for a specific sleigh

PUT 

http://localhost:8080/reindeers/:reindeerId

Update reindeer details for a specific sleigh

Request

Path Parameters

    reindeerId stringrequired

Bodyrequired

    namestringrequired

    Name of the reindeer.

    Possible values: [Dasher, Dancer, Prancer, Vixen, Comet, Cupid, Donner, Blitzen, Rudolph]

    Example: Dasher
    ageintegerrequired

    Age of the reindeer in years.

    Possible values: >= 0 and <= 100

    Example: 5
    nose_colourstringrequired

    Colour of the reindeer's nose.

    Possible values: [red, blue, green]

    Example: red
    notesstring

    Additional notes about the reindeer.

    Possible values: <= 100 characters

    Example: Rudolph has a shiny nose.
    idstring

    Unique identifier for the reindeer.

    Example: reindeer1

Responses

Reindeer updated successfully.

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "http://localhost:8080/reindeers/:reindeerId");
var content = new StringContent("{\n \"name\": \"Dasher\",\n \"age\": 5,\n \"nose_colour\": \"red\",\n \"notes\": \"Rudolph has a shiny nose.\",\n \"id\": \"reindeer1\"\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
http://localhost:8080
Parameters
— pathrequired
Body required
{
  "name": "Dasher",
  "age": 5,
  "nose_colour": "red",
  "notes": "Rudolph has a shiny nose.",
  "id": "reindeer1"
}
ResponseClear

Click the Send API Request button above and see the response here!