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

  • REST API and Deleting an content within an object
    2013/02/14 21:11

    aaoudi <p> Hi Guys,&nbsp;</p> <p> How can I use the REST API to delete/remove an element from an object? &nbsp;The element that i&#39;m trying to remove is a &quot;weakreference&quot;&#39;d object and all it&#39;s looking for is the UUID of the element that I need to assign it but I&#39;m just trying to remove that element and not the entire object.</p> <p> i&#39;ve tried to set the value to 0, Null, or leave it blank and it fails saying invalid UUID.&nbsp;</p> <p> I&#39;m doing a Put since Delete will end up deleting the entire object.</p> <p> Any help would be appreciated.</p> <p> Thanks</p>

  • Number of messages  1
    Registration date Feb 14, 2013
    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