'.. http:post:: /api/1/settings
Change the settings for the current user.
**Example Request**:
.. sourcecode:: http
POST /api/1/settings HTTP/1.1
Host: example.com
Accept: application/json
"accounts": [
1,
2,
3,
6,
17,
21,
22
"daily_audit_email": true,
"change_report_setting": "ALL"
**Example Response**:
.. sourcecode:: http
HTTP/1.1 200 OK
Vary: Accept
Content-Type: application/json
"auth": {
"authenticated": true,
"user": "user@example.com"
"settings": {
"accounts": [
1,
2,
3,
6,
17,
21,
22
"daily_audit_email": true,
"change_report_setting": "ALL"
:statuscode 200: no error
:statuscode 401: Authentication Error. Please Login.'

def post(self):

    self.reqparse.add_argument('accounts', required=True, type=list, help='Must    provide    accounts', location='json')
    self.reqparse.add_argument('change_report_setting', required=True, type=str, help='Must    provide    change_report_setting', location='json')
    self.reqparse.add_argument('daily_audit_email', required=True, type=bool, help='Must    provide    daily_audit_email', location='json')
    args = self.reqparse.parse_args()
    current_user.daily_audit_email = args['daily_audit_email']
    current_user.change_reports = args['change_report_setting']
    account_list = []
    for account_id in args['accounts']:
        account = Account.query.filter((Account.id == account_id)).first()
        if account:
            account_list.append(account)
    current_user.accounts = account_list
    db.session.add(current_user)
    db.session.commit()
    retdict = {'auth': self.auth_dict}
    account_ids = []
    for account in current_user.accounts:
        account_ids.append(account.id)
    retdict['settings'] = {'accounts': account_ids, 'change_report_setting': current_user.change_reports, 'daily_audit_email': current_user.daily_audit_email}
    return (retdict, 200)
