[FLOW3-general] IdentityRoutePart does not match

Bastian Waidelich bastian at typo3.org
Fri Aug 31 16:09:02 CEST 2012


Peter Rauber wrote:

Hi Peter,

> Now I want to update an Article and send a PUT-Request to the
> uri: Mypackage/article/71df811d-**8266-4742-b80f-2bc5eb628b12
> The content of the request is
> JSON: {article:{name:'newName',otherProperty:'newValue'}
>
> Is this correct?

If you update a record, you currently have to specifiy the identifier (= 
UUID) in the request body, too. Otherwise the identifier in the route 
will be overwritten (This will be fixed with 1.2 hopefully).
So your request should look like:

Mypackage/article/71df811d-**8266-4742-b80f-2bc5eb628b12
JSON: {article:{__identity: '71df811d-**8266-4742-b80f-2bc5eb628b12', 
name:'newName',otherProperty:'newValue'}


HTH,


-- 
Bastian Waidelich
TYPO3 Core Team Member

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the FLOW3-general mailing list