Closed pjxm closed 1 year ago
This should now work in 6.27.01
Ross
On Thu, Sep 22, 2022 at 6:43 AM pjxm @.***> wrote:
Hello,
I'm trying to use GAM to remove a feature on a calendar resource, but if the room has no other features than the one I'm removing, the command fails as GAM won't accept an empty string.
The command I'm using is: gam update resource 1234567890 features ""
And the error: ERROR: Missing argument: Expected
I've also tried single quotes, a quoted space, and nothing at all, none of which worked.
We're using GAM 6.27.00 after updating this morning, but I've not tried to do this before now so not sure if it ever worked. It does work fine if I'm removing one feature of multiple, though I do have to strip any leading whitespace from feature names.
Thanks!
— Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/306, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL22V5WEZIBFUSDRBZLV7RO7JANCNFSM6AAAAAAQTCHI7U . You are receiving this because you are subscribed to this thread.Message ID: @.***>
-- Ross Scroggs @.***
Hi Ross,
Thanks for the quick reply, I've updated. The command works and I get the response Resource Calendar: 1234567890, Updated
, but when I check the resource after, it still has all the same features. Is this just a limitation of the API?
Cheers, Patrick
Patrick,
I'm sure that when I tested yesterday the empty feature list cleared the features, but that's not what I'm seeing today. I'll keep checking.
Ross Scroggs @.***
On Sep 23, 2022, at 2:47 AM, pjxm @.***> wrote:
Hi Ross,
Thanks for the quick reply, I've updated. The command works and I get the response Resource Calendar: 1234567890, Updated, but when I check the resource after, it still has all the same features. Is this just a limitation of the API?
Cheers, Patrick
— Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/306#issuecomment-1256005194, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYLY4AGR5RGX6YWXVDQTV7V4CXANCNFSM6AAAAAAQTCHI7U. You are receiving this because you commented.
Interestingly, the Directory API explorer doesn't support the featureInstances field https://developers.google.com/admin-sdk/directory/reference/rest/v1/resources.calendars/patch
Hi Ross,
It doesn't seem to suggest featureInstances, but I've just had a play with it, and sending "featureInstances": [ "" ]
in the request body does clear the features. I tried that in GAM but it doesn't seem to like the brackets!
Patrick
Patrick,
That's the secret, I'm updating now.
Ross
On Fri, Sep 23, 2022 at 7:15 AM pjxm @.***> wrote:
Hi Ross,
It doesn't seem to suggest featureInstances, but I've just had a play with it, and sending "featureInstances": [ "" ] in the request body does clear the features. I tried that in GAM but it doesn't seem to like the brackets!
Patrick
— Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/306#issuecomment-1256272113, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL3NQEYNHONQFUSGOHDV7W3QLANCNFSM6AAAAAAQTCHI7U . You are receiving this because you commented.Message ID: @.***>
-- Ross Scroggs @.***
Patrick,
Try 6.27.03
Ross
Thanks Ross, that's working now!
Patrick McAuley Junior Systems Administrator Workplace & Collaboration
On Fri, 23 Sept 2022 at 16:54, Ross Scroggs @.***> wrote:
Patrick,
Try 6.27.03
Ross
— Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/306#issuecomment-1256386274, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM2LJSMVDGMNDS6KAG6PIE3V7XHCLANCNFSM6AAAAAAQTCHI7U . You are receiving this because you authored the thread.Message ID: @.***>
Hello,
I'm trying to use GAM to remove a feature on a calendar resource, but if the room has no other features than the one I'm removing, the command fails as GAM won't accept an empty string.
The command I'm using is:
gam update resource 1234567890 features ""
And the error:
ERROR: Missing argument: Expected <String>
I've also tried single quotes, a quoted space, and nothing at all, none of which worked.
We're using GAM 6.27.00 after updating this morning, but I've not tried to do this before now so not sure if it ever worked.
It does work fine if I'm removing one feature of multiple, though I do have to strip any leading whitespace from feature names.
Thanks!