Issue with Update DID

Hello,

I am trying to use the /api/v2/telephony/providers/edges/dids/{didId} to update the call route for phone numbers. Unfortunately, we are having issues with the "field name"

here's my input

{
"name": "DID Number",
"description": "",
"version": 22,
"dateCreated": "",
"dateModified": "",
"modifiedBy": "",
"createdBy": "",
"modifiedByApp": "",
"createdByApp": "",
"phoneNumber": "",
"didPool": {
"id": "didPool",
"name": "bd1a431c-271c-49fe-803f-b2530aadfead",
"selfUri": ""
},
"owner": {
"id": "6e48fd6d-50d8-4ddf-ac0d-be0825f5d365",
"name": "Inbound",
"selfUri": ""
},
"ownerType": "IVR_CONFIG"
}

and my response:

{
"message": "Field 'name' is required and cannot be empty.",
"code": "bad.request",
"status": 400,
"contextId": "b8075eca-4d04-4ab1-915d-42f25b85fec8",
"details": [],
"errors": []
}

Any thoughts?

Hello,

If you are trying to change the association between a number (DID) and a Call Route (owner type - IVR_CONFIG), you must do this updating the corresponding IVR Configs, using the Architect API.

You can get an IVR Config using GET /api/v2/architect/ivrs/{ivrId}

And you can then update it using PUT /api/v2/architect/ivrs/{ivrId}.
You can add or remove numbers from the dnis array.
"name" attribute is mandatory.
You need to copy the current openHoursFlow, closedHoursFlow, holidayHoursFlow and scheduleGroup - I think the PUT does a reset (to empty/null) if these attributes are not specified

Regards,

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.