'.. http:get:: /api/1/whitelistcidrs/<int:id>
Update the whitelist entry with the given ID.
**Example Request**:
.. sourcecode:: http
PUT /api/1/whitelistcidrs/123 HTTP/1.1
Host: example.com
Accept: application/json, text/javascript
"id": 123,
"name": "Corp",
"notes": "Corporate Network - New",
"cidr": "2.2.0.0/16"
**Example Response**:
.. sourcecode:: http
HTTP/1.1 200 OK
Vary: Accept
Content-Type: application/json
"id": 123,
"name": "Corp",
"notes": "Corporate Network - New",
"cidr": "2.2.0.0/16",
auth: {
authenticated: true,
user: "user@example.com"
:statuscode 200: no error
:statuscode 404: item with given ID not found
:statuscode 401: Authentication failure. Please login.'

def put(self, item_id):

    self.reqparse.add_argument('name', required=True, type=unicode, help='Must    provide    account    name', location='json')
    self.reqparse.add_argument('cidr', required=True, type=unicode, help='Network    CIDR    required.', location='json')
    self.reqparse.add_argument('notes', required=False, type=unicode, help='Add    context.', location='json')
    args = self.reqparse.parse_args()
    name = args['name']
    cidr = args.get('cidr', True)
    notes = args.get('notes', None)
    result = NetworkWhitelistEntry.query.filter((NetworkWhitelistEntry.id == item_id)).first()
    if (not result):
        return ({'status': 'Whitelist    entry    with    the    given    ID    not    found.'}, 404)
    result.name = name
    result.cidr = cidr
    result.notes = notes
    db.session.add(result)
    db.session.commit()
    db.session.refresh(result)
    whitelistentry_marshaled = marshal(result.__dict__, WHITELIST_FIELDS)
    whitelistentry_marshaled['auth'] = self.auth_dict
    return (whitelistentry_marshaled, 200)
