Esri / ArcREST

python package for REST API (AGS, AGOL, webmap JSON, etc..)
Apache License 2.0
192 stars 155 forks source link

Enhancement - Change URL of Org #258

Closed clareprice closed 8 years ago

clareprice commented 8 years ago

ArcRest or ArcRestHelper

Feb 2016 Release

Enhancement

Ability to change the name in the URL of an organization.

This was mentioned by @mattsbaber. Matt, if workflow/understand is incorrect please clarify.

Currently the workflow to change the name/URL of an ArcGIS Online organization is to copy an org to a different org with the desired name. Use case for this is for organizations that are merged/bought up by a larger organization. So rather than using the previous name in the URL, the users would like the ability to change the URL without having to copy and transfer all their services, maps, and apps to a different organization.

achapkowski commented 8 years ago

@clareprice so you want another org (site A) to take ownership of a service from site B?

achapkowski commented 8 years ago

@clareprice - have you taken a look at this: https://github.com/Esri/ago-admin-wiki/wiki/Inviting-public-accounts-into-organizations

clareprice commented 8 years ago

@achapkowski The workflow would more be able to change the actual org url (highlight below) image

Similar to the functionality of this: https://pholleran.github.io/agoAdminTools/

achapkowski commented 8 years ago

@clareprice this can be done by calling the update() on the Portal class to change the site's https://github.com/pholleran/agoAdminTools/blob/master/js/portal.js#L81 shows what they are doing.

For the URL updates, you just need to call updateItem and update the service to the new url: https://github.com/pholleran/agoAdminTools/blob/master/js/portal.js#L208