When modifying contacts via API, gets "Operation is not allowd"
Hi all,
When I try do modify contact's metadata with API "[PUT] /contacts/{contactId} — Update contacts by Id. "
I can modify my own contact, but I cannot modify others, even though I am admin and account owner.
The whole response texts are "
{
}
"
BTW, I used the permanent token for calling API.
Is this due to license limitation? or is there any other settings which I have to adjust?
Thank you, in advance.
-
Spot On! 👍 Innovative Approach 💡 Stellar Advice 💪
Hi! It looks like the reason is that you can only modify your own contact info through PUT call (this is the info from Profile). If you want to use your admin rights to modify user's firstl / last name, for instance, I'd suggest to try PUT call to /users endpoint (here).
However, please note that your permanent access token won't work, as the method requires scope amReadWriteUser, which can be only added at the OAuth2 step 1 (please see here).
Pavel M Community Team at Wrike 💡Erfahren Sie mehr über Wrikes leistungsstarke Funktionen und lernen Sie Anwendungsbeispiele kennen
-
Spot On! 👍 Innovative Approach 💡 Stellar Advice 💪
Hi, thank you for your swift help.
I have another question about this.
I'd like to update "metadata" for a user. I don't think it possible with /users endpoint. is it possible?
-
Spot On! 👍 Innovative Approach 💡 Stellar Advice 💪
There is no parameter listed in our documentation, however you should be able to use it just like in contacts (it's hidden), could you please check that?
Pavel M Community Team at Wrike 💡Erfahren Sie mehr über Wrikes leistungsstarke Funktionen und lernen Sie Anwendungsbeispiele kennen
-
Spot On! 👍 Innovative Approach 💡 Stellar Advice 💪
Hello, I have similar problem. I'm trying to create a timelog for task, that assigned to me, in project, shared with team. Here is URL I use
https://www.wrike.com/oauth2/authorize?client_id=%s&redirect_uri=%s&response_type=code&scope=Default,wsReadOnly,wsReadWrite
And URL i use from docs
/api/v3/tasks/%s/timelogs
I got similar error: Operation is not allowed due insufficient user rights or account license limitations.
Why it can happen? -
Spot On! 👍 Innovative Approach 💡 Stellar Advice 💪
Hi Serg! Thanks for your question.
In your case it is happening because Timelog and Time tracking functionality are available starting from the Business subscription plan. As I can see you're trialing the Professional version. Hence, you get an error in the response. Please let me know if you'd like to set up a Business plan trial, I'll gladly assist you here :)
Serge S Community Team at Wrike 💡Erfahren Sie mehr über Wrikes leistungsstarke Funktionen und lernen Sie Anwendungsbeispiele kennen
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
5 Kommentare