Skip to content

User - ISPs

Base URL: https://your-domain.com

Admin endpoints for managing ISP organizations. All endpoints require super admin authentication.


Fetch All ISPs

Retrieve all ISP organizations in the system.

PropertyValue
EndpointFetch All ISPs
MethodGET
URL/api/v1/isps
AuthenticationBearer Token

Request Headers:

HeaderValueRequired
Acceptapplication/jsonYes
AuthorizationBearer your-auth-tokenYes

Success Response (200 OK):

json
{
    "success": true,
    "data": [
        {
            "id": 1,
            "name": "Main ISP",
            "branch_count": 3,
            "subscriber_count": 500,
            "status": "active"
        }
    ]
}

Fetch ISP

Retrieve details of a specific ISP.

PropertyValue
EndpointFetch ISP
MethodGET
URL/api/v1/isps/{id}
AuthenticationBearer Token

Success Response (200 OK):

json
{
    "success": true,
    "data": {
        "id": 1,
        "name": "Main ISP",
        "address": "123 ISP Street",
        "phone": "01712345678",
        "branch_count": 3,
        "subscriber_count": 500
    }
}

Create ISP

Create a new ISP organization.

PropertyValue
EndpointCreate ISP
MethodPOST
URL/api/v1/isps
AuthenticationBearer Token

Request Body:

json
{
    "user_id": 1,
    "name": "New ISP",
    "address": "456 ISP Street"
}

Success Response (201 Created):

json
{
    "success": true,
    "message": "ISP created successfully",
    "data": {
        "id": 2
    }
}

Update ISP

Update an existing ISP.

PropertyValue
EndpointUpdate ISP
MethodPUT
URL/api/v1/isps/{id}
AuthenticationBearer Token

Request Body:

json
{
    "name": "Updated ISP"
}

Success Response (200 OK):

json
{
    "success": true,
    "message": "ISP updated successfully"
}

Delete ISP

Delete an ISP from the system.

PropertyValue
EndpointDelete ISP
MethodDELETE
URL/api/v1/isps/{id}
AuthenticationBearer Token

Success Response (200 OK):

json
{
    "success": true,
    "message": "ISP deleted successfully"
}

www.onezeroart.com