question

system-ext-10111697 avatar image
system-ext-10111697 asked ·

Creating new extension

 I am using the C# API from GitHUB for development.  Trying to createa an extension in the sandbox as follows:
  RestClient rc = new RestClient(ClientID, ClientSecret, false);
  RingCentral.AccountPath AccountPath = RestClient.Restapi().Account();
  ExtensionCreationResponse ExtensionCreationResponse = await     AccountPath.Extension().Post(ExtensionCreationRequest);
I get: Error message: "Resource not found".   What am I missing?
Here is the ExtensionCreationRequest being passed in:                             
-                             ExtensionCreationRequest            {RingCentral.ExtensionCreationRequest}               RingCentral.ExtensionCreationRequest
-                             contact {RingCentral.ContactInfoUpdateRequest}               RingCentral.ContactInfoUpdateRequest
                              businessAddress null         RingCentral.ContactBusinessAddressInfo
                              businessPhone   null         string
                              company             null         string
                              department         null         string
                              email     " anoosh@baysleepclinic.com"     string
                              emailAsLoginName          null         bool?
                              firstName            "Anoosh"             string
                              jobTitle null         string
                              lastName             "Mostowfipour"               string
                              pronouncedName            null         RingCentral.PronouncedNameInfo
                              businessAddress null         RingCentral.ContactBusinessAddressInfo
                              businessPhone   null         string
                              company             null         string
                              department         null         string
                              email     " anoosh@baysleepclinic.com"     string
                              emailAsLoginName          null         bool?
                              firstName            "Andrew"             string
                              jobTitle null         string
                              lastName             "Test"    string
                              pronouncedName            null         RingCentral.PronouncedNameInfo
                              extensionNumber             "102"     string
                              hidden   null         bool?
                              password             "XYZabc4"           string
                              references           null         RingCentral.ReferenceInfo[]
                              regionalSettings null         RingCentral.RegionalSettings
                              roles      null         RingCentral.Roles[]
                              setupWizardState             null         string
                              status    "Enabled"            string
                              statusInfo            null         RingCentral.ExtensionStatusInfo
                              type       "User"   string

General Topic
1 |1000 characters needed characters left characters exceeded

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

1 Answer

· Write an Answer
Tyler Liu avatar image
Tyler Liu answered ·
I cannot figure out the issue. Could you please the sample request here:  https://developer.ringcentral.com/api-docs/latest/index.html#!#RefCreateExtension and compare it with yours? Did you specify the email address?
1 |1000 characters needed characters left characters exceeded

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.