update fields from POST response

When the server sends back fields from a POST, set the properties
accordingly.

Previously, just setting the id parameter.