On this page

    1. Home
    2. API
    3. API Reference
    4. Device
    5. Set Device Provide Mode

    Set Device Provide Mode

    This endpoint allows you to update how a specific device participates in the network. You can restrict its usage to your own network, share it with friends and family, or make it available to the public URnetwork.


    POST /device/set-provide

    Update the active provide mode for a client device.

    Request

    POST /device/set-provide

    Headers:

    {
      "Host": "api.bringyour.com",
      "Content-Type": "application/json",
      "Authorization": "Bearer YOUR_JWT_TOKEN"
    }

    Body:

    {
      "client_id": "string",
      "provide_mode": 0
    }

    Fields

    FieldTypeDescription
    client_idstringRequired. The unique UDID of the client device.
    provide_modeintegerRequired. The target Provision Mode value.

    Response

    200 Success

    Status: 200 OK

    Content-Type: application/json

    {
      "provide_mode": 0,
      "error": {
        "message": "string"
      }
    }

    Fields

    FieldTypeDescription
    provide_modeintegerThe newly applied provision mode.
    errorobjectReturned if the update failed (can be null).
    error.messagestringDetails on why the mode could not be updated.

    Enums

    Provision Mode

    ValueTitleDescription
    0DefaultUse system-wide defaults.
    1NoneDevice is disabled from providing bandwidth.
    2NetworkOnly provides bandwidth to your private network.
    3Friends & FamilyProvides to your designated contact circles.
    4PublicProvides bandwidth to the global URnetwork for rewards.
    5StreamOptimized for high-throughput streaming traffic.

    Example

    HTTP Request

    POST /device/set-provide HTTP/1.1
    Host: api.bringyour.com
    Content-Type: application/json
    Authorization: Bearer YOUR_JWT_TOKEN
     
    {
      "client_id": "c73040c1-0000-0000-0000-000000000000",
      "provide_mode": 4
    }

    Successful HTTP Response

    {
      "provide_mode": 4,
      "error": null
    }


    Powered by Sudoc v2.5.0
    Hide table of contents