Create/Update multiple call forward rules with link_id
Create/Update multiple call forward rules
- This endpoint is used by Link management system
 - If there is already forward rule with same 
forward_numberit will be updated 
- If there is already forward rule with same 
 - Available forward number patterns:
\d+- digits only^laskomex:\d+$- for devices with hybrid adapter^vizit:\d+$- another number format for devices with hybrid adapter^sip:([0-9A-Za-z+\-_]*@)((\b((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?(?:\:\d{1,5})?)(\.|$)){4}\b)|([0-9]*[A-Za-z+\-_]+[0-9]*)((\.([0-9]*[A-Za-z+\-_]+[0-9]*))+\b))$- full SIP URI, for example,sip:[email protected]orsip:[email protected]^sip:(\b((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?(?:\:\d{1,5})?)(\.|$)){4}\b)$- SIP URI without name and host, for examplesip:192.168.1.2
 
- application/json
 
Request Body required
- list_items object[]
List of ForwardRules
 
Responses
- 200
 - 400
 - 401
 
OK
- application/json
 
- Schema
 - Example (from schema)
 - Result list
 
Schema
result object[]
List of operation statuses
link_id int64Logical address of the forward
success booleanOperation status
extended_info stringPossible values: [
created,updated,deleted,entity_not_found]Operation information
{
  "result": [
    {
      "link_id": 101,
      "success": true,
      "extended_info": "created"
    }
  ]
}
{
  "result": [
    {
      "link_id": 101,
      "success": true,
      "extended_info": "created"
    }
  ]
}
- Missed json body or wrong param.
Response sample:
"error": "Wrong JSON body" - Required field is not provided.
Response sample:where
"error": "Wrong JSON body: no value for `param`"param- is a required field that was not provided - Field was of the wrong type.
Response sample:where
"error": "Wrong JSON body: value `param` was of the wrong type"param- is a field of the wrong type 
- application/json
 
- Schema
 - Example (from schema)
 - Base
 - Missed param
 - Wrong param type
 
Schema
- error string
Error message
 
{
  "error": true
}
{
  "error": "Wrong JSON body"
}
{
  "error": "Wrong JSON body: no value for `param`"
}
{
  "error": "Wrong JSON body: value `param` was of the wrong type"
}
Unauthorized request. Log In
- application/json
 
- Schema
 - Example (from schema)
 - Log In
 
Schema
- error string
Error message
 
{
  "error": "Log In"
}
{
  "error": "Log In"
}
Loading...