I have a List(integer) type field on the user. When using the user resource over REST, if I login as this user or request the user (GET) the format returned for this field is:

"field_type": {"und": [{"value": "2"}]}

However when i create a new user (POST) or update (PUT) a user the format necessary for these to succeed is (the update also returns the field in this format):

"field_type": {"und": {"value": "2"}}

Clearly there is inconsistencies here in the format one in array and one w/o.

Comments

powysm created an issue. See original summary.

tyler.frankenstein’s picture

Status: Active » Closed (works as designed)

When doing POST or PUT, the Services module expects the input to coincide with what the Forms API expects as input, therefore what you get over GET may not always be what you need to send via POST/PUT.

If you're looking for a one to one GET vs. POST/PUT, then check out the Services Entity API module instead.