User Tools

Site Tools


api:iptv:drm:profile:update

API : IPTV : DRM Profile : Update

Introduction

This request will update an existing DRM account.

Request

URL https://api.telecomx.dk/iptv/drm/ACCOUNT_ID/profile/PROFILE_ID
Method POST
Access level MANAGER or OWNER if customer has feature IPTVBUSINESS or IPTVPRIVATE
RESELLER if customer has IPTVBUSINESS or IPTVPRIVATE
ADMIN
Params ACCOUNT_ID The DRM account to create the profile for
PROFILE_ID ID of the DRM profile
Body name String Profile name
audioLanguage String Preferred audio language
subtitleLanguage String Preferred subtitle language
useSdhSubtitles Boolean Use subtitles for hearing-impaired when available
streamingServices Array<String> List of streaming services enabled for this profile. Allowed values are NETFLIX, VIAPLAY.
channels Array<ObjectId> List of channels, which are visible for this profile.

Query example

{
   name: 'Dad',
   streamingServices: ['NETFLIX', 'VIAPLAY'],
   audioLanguage: 'dan',
   subtitleLanguage: 'dan',
   useSdhSubtitles: false,
   channels: [
     '1234567890ABCD1234567890',
     '8434567890ABCD1234567890'
  ]
}

Response

The newly created profile.

JSON object
_id ObjectId Unique ID
name String Profile name
drmAccount String Unique username/ID of the DRM account it belongs to.
audioLanguage String Preferred audio language
subtitleLanguage String Preferred subtitle language
useSdhSubtitles Boolean Use subtitles for hearing-impaired when available
streamingServices Array<String> List of streaming services enabled for this profile. Allowed values are NETFLIX, VIAPLAY.
channels Array<ObjectId> List of channels, which are visible for this profile.

Note that properties holding no value may be omitted from the object.

Example

{
 
   _id: '1234567890ABCD1234567890',
   name: 'Dad',
   streamingServices: ['NETFLIX', 'VIAPLAY'],
   audioLanguage: 'dan',
   subtitleLanguage: 'dan',
   useSdhSubtitles: false,
   channels: [
     '1234567890ABCD1234567890',
     '8434567890ABCD1234567890'
  ]
}

Errors

Error code Message Description
404 drmAccount DRM account not found
403 access_denied Insufficient access level
500 internal_error <Unspecified>
api/iptv/drm/profile/update.txt · Last modified: 2022/09/12 08:12 by Joakim Andersen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki