Hi,
We're running RSC 1.7.8. I'm having trouble how to update owners on content.
I'm following this section of the RSC API guide .
I saw this old thread and all the CLI things are out of date (I'm assuming in favor of the API as mentioned at the end of the thread).
Do I need to update our RSC version? Is there any other way to change this?
Thanks!
1 Like
cole
November 23, 2021, 5:20pm
2
Hello @davisderodes !
So a couple of options:
The CLI guide is here now (apologies for the broken link!). It is still possible to transfer content with the CLI, but it moves in "bulk" IIRC
https://docs.rstudio.com/connect/admin/appendix/cli/#commands_1
Although that is for a newer version of connect. For 1.7.8, you want:
As for the API guide, you are better off referencing your particular release (which is stored on your Connect server under the "Documentation" tab, or here. Unfortunately, it does look like the new API endpoints were shipped after 1.7.8, so if you want to make use of the API to modify owners, you will need to upgrade Connect:
https://docs.rstudio.com/connect/1.7.8/api/#updateContent
I hope that helps!! If you do decide to upgrade, there is a thread linked in the thread you linked that discusses this type of thing in more detail:
So sorry for the delay getting back to you here!!
In sum, you are right! The $update(owner_guid = ...) function needed to be ported to the newer version of the API. It also requires RStudio Connect 1.8.6. If you update to the newest version of the connectapi package (0.1.0.9018 at the time of writing) and ensure you are running RStudio Connect version 1.8.6 (latest patch release is 1.8.6.2), then this function should work now!
Please let us know if you run into any more trouble!! Hopefully this will fix your issue!