Adding ranges to list

Description

Adds ranges to the IP list

Request code

OC_ADDIPRANGES

Request errors

Request code Code meaning Explanation
QE_LIMIT_EXCEEDED Limit exceeded Exceeded the maximum number of ranges in the list
QE_IPLIST_NOT_FOUND IPList not found IP list was not found

Request body

"Action":<OC_ADDIPRANGE>,
"Data":{
 "Token":<MyToken>,
 "List ID":<MyListID>,
 "Ranges":[
  {"Start":<MyRangeStart_1>,"End":<MyRangeEnd_1>},
  {"Start":<MyRangeStart_2>,"End":<MyRangeEnd_2>},
  ...
  {"Start":<MyRangeStart_N>,"End":<MyRangeEnd_N>}
 ]
}

Response body

"Status":"Success",
"Data":{
 "Range IDs":[
  <MyRangeID_1>,
  <MyRangeID_1>,
  ...
  <MyRangeID_N>
 ]
}

Additionally

  • If adding ranges is successful, server returns an array of identifiers of added ranges.