Radio Products

Set the restrictions to all streams in product

Changed on
post/1/radios/{radio_product_id}/restrictions

Request

  • Base URL
    https://api.infomaniak.com
  • URL
    https://api.infomaniak.com/1/radios/{radio_product_id}/restrictions
  • Auth
    HTTP bearer

Path parameters

radio_product_idinteger required

Request body

country_liststring nullable

Specify the country list not allow accessing to the stream

ip_exclude_liststring nullable

Specify the ip list not allow accessing to the stream

ip_include_liststring nullable

Specify the ip list allow accessing to the stream

is_allow_countryboolean

Specify if the access restriction rules is enabled

is_hash_restrictionboolean

Specify if the access restriction rules is enabled

Example request

{
  "country_list": "IT,JP",
  "ip_exclude_list": "127.0.0.3,127.0.0.4",
  "ip_include_list": "127.0.0.1,127.0.0.2"
}

Response

OK

result'success' | 'error' | 'asynchronous' required

Result of the HTTP request

databoolean

Example response

{
  "result": "success"
}

Changes

    • info

      the request property's maxLength was increased from 512 to 65535

    • info

      the request property's maxLength was increased from 512 to 65535

    • info

      the request property's maxLength was increased from 255 to 512

    • info

      the request property's maxLength was increased from 255 to 512