Description
I am trying to script out creating a user account and I’m getting stuck on enabling SMS (the option you find in Admin > Phone System Management > Users & Rooms > UserEmail > Policy). We have SMS enabled on the company so via the GUI I can just toggle SMS on. Below is the API I’m trying to run.
Error
Invoke-RestMethod : {“code”:400,“message”:“Could not modify SMS and International SMS at the same time”}
If I remove the “international_sms” setting from the policy block I instead get this error:
Invoke-RestMethod : {“code”:400,“message”:“International SMS is blocked by Admin.”}
Which App Type (OAuth / Chatbot / JWT / Webhook)?
JWT
Yes, that is what I’m using. In the web’s documentation it mentions the 400 errors I’m getting, I just can’t seem to find a way around it using the API. It is only the SMS I’m having trouble with. {policy: SMS: {enable: True, international_sms: false}}
Hi @anton.dobschensky
I was able to replicate this issue on my side.
I am trying to figure out how to fix this or how to come up with a workaround.
Can you please try and go to your account settings and enable SMS
If you meant in Company Info > Account Settings > Policy, then SMS is enabled there (Allow International SMS is not which is correct for our use). This doesn’t seem to default Users to enabled as we originally thought it might.
In Users & Rooms > [user] > Policy, I am able to toggle on SMS, so it does work through the web interface. We’re looking to not need to go in here to manually enable it on everyone we onboard.