Assign Number to a SIP Connection
Assign number to a SIP connection
POST https://api.opentact.org/rest/sip/connection/UUID/tnlease
This api is used to assign the number for a SIP Connection.
Query Parameters
Name
Type
Description
UUID*
String
This field contains the UUID of the sip connection which the user needs to remove the number
UUID*
String
This field contains the uuid of the number that the user going to add to the sip connection.
REMOVE*
String
This field is used to ADD the number from the sip connection. it should be used in the below format.
"ADD": [ "UUID", "UUID", "UUID" ]
Headers
Name
Type
Description
Authorization*
String
JWT_Token
Content-Type
String
Application/json
{
"success": true,
"payload": [
"b243f4a2-1bf0-4173-b822-0426486edf3a",
"b243f4a2-1bf0-4173-b822-0426486edf3b"
]
}{
"success": false,
"message": "string",
"status": 500,
"meta": "string",
"fields": {
"params.to": {
"message": "invalid integer number",
"value": "qwerty123456789"
}
}
}{
"success": false,
"message": "string",
"status": 500,
"meta": "string",
"fields": {
"params.to": {
"message": "invalid integer number",
"value": "qwerty123456789"
}
}
}{
"success": false,
"message": "string",
"status": 500,
"meta": "string",
"fields": {
"params.to": {
"message": "invalid integer number",
"value": "qwerty123456789"
}
}
}Last updated
Was this helpful?