Remove multiple phone numbers from the existing list
DELETEhttps://{ourserver.com}/api/resellers/removeNumbers
This request allows to delete specific numbers from the list of your current numbers in bulk.
Parameters
header1
| Name | Type | Description |
|---|---|---|
Authorization* | string | see more here |
query1
| Name | Type | Description |
|---|---|---|
test | string | Optional field for the request body of Reseller API v2. Allowed values are While being assigned, While being assigned, Can be passed as query parameter (for GET) or as a field in request's body (for POST). Both ways are equivalent, but using them simultaneously is not recommended. Enum: test1test2 |
Request Body
Content-Type
application/jsonSchema
schemaobject
idsstring[]
numbersstring[]
One Of
[0]object
[1]object
Responses
200Onlinesim server response
Content-Type
application/jsonSchema
schemaobject
responseoneOf1, if request was successful, otherwise error message will come up
Examples
Example response from Onlinesim server when numbers were successfuly removed from the list
{
"response": "1"
}Example response from Onlinesim server when no numbers were removed from the list (e.g. because they were previously deleted ornot found on the account)
{
"response": "0"
}Incorrect key passed
[
{
"response": "ERROR_WRONG_KEY"
}
]400Missing or incorred parameters (request must contain parameters in it's body with proper names as described in documentation)
Content-Type
application/jsonSchema
schemaobject
responsestringRequired
Enum:ERROR_PARAMSmessagestringRequired
401Unauthorized. The request is missing or uses an invalid API key. Some endpoints may return a 200 status with an ERROR_WRONG_KEY message instead of 401 — check the response body
Content-Type
text/plainSchema
schemastring
Enum:Unauthorized403Forbidden. The request was understood but refused due to insufficient permissions
Content-Type
application/jsonSchema
schemaobject
errorobjectRequired
messagestringRequired
Enum:ERROR_DISABLEDERROR_IPERROR_RENTdetailsobject[]Required
Code Samples
Generating examples...