PUT api/Tickets/{id}
Updates an existing ticket with the provided information.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
The ID of the ticket to be updated |
integer |
Required |
Body Parameters
A ticket object containing the updated ticket information.
TicketName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
FlightId | integer |
None. |
|
SeatId | integer |
None. |
|
Price | decimal number |
None. |
|
ClientId | integer |
None. |
|
PaymentMethod | string |
None. |
|
Seat | Seat |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "FlightId": 1, "SeatId": 1, "Price": 4.0, "ClientId": 1, "PaymentMethod": "Card", "Seat": { "Id": 1, "Row": 2, "Letter": "sample string 3", "Type": "Economic", "IsAvailable": true, "AirplaneId": 1 } }
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HTTP response indicating success or failure of the update operation.
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.