PUT api/glaccounts/{glAccountId}
Update GlAccount
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| glAccountId |
|
integer |
Required |
Body Parameters
GlAccountSaveViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Description |
Required Possible values include alphanumeric characters and special characters
|
string |
Required Max length: 100 |
| IsBalance |
Is Balance Account |
boolean |
None. |
| Is1099Account |
Is 1099 Account |
boolean |
None. |
| Active |
Account Active Or Inactive |
boolean |
None. |
| BudgetCheck |
Is Budget Account |
boolean |
None. |
| GlAccountTypeId |
GlAccountTypeId |
integer |
None. |
| GlSubAccounts |
GL Subaccounts |
Collection of GLSubAccountViewModel |
None. |
| Is1099AccountFlagValueChange |
Is1099Accout flag Change Confirmation |
boolean |
None. |
| GlAccountTypeCategoryId |
GlAccountTypeCategoryId |
integer |
None. |
| GlAccountTypeSubCategoryId |
Gl Account Type SubCategory Id |
integer |
None. |
Request Formats
application/json, text/json
{
"description": "sample string 1",
"isBalance": true,
"is1099Account": true,
"active": true,
"budgetCheck": true,
"glAccountTypeId": 1,
"glSubAccounts": [
{
"glSubAccountId": 1,
"glAccountId": 2,
"subAccountName": "sample string 3",
"description": "sample string 4"
},
{
"glSubAccountId": 1,
"glAccountId": 2,
"subAccountName": "sample string 3",
"description": "sample string 4"
}
],
"is1099AccountFlagValueChange": true,
"glAccountTypeCategoryId": 1,
"glAccountTypeSubCategoryId": 1
}
application/xml, text/xml
<GlAccountSaveViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.Controllers.GLAccounts.Models">
<Active>true</Active>
<BudgetCheck>true</BudgetCheck>
<Description>sample string 1</Description>
<GlAccountTypeCategoryId>1</GlAccountTypeCategoryId>
<GlAccountTypeId>1</GlAccountTypeId>
<GlAccountTypeSubCategoryId>1</GlAccountTypeSubCategoryId>
<GlSubAccounts xmlns:d2p1="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">
<d2p1:GLSubAccountViewModel>
<d2p1:Description>sample string 4</d2p1:Description>
<d2p1:SubAccountName>sample string 3</d2p1:SubAccountName>
<d2p1:GLAccountId>2</d2p1:GLAccountId>
<d2p1:GLSubAccountId>1</d2p1:GLSubAccountId>
</d2p1:GLSubAccountViewModel>
<d2p1:GLSubAccountViewModel>
<d2p1:Description>sample string 4</d2p1:Description>
<d2p1:SubAccountName>sample string 3</d2p1:SubAccountName>
<d2p1:GLAccountId>2</d2p1:GLAccountId>
<d2p1:GLSubAccountId>1</d2p1:GLSubAccountId>
</d2p1:GLSubAccountViewModel>
</GlSubAccounts>
<Is1099Account>true</Is1099Account>
<Is1099AccountFlagValueChange>true</Is1099AccountFlagValueChange>
<IsBalance>true</IsBalance>
</GlAccountSaveViewModel>
application/x-www-form-urlencoded
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample not available.