loans
patch/api/loans/{loan_id}

Request

  • The document declares no server URL.
  • Auth: none declared

Path parameters

loan_idinteger required

Headers

authorizationstring nullable

Cookies

session_idstring nullable

Request body

borrower_idinteger nullable
start_datestring date-time nullable
end_datestring date-time nullable
total_deposit_centsinteger nullable
actual_start_datestring date-time nullable
actual_return_datestring date-time nullable
retained_deposit_centsinteger nullable
commentsstring nullable
item_idsinteger[] nullable

Response

Successful Response

idinteger required
status'scheduled' | 'active' | 'returned' required

Represents the status of a loan.

start_datestring date-time required
end_datestring date-time required
total_deposit_centsinteger required
actual_start_datestring date-time nullable
actual_return_datestring date-time nullable
retained_deposit_centsinteger nullable
request_idinteger nullable
commentsstring nullable

Changes

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      removed the unauthenticated enum value from the / response property for the response status

    • info

      removed the unauthenticated enum value from the / response property for the response status

    • info

      added the required property to the response with the status

    • warning

      for the path request parameter loan_id, the min was set to 1.00

    • warning

      the / request property's min was set to 0.00

    • warning

      the / request property's min was set to 0.00

    • info

      added the new optional header request parameter authorization

    • info

      added the optional property // to the response with the status