Accounting
Updates a chart of accounts
post/Accounts/{AccountID}
Request
- Base URLhttps://api.xero.com/api.xro/2.0
- URLhttps://api.xero.com/api.xro/2.0/Accounts/{AccountID}
- AuthOAuth 2Authorization code: https://login.xero.com/identity/connect/authorizeToken URL: https://identity.xero.com/connect/token scopes: accounting.settings
Path parameters
AccountIDstring uuid required
Unique identifier for Account object
Headers
Idempotency-Keystring
This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
Request body
Example request
{
"Accounts": [
{
"Name": "Food Sales",
"AccountID": "00000000-0000-0000-0000-000000000000",
"UpdatedDateUTC": "/Date(1573755038314)/"
}
]
}Response
Success - update existing Account and return response of type Accounts array with updated Account
Example response
{
"Accounts": [
{
"Name": "Food Sales",
"AccountID": "00000000-0000-0000-0000-000000000000",
"UpdatedDateUTC": "/Date(1573755038314)/"
}
]
}Changes
No recorded changes to this operation across all 62 revisions of this API.