Update Expense Request

PUT {{baseUrl}}/odata/ExpenseRequests(6850904e-4f37-431b-8c3c-7daead75ae99)

Update Expense Request.

Request must be in Draft ApprovalStatus and RowVersion must be actual.

ExpenseRequestLine entity

Properties:

  • currencyId - optional.
  • exchange rate - optional.

Request Body

{"id"=>"6850904e-4f37-431b-8c3c-7daead75ae99", "rowVersion"=>17920440, "date"=>"2021-12-16", "description"=>nil, "name"=>"any name", "userId"=>"9facd21f-4d11-48be-b24c-12492a258221", "projectId"=>"c6ee3e9c-a74f-4e8d-a0d9-3ae8b777ec11", "lines"=>[{"amount"=>20000, "currencyId"=>"ffb682a7-8a0c-420a-aea1-0ec2a3ae51a0", "exchangeRate"=>0.82, "description"=>"1st month", "expenseTypeId"=>"e25cd1ac-bf63-4764-ae20-31fcb7140902", "projectTaskId"=>"a836c3c4-a81a-46f6-a1cf-508c9dc4543f", "reimburse"=>false, "billable"=>false}]}