Allows you to update a chart of accounts

POST {{baseUrl}}/Accounts/:AccountID

Request Body

{"Accounts"=>[{"Code"=>"<string>", "Name"=>"<string>", "AccountID"=>"<uuid>", "Type"=>"<string>", "BankAccountNumber"=>"<string>", "Status"=>"<string>", "Description"=>"<string>", "BankAccountType"=>"<string>", "CurrencyCode"=>"<string>", "TaxType"=>"<string>", "EnablePaymentsToAccount"=>"<boolean>", "ShowInExpenseClaims"=>"<boolean>", "ReportingCode"=>"<string>", "AddToWatchlist"=>"<boolean>", "ValidationErrors"=>[{"Message"=>"<string>"}, {"Message"=>"<string>"}]}, {"Code"=>"<string>", "Name"=>"<string>", "AccountID"=>"<uuid>", "Type"=>"<string>", "BankAccountNumber"=>"<string>", "Status"=>"<string>", "Description"=>"<string>", "BankAccountType"=>"<string>", "CurrencyCode"=>"<string>", "TaxType"=>"<string>", "EnablePaymentsToAccount"=>"<boolean>", "ShowInExpenseClaims"=>"<boolean>", "ReportingCode"=>"<string>", "AddToWatchlist"=>"<boolean>", "ValidationErrors"=>[{"Message"=>"<string>"}, {"Message"=>"<string>"}]}]}

HEADERS

KeyDatatypeRequiredDescription
xero-tenant-idstring(Required) Xero identifier for Tenant
Content-Typestring

RESPONSES

status: OK

{&quot;Id&quot;:&quot;9012e75c-ec08-40a9-ae15-153fc1f35c4d&quot;,&quot;Status&quot;:&quot;OK&quot;,&quot;ProviderName&quot;:&quot;Xero API Partner&quot;,&quot;DateTimeUTC&quot;:&quot;/Date(1550795389340)/&quot;,&quot;Accounts&quot;:[{&quot;AccountID&quot;:&quot;99ce6032-0678-4aa0-8148-240c75fee33a&quot;,&quot;Code&quot;:&quot;654321&quot;,&quot;Name&quot;:&quot;BarFoo&quot;,&quot;Status&quot;:&quot;ACTIVE&quot;,&quot;Type&quot;:&quot;EXPENSE&quot;,&quot;TaxType&quot;:&quot;INPUT&quot;,&quot;Description&quot;:&quot;Good Bye World&quot;,&quot;Class&quot;:&quot;EXPENSE&quot;,&quot;EnablePaymentsToAccount&quot;:false,&quot;ShowInExpenseClaims&quot;:false,&quot;ReportingCode&quot;:&quot;EXP&quot;,&quot;ReportingCodeName&quot;:&quot;Expense&quot;,&quot;UpdatedDateUTC&quot;:&quot;/Date(1550795389333+0000)/&quot;}]}