dotcms REST API

38 views
Skip to first unread message

Henry Versemann

unread,
Aug 30, 2017, 11:13:20 AM8/30/17
to dot...@googlegroups.com

We’re currently using  dotcms version 3.7.1 and we’re trying to automate our campus directory weekly update process, if possible, and I was wondering if the built-in REST API feature could be used to both inquire against and then used to perform needed structure updates to existing data entries, as well as add brand new structure entries?

 

I don’t know much about the REST API, and am still trying to research and better comprehend how it can be used.

 

Thanks for the help.

 

Henry

 

 

Jason Tesser

unread,
Aug 30, 2017, 11:36:44 AM8/30/17
to dot...@googlegroups.com
you can search content and save new content. You would need a little java to alter content types 

--
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 dotcms+un...@googlegroups.com.
To post to this group, send email to dot...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/BY2PR0501MB1702F5E4082AAC2D42AC9A80AD9C0%40BY2PR0501MB1702.namprd05.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.

Henry Versemann

unread,
Aug 30, 2017, 11:45:52 AM8/30/17
to dot...@googlegroups.com

So it sounds like adds and updates shouldn’t be a problem then.

What about specifying relationships for adds and updates through the REST API? Possible?

What about deleting entries?

Are they also possible through the REST API?

John Michael Thomas

unread,
Aug 31, 2017, 12:39:42 PM8/31/17
to dotCMS User Group
Yes, you can apply relationships on each content item that you add or update through the REST API.  You have to specify the name of each relationship to be updated as one of the fields in the POST (see here: https://dotcms.com/docs/latest/save-content-using-rest-api#relationships).

There isn't a direct REST API endpoint to delete content, but you can delete content (or just unpublish or archive it - which is often a better way to remove it from your site) using the workflow REST API.  Basically you use the REST API to trigger a workflow action, so anything you can do in a workflow action you can do via the REST API.  For more information on this see https://dotcms.com/docs/latest/save-content-using-rest-api#workflows and https://dotcms.com/docs/latest/workflows.


On Wednesday, August 30, 2017 at 8:45:52 AM UTC-7, newbie23 wrote:

So it sounds like adds and updates shouldn’t be a problem then.

What about specifying relationships for adds and updates through the REST API? Possible?

What about deleting entries?

Are they also possible through the REST API?

 

 

From: dot...@googlegroups.com [mailto:dot...@googlegroups.com] On Behalf Of Jason Tesser
Sent: Wednesday, August 30, 2017 10:36 AM
To: dot...@googlegroups.com
Subject: Re: [dotcms] dotcms REST API

 

you can search content and save new content. You would need a little java to alter content types 

 

On Wed, Aug 30, 2017 at 11:13 AM Henry Versemann <hvers...@stchas.edu> wrote:

We’re currently using  dotcms version 3.7.1 and we’re trying to automate our campus directory weekly update process, if possible, and I was wondering if the built-in REST API feature could be used to both inquire against and then used to perform needed structure updates to existing data entries, as well as add brand new structure entries?

 

I don’t know much about the REST API, and am still trying to research and better comprehend how it can be used.

 

Thanks for the help.

 

Henry

 

 

--
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 dotcms+un...@googlegroups.com.

To post to this group, send email to do...@googlegroups.com.

Henry Versemann

unread,
Aug 31, 2017, 12:43:07 PM8/31/17
to dot...@googlegroups.com

John,

 

I’ve not used the REST API much before so any new information about how to use it is very welcome.

Thanks for the help.

 

Henry

 

Reply all
Reply to author
Forward
0 new messages