question

Naveen Mula avatar image
Naveen Mula asked Anirban Sen Chowdhary answered

Create Extension and role for user with API

I am trying to create extension for the user with passing roles in the json body. But i am getting error saying roles parameter is not valid. I am using string and role id. Can you let us know how this API works. Wihtout passing roles i am able to create extension

extension api
1 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Phong Vu avatar image
Phong Vu answered

First of all, the roles param is optional and I believe the default value is the "Standard User". The roles param is an array of object which has the "id" and "uri", which are internal values. For some reason we have no public API to query roles so it seems you can't define the roles param when creating an extension using API.

Please send a request to devsupport@ringcentral.com to ask for accessing the read roles API. Please mention me on your request to I can talk to the support engineer.

+ Phong Vu

1 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Anirban Sen Chowdhary avatar image
Anirban Sen Chowdhary answered

Just to add, as you can go through the API documentation here

https://developers.ringcentral.com/api-reference/Extensions/createExtension

As already mentioned in previous answer, roles param is optional so that's the reason you are able to create extension without issue. Please go the document carefully, you can get details of the API and each parameter description. You can even test you API here.

1 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.