'.. http:post:: /api/1/account/
Create a new account.
**Example Request**:
.. sourcecode:: http
POST /api/1/account/ HTTP/1.1
Host: example.com
Accept: application/json
\'name\': \'new_account\'
\'identifier\': \'0123456789\',
\'notes\': \'this account is for ...\',
\'active\': true,
\'third_party\': false
\'account_type\': \'AWS\'
**Example Response**:
.. sourcecode:: http
HTTP/1.1 201 Created
Vary: Accept
Content-Type: application/json
\'name\': \'new_account\'
\'identifier\': \'0123456789\',
\'notes\': \'this account is for ...\',
\'active\': true,
\'third_party\': false
\'account_type\': \'AWS\'
:statuscode 201: created
:statuscode 401: Authentication Error. Please Login.'

def post(self):

    args = json.loads(request.json)
    account_type = args['account_type']
    name = args['name']
    identifier = args['identifier']
    notes = args['notes']
    active = args['active']
    third_party = args['third_party']
    custom_fields = args['custom_fields']
    from security_monkey.account_manager import account_registry
    account_manager = account_registry.get(account_type)()
    account = account_manager.create(account_type, name, active, third_party, notes, identifier, custom_fields=custom_fields)
    marshaled_account = marshal(account.__dict__, ACCOUNT_FIELDS)
    marshaled_account['auth'] = self.auth_dict
    return (marshaled_account, 200)
