PUT api/accountUses
Update an AccountUse. Returns Conflict (409) if the object is being referenced and updateReferences is set to false.
Request Information
URI Parameters
None.
Body Parameters
Account Use Update Model
AccountUseEditViewModelName | Description | Type | Additional information |
---|---|---|---|
UserId |
User Id |
integer |
Range: inclusive between 1 and 1.79769313486232E+308 |
AccountUseId |
Account Type Id. |
integer |
Range: inclusive between 1 and 1.79769313486232E+308 |
Description |
Description |
string |
Required |
UpdateReferences |
Update all Bank Accounts referencing this Account Use. |
boolean |
None. |
Request Formats
application/json, text/json
{ "userId": 1, "accountUseId": 2, "description": "sample string 3", "updateReferences": true }
application/xml, text/xml
<AccountUseEditViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels"> <AccountUseId>2</AccountUseId> <Description>sample string 3</Description> <UpdateReferences>true</UpdateReferences> <UserId>1</UserId> </AccountUseEditViewModel>
application/x-www-form-urlencoded
Response Information
Resource Description
AccountUseViewModel
AccountUseViewModelName | Description | Type | Additional information |
---|---|---|---|
AccountUseId |
AccountTypeId |
integer |
None. |
Description |
Description |
string |
None. |
IsUserEditable |
IsUserEditable |
boolean |
None. |
CreatedOn |
CreatedOn |
date |
None. |
CreatedBy |
CreatedBy |
integer |
None. |
ModifiedOn |
ModifiedOn |
date |
None. |
ModifiedBy |
ModifiedBy |
integer |
None. |
Response Formats
application/json, text/json
{ "accountUseId": 1, "description": "sample string 2", "isUserEditable": true, "createdOn": "2025-04-03T17:35:38.9826944-04:00", "createdBy": 5, "modifiedOn": "2025-04-03T17:35:38.9826944-04:00", "modifiedBy": 1 }
application/xml, text/xml
<AccountUseViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels"> <AccountUseId>1</AccountUseId> <CreatedBy>5</CreatedBy> <CreatedOn>2025-04-03T17:35:38.9826944-04:00</CreatedOn> <Description>sample string 2</Description> <IsUserEditable>true</IsUserEditable> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2025-04-03T17:35:38.9826944-04:00</ModifiedOn> </AccountUseViewModel>