Update a package
/management/packages/{id}/manage Delete and money: deletes, credits, servers or panel settings. Scopes
A reseller changes only packages they built. warnings names the packages resellers built from this one that now give more than it (a panel operator's change).
Path parameters
idstring (uuid)requiredA UUID string identifying this Package.
Body
namestringdescriptionstringcan 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
200 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-onlywarningsobject[]requiredPackages resellers built from this one that the change leaves giving more than it.
packageobjectrequiredA package a reseller built from this one.
idstring (uuid)requirednamestringrequired
built_bystringrequiredcan be nullIts reseller.
fieldstringrequiredWhat it now gives more of.
messagestringrequired
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.
- 404 Nothing with this id, or nothing the account can see.
- 429 Slow down: wait the seconds in the Retry-After header, then try again.