Am using Postman
I can add one NAP using this POST
http://192.168.1.1:12358/configurations/config_2021-01-21/naps
With this in the body
{
“name”: “Customer_A”,
“sip_cfg”: {
“proxy_address”: “10.10.10.10”
},
“default_profile”: “Mitel”,
“sip_transport_servers”: [
“SIP_TS_WAN_5060”
],
“port_ranges”: [
“Host.pr_WAN0”
]
}
But I am struggling trying to discover the proper syntax to add two or more NAPs in one command
{
{
“name”: “Customer_B”,
“sip_cfg”: {
“proxy_address”: “10.10.10.11”
},
“default_profile”: “Mitel”,
“sip_transport_servers”: [
“SIP_TS_WAN_5060”
],
“port_ranges”: [
“Host.pr_WAN0”
]
},
{
“name”: “Customer_C”,
“sip_cfg”: {
“proxy_address”: “10.10.10.12”
},
“default_profile”: “Mitel”,
“sip_transport_servers”: [
“SIP_TS_WAN_5060”
],
“port_ranges”: [
“Host.pr_WAN0”
]
}
}
Returns “message”: “Nap creation failed: Name can’t be blank.”
So tried this
{
“Customer_B”: {
“name”: “Customer_B”,
“sip_cfg”: {
“proxy_address”: “10.10.10.11”
},
“default_profile”: “Mitel”,
“sip_transport_servers”: [
“SIP_TS_WAN_5060”
],
“port_ranges”: [
“Host.pr_WAN0”
]
},
“Customer_C”: {
“name”: “Customer_C”,
“sip_cfg”: {
“proxy_address”: “10.10.10.12”
},
“default_profile”: “Mitel”,
“sip_transport_servers”: [
“SIP_TS_WAN_5060”
],
“port_ranges”: [
“Host.pr_WAN0”
]
}
}
Same result
“message”: “Nap creation failed: Name can’t be blank.”
Hoping someone can point me in the right direction
Thank you very much