Create a Device

Request that a new device is created in the subscriber database and is initialized with the information provided. A unique device OID is created and returned. If supplied, the ExternalId must be unique within the subscriber database. The type of device created depends on the MDC type of the Attr field supplied. A specific type of device must be specified. After it is created, the type of the device cannot be changed.

REST Example

In this example, a custom MDC (TrainingDeviceObjectExtension) which extends the MtxMobileDeviceExtension MDC, includes a custom field, TAC_Code.
URL
POST http://host:port/rsgateway/data/v3/device
Request XML
<MtxRequestDeviceCreate>
      <ExternalId>1234567890</ExternalId>
      <DeviceType>0</DeviceType>
      <Attr>
        <TrainingDeviceObjectExtension>
          <TAC_Code>PM123</TAC_Code>
          <Imsi>1234567890</Imsi>
          <AccessNumberArray>
            <value>1234567890</value>
          </AccessNumberArray>
        </TrainingDeviceObjectExtension>
      </Attr>
</MtxRequestDeviceCreate>
Response
<MtxResponseCreate>
    <ObjectId>0-2-5-1</ObjectId>
    <RouteId>1</RouteId>
    <Result>0</Result>
    <ResultText>OK</ResultText>
</MtxResponseCreate>