Create a package
/management/packages/manage Delete and money: deletes, credits, servers or panel settings. Scopes
Panel operators, and resellers whose group may build packages: a reseller's package uses only bouquets from the packages they sell, and may not give more for less than those.
Body
namestringrequireddescriptionstringcan be nullis_enabledbooleanis_trialbooleanTrial package: lines created from it are marked as trials.
credit_coststring (decimal)What a reseller pays, in credits, for a line on this package (new or extended). 0 = free. A reseller's own price, when one is set, is used instead.
duration_valueintegerDuration value (number of hours or days)
duration_typestringhours- Hoursdays- Daysweeks- Weeksmonths- Months
One of:
"hours""days""weeks""months"max_connectionsintegerSimultaneous connections granted to lines created from this package.
is_restreamerbooleanAuthorized-restream package: lines are marked as restreamers.
forced_countriesstringComma-separated ISO country codes (e.g. FR,MA). Empty = no country restriction.
lock_to_ispbooleanLock the line to the ISP seen on its first connection.
forced_serverstring (uuid)can be nullForce lines to stream from this server instead of auto routing.
output_formatsstringComma-separated allowed delivery formats (hls, mpegts, rtmp). Empty = all.
allowed_groupsinteger[]Groups that can assign this package to line users
bouquetsstring (uuid)[]Bouquets included in this package
parent_packagesstring (uuid)[]Parent packages this package derives bouquets from (for super resellers)
Response
201 OK
idstring (uuid)requiredread-onlynamestringrequireddescriptionstringcan be nullis_enabledbooleanis_trialbooleanTrial package: lines created from it are marked as trials.
credit_coststring (decimal)What a reseller pays, in credits, for a line on this package (new or extended). 0 = free. A reseller's own price, when one is set, is used instead.
duration_valueintegerDuration value (number of hours or days)
duration_typestringhours- Hoursdays- Daysweeks- Weeksmonths- Months
One of:
"hours""days""weeks""months"max_connectionsintegerSimultaneous connections granted to lines created from this package.
is_restreamerbooleanAuthorized-restream package: lines are marked as restreamers.
forced_countriesstringComma-separated ISO country codes (e.g. FR,MA). Empty = no country restriction.
lock_to_ispbooleanLock the line to the ISP seen on its first connection.
forced_serverstring (uuid)can be nullForce lines to stream from this server instead of auto routing.
forced_server_namestringrequiredread-onlyoutput_formatsstringComma-separated allowed delivery formats (hls, mpegts, rtmp). Empty = all.
allowed_groupsinteger[]Groups that can assign this package to line users
allowed_groups_dataobject[]requiredread-onlyidintegerrequirednamestringrequired
bouquetsstring (uuid)[]Bouquets included in this package
bouquets_dataobject[]requiredread-onlyidstring (uuid)requiredread-onlynamestringrequireddescriptionstringcan be nullis_activebooleanorderintegerDisplay order (lowest first). Ties fall back to name.
streams_countintegerrequiredread-onlymovies_countintegerrequiredread-onlyseries_countintegerrequiredread-onlycreated_bystring (uuid)requiredread-onlycan be nullcreated_by_usernamestringrequiredread-onlycreated_atstring (date-time)requiredread-onlyupdated_atstring (date-time)requiredread-only
bouquet_idsstring[]requiredread-onlymy_pricestringrequiredread-onlycan be nullmy_price_sourcestringrequiredread-onlycan be nullparent_packagesstring (uuid)[]Parent packages this package derives bouquets from (for super resellers)
parent_packages_dataobject[]requiredread-onlyidstring (uuid)requirednamestringrequired
created_bystring (uuid)requiredread-onlycan be nullUser who created this package
created_by_usernamestringrequiredread-onlycreated_atstring (date-time)requiredread-onlyupdated_atstring (date-time)requiredread-only
Errors
- 400 Something sent is not valid. Each field that is wrong is named with what is wrong.
- 401 No credential, or one that is wrong, expired or revoked.
- 403 The account, or the key's or app's scopes, may not do this.
- 429 Slow down: wait the seconds in the Retry-After header, then try again.