User Tools

Site Tools


api:iptv:stbwhitelistadd

API : TV : Whitelist add

Introduction

This request is used to add new STBs to the whitelist.

Request

URL https://api.telecomx.dk/tv/whitelist
Method POST
Access level ADMIN
Body macs Array List of MAC addresses for STBs to add to the whitelist.
warrentyDate Date Date of purchase.
invoiceNumber String Invoice number.

Query example

{
  macs: [
    '12:34:56:78:90:12',
    '45:67:89:02:45:67',
    '56:87:23:22:22:11'
  ],
  warrentyDate: '2016-01-01T00:00:00.000Z',
  invoiceNumber: '6573546'
}

Response

JSON object
success Boolean True on success.

Example

{
  success: true
}

Errors

Error code Message Description
422 warrentyDate Date is invalid
404 stbs STBs not found
409 stbs One or more STB macs already exists
403 access_denied Insufficient access level
500 internal_error <Unspecified>
api/iptv/stbwhitelistadd.txt · Last modified: 2022/02/15 10:48 by Per Møller

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki