Update a code