Jahia Dev Forum > REST API and Deleting...

0 (0 Good)
0 (0 Bad)

REST API and Deleting an content within an object

by  aaoudi »  2013/02/14 21:11

Hi Guys, 

How can I use the REST API to delete/remove an element from an object?  The element that i'm trying to remove is a "weakreference"'d object and all it's looking for is the UUID of the element that I need to assign it but I'm just trying to remove that element and not the entire object.

i've tried to set the value to 0, Null, or leave it blank and it fails saying invalid UUID. 

I'm doing a Put since Delete will end up deleting the entire object.

Any help would be appreciated.

Thanks

  (aaoudi)

Number of messages  1
Registration date
0 (0 Good)
0 (0 Bad)

Re: REST API and Deleting an content within an object

by  dgriffon »  2013/12/26 10:17

Hello,

Currently the REST API does not allow to delete a property. You have to create your own action in order to do it. This will be addressed in a future version of Jahia.

best regards

David

David Griffon (dgriffon)

Number of messages  76
Registration date
Contact
Share
Feedback

Get in touch

Whether you are a current user or if you are just evaluating Jahia, we are here to help.

Contact us

Share this page