DOTCMS REST API - Enterprise Professional v. 3.7.1

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

DOTCMS REST API - Enterprise Professional v. 3.7.1

Henry Versemann

I have succeeded in being able to both add and update entries into a structure using the REST API.

 

Now if possible I’d also like to set a relationship for the new entry, as part of the update process.

 

According to the documentation I should be able to do that, first by specifying the relationship name as in my case Departments-Employees, but then according to the documentation I also need to include an identifier as the value associated with the relationship name.

 

I don’t think the documentation explicitly says where the identifier comes from or what it represents. So does the identifier represent the department to be associated with the employee or something else?

 

If so then how in the backend do I find the identifier for the department I’m trying to associate the employee to?

 

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 [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/BLUPR0501MB1700BEC376AF4D45EB748959AD480%40BLUPR0501MB1700.namprd05.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

RE: DOTCMS REST API - Enterprise Professional v. 3.7.1

Nathan Keiter

It would be the identifier of the content you want to relate.

 

You can find the identifier on the “history” tab of the content edit screen.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Henry Versemann
Sent: Friday, October 13, 2017 11:56 AM
To: '[hidden email]'
Subject: [dotcms] DOTCMS REST API - Enterprise Professional v. 3.7.1

 

I have succeeded in being able to both add and update entries into a structure using the REST API.

 

Now if possible I’d also like to set a relationship for the new entry, as part of the update process.

 

According to the documentation I should be able to do that, first by specifying the relationship name as in my case Departments-Employees, but then according to the documentation I also need to include an identifier as the value associated with the relationship name.

 

I don’t think the documentation explicitly says where the identifier comes from or what it represents. So does the identifier represent the department to be associated with the employee or something else?

 

If so then how in the backend do I find the identifier for the department I’m trying to associate the employee to?

 

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 [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/BLUPR0501MB1700BEC376AF4D45EB748959AD480%40BLUPR0501MB1700.namprd05.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.

--
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/9f0823ff21564e66a15555af2919c9d1%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

RE: DOTCMS REST API - Enterprise Professional v. 3.7.1

Henry Versemann

Nathan,

 

So if I’m updating a new employee and associating them with a new department then I would go into the history tab of the particular department to be associated with the employee and find the identifier for the department there.

Right?

 

Thanks.

 

Henry

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Nathan Keiter
Sent: Friday, October 13, 2017 11:01 AM
To: [hidden email]
Subject: [dotcms] RE: DOTCMS REST API - Enterprise Professional v. 3.7.1

 

It would be the identifier of the content you want to relate.

 

You can find the identifier on the “history” tab of the content edit screen.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of Henry Versemann
Sent: Friday, October 13, 2017 11:56 AM
To: '[hidden email]'
Subject: [dotcms] DOTCMS REST API - Enterprise Professional v. 3.7.1

 

I have succeeded in being able to both add and update entries into a structure using the REST API.

 

Now if possible I’d also like to set a relationship for the new entry, as part of the update process.

 

According to the documentation I should be able to do that, first by specifying the relationship name as in my case Departments-Employees, but then according to the documentation I also need to include an identifier as the value associated with the relationship name.

 

I don’t think the documentation explicitly says where the identifier comes from or what it represents. So does the identifier represent the department to be associated with the employee or something else?

 

If so then how in the backend do I find the identifier for the department I’m trying to associate the employee to?

 

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 [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/BLUPR0501MB1700BEC376AF4D45EB748959AD480%40BLUPR0501MB1700.namprd05.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.

--
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/9f0823ff21564e66a15555af2919c9d1%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.

--
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/BLUPR0501MB1700E570044ED499AC3E6C2DAD480%40BLUPR0501MB1700.namprd05.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

RE: DOTCMS REST API - Enterprise Professional v. 3.7.1

Nathan Keiter

Yes correct.

 

Also, programmatically, you could do a RESTful pull of all departments with the rest API and do a name match and get the identifier, then do your post. Or, since they probably don’t change often, store them on the machine that does the post.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Henry Versemann
Sent: Friday, October 13, 2017 12:05 PM
To: [hidden email]
Subject: [dotcms] RE: DOTCMS REST API - Enterprise Professional v. 3.7.1

 

Nathan,

 

So if I’m updating a new employee and associating them with a new department then I would go into the history tab of the particular department to be associated with the employee and find the identifier for the department there.

Right?

 

Thanks.

 

Henry

 

From: [hidden email] [[hidden email]] On Behalf Of Nathan Keiter
Sent: Friday, October 13, 2017 11:01 AM
To: [hidden email]
Subject: [dotcms] RE: DOTCMS REST API - Enterprise Professional v. 3.7.1

 

It would be the identifier of the content you want to relate.

 

You can find the identifier on the “history” tab of the content edit screen.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of Henry Versemann
Sent: Friday, October 13, 2017 11:56 AM
To: '[hidden email]'
Subject: [dotcms] DOTCMS REST API - Enterprise Professional v. 3.7.1

 

I have succeeded in being able to both add and update entries into a structure using the REST API.

 

Now if possible I’d also like to set a relationship for the new entry, as part of the update process.

 

According to the documentation I should be able to do that, first by specifying the relationship name as in my case Departments-Employees, but then according to the documentation I also need to include an identifier as the value associated with the relationship name.

 

I don’t think the documentation explicitly says where the identifier comes from or what it represents. So does the identifier represent the department to be associated with the employee or something else?

 

If so then how in the backend do I find the identifier for the department I’m trying to associate the employee to?

 

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 [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/BLUPR0501MB1700BEC376AF4D45EB748959AD480%40BLUPR0501MB1700.namprd05.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.

--
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/9f0823ff21564e66a15555af2919c9d1%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.

--
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/BLUPR0501MB1700E570044ED499AC3E6C2DAD480%40BLUPR0501MB1700.namprd05.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.

--
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/8220502a09844d8c8ac11c5533290fbe%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

RE: DOTCMS REST API - Enterprise Professional v. 3.7.1

Henry Versemann

Nathan,

 

Glad you anticipated one of my next  question, because I was going to ask something similar about the departments.

 

I anticipate eventually having an input file with a new department name formatted in each entry which I would then use to get the identifier with for relationship update purposes.   

 

Thanks a bunch for all the help.

 

Henry

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Nathan Keiter
Sent: Friday, October 13, 2017 12:31 PM
To: [hidden email]
Subject: [dotcms] RE: DOTCMS REST API - Enterprise Professional v. 3.7.1

 

Yes correct.

 

Also, programmatically, you could do a RESTful pull of all departments with the rest API and do a name match and get the identifier, then do your post. Or, since they probably don’t change often, store them on the machine that does the post.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of Henry Versemann
Sent: Friday, October 13, 2017 12:05 PM
To: [hidden email]
Subject: [dotcms] RE: DOTCMS REST API - Enterprise Professional v. 3.7.1

 

Nathan,

 

So if I’m updating a new employee and associating them with a new department then I would go into the history tab of the particular department to be associated with the employee and find the identifier for the department there.

Right?

 

Thanks.

 

Henry

 

From: [hidden email] [[hidden email]] On Behalf Of Nathan Keiter
Sent: Friday, October 13, 2017 11:01 AM
To: [hidden email]
Subject: [dotcms] RE: DOTCMS REST API - Enterprise Professional v. 3.7.1

 

It would be the identifier of the content you want to relate.

 

You can find the identifier on the “history” tab of the content edit screen.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of Henry Versemann
Sent: Friday, October 13, 2017 11:56 AM
To: '[hidden email]'
Subject: [dotcms] DOTCMS REST API - Enterprise Professional v. 3.7.1

 

I have succeeded in being able to both add and update entries into a structure using the REST API.

 

Now if possible I’d also like to set a relationship for the new entry, as part of the update process.

 

According to the documentation I should be able to do that, first by specifying the relationship name as in my case Departments-Employees, but then according to the documentation I also need to include an identifier as the value associated with the relationship name.

 

I don’t think the documentation explicitly says where the identifier comes from or what it represents. So does the identifier represent the department to be associated with the employee or something else?

 

If so then how in the backend do I find the identifier for the department I’m trying to associate the employee to?

 

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 [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/BLUPR0501MB1700BEC376AF4D45EB748959AD480%40BLUPR0501MB1700.namprd05.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.

--
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/9f0823ff21564e66a15555af2919c9d1%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.

--
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/BLUPR0501MB1700E570044ED499AC3E6C2DAD480%40BLUPR0501MB1700.namprd05.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.

--
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/8220502a09844d8c8ac11c5533290fbe%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.

--
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/BLUPR0501MB1700AAE95E44702D925AD62BAD480%40BLUPR0501MB1700.namprd05.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.