cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
841
Views
0
Helpful
2
Replies

Data Exception with POST

mike curtis
Level 1
Level 1

Hello i am attempting to submitted data by by using POST instead of PUT. however CUC is coming back with the following error.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><ErrorDetails><errors><code>DATA_EXCEPTION</code><message>Missing parameter label.dtmfaccessid.dtmfaccessid</message></errors></ErrorDetails>

the REST URL is

https://www.example.com/vmrest/users/044e4cb8-09a5-4a0a-b0e9-30304fa46fd8/alternateextensions

the XML i am using is listed below.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<AlternateExtensions total="3">

    <AlternateExtension>

        <URI>/vmrest/users/f4692b12-1eec-48f6-8e2e-9ae5bb3c8a33/alternateextensions/d0f05c5e-7e07-4e6f-8d5c-4b7d58d7e0ec</URI>

        <IdIndex>0</IdIndex>

        <DtmfAccessId>4902</DtmfAccessId>

        <LocationObjectId>246e7256-2472-4fba-9b4c-3d248e2ad1fe</LocationObjectId>

        <LocationURI>/vmrest/locations/connectionlocations/246e7256-2472-4fba-9b4c-3d248e2ad1fe</LocationURI>

        <ObjectId>d0f05c5e-7e07-4e6f-8d5c-4b7d58d7e0ec</ObjectId>

        <PartitionObjectId>27f31f26-d75d-44d4-b640-acee2c4504f4</PartitionObjectId>

        <PartitionURI>/vmrest/partitions/27f31f26-d75d-44d4-b640-acee2c4504f4</PartitionURI>

    </AlternateExtension>

    <AlternateExtension>

        <URI>/vmrest/users/f4692b12-1eec-48f6-8e2e-9ae5bb3c8a33/alternateextensions/11ce51df-c4fb-4973-8b95-14f4f01ce8b4</URI>

        <IdIndex>1</IdIndex>

        <DtmfAccessId>123456789</DtmfAccessId>

        <LocationObjectId>246e7256-2472-4fba-9b4c-3d248e2ad1fe</LocationObjectId>

        <LocationURI>/vmrest/locations/connectionlocations/246e7256-2472-4fba-9b4c-3d248e2ad1fe</LocationURI>

        <ObjectId>11ce51df-c4fb-4973-8b95-14f4f01ce8b4</ObjectId>

        <PartitionObjectId>27f31f26-d75d-44d4-b640-acee2c4504f4</PartitionObjectId>

        <PartitionURI>/vmrest/partitions/27f31f26-d75d-44d4-b640-acee2c4504f4</PartitionURI>

        <AlternateExtensionAdvancedURI>/vmrest/alternateextensionadvanceds/99b3a486-ccd4-4fb6-9063-f0280d1b2367</AlternateExtensionAdvancedURI>

    </AlternateExtension>

    <AlternateExtension>

        <URI>/vmrest/users/f4692b12-1eec-48f6-8e2e-9ae5bb3c8a33/alternateextensions/0a073e8b-b38d-4af6-a139-2b8daeb33779</URI>

        <IdIndex>2</IdIndex>

        <DtmfAccessId>2222222224</DtmfAccessId>

        <LocationObjectId>246e7256-2472-4fba-9b4c-3d248e2ad1fe</LocationObjectId>

        <LocationURI>/vmrest/locations/connectionlocations/246e7256-2472-4fba-9b4c-3d248e2ad1fe</LocationURI>

        <ObjectId>0a073e8b-b38d-4af6-a139-2b8daeb33779</ObjectId>

        <PartitionObjectId>d2c69735-651a-4225-a55e-97498478ed85</PartitionObjectId>

        <PartitionURI>/vmrest/partitions/d2c69735-651a-4225-a55e-97498478ed85</PartitionURI>

        <AlternateExtensionAdvancedURI>/vmrest/alternateextensionadvanceds/be89737e-42c3-40f2-bb6e-3fe868a676d3</AlternateExtensionAdvancedURI>

    </AlternateExtension>

</AlternateExtensions>

1 Accepted Solution

Accepted Solutions

0 is the primary extension - Admin-defined alternate extensions utilize the range of 1-10.  User-defined alternate extensions utilize the range of 11-20.

View solution in original post

2 Replies 2

mike curtis
Level 1
Level 1

i found if i do this as a PUT the request will work.

but i ran into a new issue if i send a PUT to the URL below with the example XML CUC sets the primary extension to the DtmfAccessId listed below.

if i am trying to add an alternate extension should i be setting it to index 1 or higher?

https://www.example.com/vmrest/users/127920d5-bc49-4449-8a00-ef5152e1ec48/alternateextensions/b564e833-ecf7-41cd-92be-6f9d15f53c83

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<ns2:AlternateExtension xmlns:ns2="AlternateExtensions">

    <URI>/vmrest/users/127920d5-bc49-4449-8a00-ef5152e1ec48/alternateextensions/b564e833-ecf7-41cd-92be-6f9d15f53c83</URI>

    <IdIndex>0</IdIndex>

    <DtmfAccessId>12903</DtmfAccessId>

    <PartitionObjectId>27f31f26-d75d-44d4-b640-acee2c4504f4</PartitionObjectId>

    <PartitionURI>/vmrest/partitions/27f31f26-d75d-44d4-b640-acee2c4504f4</PartitionURI>

</ns2:AlternateExtension>

0 is the primary extension - Admin-defined alternate extensions utilize the range of 1-10.  User-defined alternate extensions utilize the range of 11-20.