Skip to main content

Set network status

PATCH 

/v1/admin/network/:network_id

Set network status

This endpoint allows an admin to update the status of a network by either blocking or unblocking it. It requires the network ID as a parameter and the new status in the request body. Admin privileges are required to access this functionality. The endpoint responds with a success message upon successful status change, or returns errors for unauthorized access, non-existent networks, unchanged statuses, or unexpected server issues.

Request

Path Parameters

    network_id int32required

    Network id

Body

required
    network_status booleanrequired

Responses

Network status changed

Schema

    string

Loading...