Request

PUT https://api.digital-nautic.com/v3/rentals/{rentalId}/options/{optionId}

Path parameters

Parameter name Value Description Additional
rentalId integer

pass a mandatory rental id to get access to the options.

Required
optionId integer

pass a mandatory option id to identify the option to update.

Required

Request body

The request body takes a complete Rental Option Quantity resource, containing the following writable properties:

{
    "quantity": "integer"
}

Properties

Name Type Description Additional
quantity integer

Response

The following HTTP status codes may be returned, optionally with a response resource.

Status code Description Resource
200 OK

item updated

Rental Option
400 Bad Request

bad input parameter

401 Unauthorized

authorization information is missing or invalid.

404 Not Found

an option with the specified ID was not found.


Explore this API

rentalId

pass a mandatory rental id to get access to the options.

optionId

pass a mandatory option id to identify the option to update.

quantity

pass a mandatory quantity.

Request Content-Type
Response Content-Type
Try it out!