v. 3.7.1 REST API Question(s)

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

v. 3.7.1 REST API Question(s)

Henry Versemann

I am able to setup through my REST API requests to add employees (add request) and assign department relationships  to individuals(update request), while processing an input file.

I have also been able to change the department relationship from one department to another.

But how would I remove a relationship between an employee and a department, if they left their current employment, but we still, at least temporarily wanted to retain the remainder of their other information?

Would I just have to manually make those changes myself to unpublish and/or archive them?

 

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

Re: v. 3.7.1 REST API Question(s)

John Michael Thomas
The way the REST API update currently works, if you leave out any information (any field and any relationships) when you update the content, that information will essentially be removed from the content.

So if I understand your question correctly, to remove the Employee from the relationship with the Department all you should have to do is update the employee record and not include the relationship field in the update.

On Tuesday, December 19, 2017 at 12:46:18 PM UTC-8, newbie23 wrote:

I am able to setup through my REST API requests to add employees (add request) and assign department relationships  to individuals(update request), while processing an input file.

I have also been able to change the department relationship from one department to another.

But how would I remove a relationship between an employee and a department, if they left their current employment, but we still, at least temporarily wanted to retain the remainder of their other information?

Would I just have to manually make those changes myself to unpublish and/or archive them?

 

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/c70c410b-b008-4f04-aa50-33df8beead03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: v. 3.7.1 REST API Question(s)

Henry Versemann

John,

OK. That’s easy enough then.

Thanks.

 

Henry

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of John Michael Thomas
Sent: Tuesday, December 19, 2017 10:03 PM
To: dotCMS User Group <[hidden email]>
Subject: [dotcms] Re: v. 3.7.1 REST API Question(s)

 

The way the REST API update currently works, if you leave out any information (any field and any relationships) when you update the content, that information will essentially be removed from the content.

 

So if I understand your question correctly, to remove the Employee from the relationship with the Department all you should have to do is update the employee record and not include the relationship field in the update.


On Tuesday, December 19, 2017 at 12:46:18 PM UTC-8, newbie23 wrote:

I am able to setup through my REST API requests to add employees (add request) and assign department relationships  to individuals(update request), while processing an input file.

I have also been able to change the department relationship from one department to another.

But how would I remove a relationship between an employee and a department, if they left their current employment, but we still, at least temporarily wanted to retain the remainder of their other information?

Would I just have to manually make those changes myself to unpublish and/or archive them?

 

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/c70c410b-b008-4f04-aa50-33df8beead03%40googlegroups.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/CY4PR0501MB3777235B49CF2AC7C3BBFA34AD0C0%40CY4PR0501MB3777.namprd05.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.