public interface AccountWriter extends CanvasWriter<Account,AccountWriter>
| Modifier and Type | Method and Description |
|---|---|
Optional<Account> |
createAccount(String accountId,
Account account)
Create a new account in Canvas
|
Boolean |
deleteAccount(String parentAccountId,
String accountId) |
Optional<Account> |
updateAccount(Account account)
Update a account in Canvas
|
writeAsCanvasUser, writeAsSisUserOptional<Account> createAccount(String accountId, Account account) throws IOException
accountId - the account ID of the account under which to place this accountaccount - A account object containing the information needed to create a account in CanvasIOException - When there is an error communicating with CanvasOptional<Account> updateAccount(Account account) throws IOException
account - A account object containing the information needed to update a account in CanvasIOException - When there is an error communicating with CanvasBoolean deleteAccount(String parentAccountId, String accountId) throws IOException
parentAccountId - The ID of the parent account to the account to delete.accountId - The ID of the account you wish to deleteIOException - When there is an error communicating with CanvasCopyright © 2021 Kansas State University, Office of Mediated Education. All rights reserved.