Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I assign / update the Owner for a user? #214

Open
paulbeelen opened this issue May 28, 2019 · 2 comments
Open

Can I assign / update the Owner for a user? #214

paulbeelen opened this issue May 28, 2019 · 2 comments

Comments

@paulbeelen
Copy link

I'm wondering if I can assign or change the Owner associated with a user. I assume it's an attribute but not sure what it's called, unable to find it... Thanks for any help!

@bikegriffith
Copy link

I've been trying to find a way to do this, and it looks like the answer is NO. API v1.4 (which is required for this SDK) does not support updating the owner. Trying to hack around it, for example by adding the owner_id (or owner) field into custom attributes, does nothing other than create a new custom attribute (leaving the actual owner unaffected).

@bikegriffith
Copy link

You can dip back into the REST API if you need to, for example:

contact = intercom.users.find(user_id='2605')
resp = requests.put('https://api.intercom.io/contacts/'+contact.id,
        json={'owner_id': new_owner_id},
        headers={
            'Authorization': 'Bearer <<your token here>>,
            }
        )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants