Creating new extension

  • 1
  • Question
  • Updated 1 month ago
  • (Edited)
 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

Photo of System Ext. 101

System Ext. 101

  • 90 Points 75 badge 2x thumb

Posted 2 months ago

  • 1
Photo of Tyler Long

Tyler Long, Official Rep

  • 7,802 Points 5k badge 2x thumb
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?