Delete relationships

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Delete relationships

mvelasco
Hello there
As I know there isn't a direct REST API endpoint to delete content, I have the following content types:
"Invoice -> has many Items"
I would like to delete (or archive) items using API, is there any way? maybe using workflow api?
Also, I would like to know how  the relationship are saving on the database.

Thanks, 

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/47d42430-09b7-4387-9d99-9cc3481d424a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Delete relationships

Jason Tesser
You can use the ContentletAPI to delete content.  
There is also a RelationshipAPI.  All APIs can be retrieved from the APILocator 

The data is stored in the tree table for relationships 

On Thu, Nov 2, 2017 at 12:25 PM mvelasco <[hidden email]> wrote:
Hello there
As I know there isn't a direct REST API endpoint to delete content, I have the following content types:
"Invoice -> has many Items"
I would like to delete (or archive) items using API, is there any way? maybe using workflow api?
Also, I would like to know how  the relationship are saving on the database.

Thanks, 

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/47d42430-09b7-4387-9d99-9cc3481d424a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--



3059 Grand Avenue
Suite 410-B
Miami FL 33133
Main: 
305-900-2001 | Direct: 978.294.9429

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CAKKUxWewKj%2BVYX_zQh_zw4sgbc8zgnEFw2jrCXX9gxCagEOmUA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.