Teyuto
HomeLink
Multiple Menus
  • Link1
  • Link2
HomeLink
Multiple Menus
  • Link1
  • Link2
  1. Packages
  • Introduction
  • Sessions
    • Generate session
      POST
    • Delete session
      DELETE
  • Videos
    • Create video
      POST
    • Edit video
      PATCH
    • Get video
      GET
    • Delete video
      DELETE
    • Get list of videos
      GET
    • Add cover
      POST
    • Delete cover
      DELETE
    • Delete caption
      DELETE
    • Add caption
      POST
    • Get TUS' parameters for direct upload
      GET
    • Get caption
      GET
  • Live
    • Create live
      POST
    • Edit live
      PATCH
    • Get live
      GET
    • Delete live
      DELETE
    • Get list of live
      GET
    • Add cover
      POST
    • Delete cover
      DELETE
  • Live-imitations
    • Create live-imitations
    • Edit live-imitation
    • Get live imitation
    • Delete live imitation
    • Get list of live imitations
    • Add cover
    • Delete cover
  • Collections
    • Get list of collections
    • Create collection
    • Delete collection
    • Add cover
    • Get collection
    • Add cover vertical
    • Add collection background
    • Add collection logo title
    • Delete cover
    • Delete cover vertical
    • Delete collection background
    • Delete collection logo title
    • Edit collection
  • Packages
    • Get list of packages
      GET
    • Get packages
      GET
    • Add cover
      POST
    • Delete cover
      DELETE
    • Edit packages
      PATCH
    • Delete package
      DELETE
    • Create package
      POST
  • Contents
    • List of contents
    • Get content
    • List type of contents
  • Tags
    • Get tag
    • Edit tag
    • Delete tag
    • Get list of tags
    • Create tag
  • Users
    • Get list of users
    • Get user
    • Edit user
    • Add avatar
    • Delete user
    • Create user
  • Pages
    • List of pages
    • Get specific page
  • Channels
    • Channel settings
  • Customfields
    • Users customfields
    • Create users customfields
    • Edit users customfields
    • Delete users customfields
    • Create collections customfields
    • Collections customfields
    • Edit collections customfields
    • Delete collections customfields
    • Create videos customfields
    • Videos customfields
    • Delete videos customfields
    • Edit videos customfields
  • Analytics
    • Analytics collections
    • Analytics collection
    • Analytics videos
    • Analytics video
    • General analytics
    • Analytics users
    • Analytics user
  • Events
    • Get list of events
    • Delete event
    • Create event
  • Acl
    • Set acl
    • Remove acl
  • Playlists
    • Get Playlist
    • Create Playlist
    • Edit Playlist
    • Delete Playlist
  • Restreams
    • Create Restream
    • Edit Restream
    • Get Restream
    • Get list of Restreams
    • Delete Restream
  1. Packages

Create package

POST
/packages
Create a packages

Request

Authorization
Add parameter in header
Authorization
Example:
Authorization: ********************
Header Params

Body Params application/x-www-form-urlencoded

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/packages' \
--header 'Accept: application/json' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization;' \
--data-urlencode 'title=Title' \
--data-urlencode 'description=Text' \
--data-urlencode 'privacy=public' \
--data-urlencode 'collection_ids[]=5345' \
--data-urlencode 'date_order=2024-11-02 15:00:00' \
--data-urlencode 'category_ids[]=55698' \
--data-urlencode 'seo_title=title' \
--data-urlencode 'seo_description=description' \
--data-urlencode 'full_description=full'

Responses

🟢200OK
application/json
Body

Example
{
  "status": "<string>",
  "packages": [
    {
      "tags": "<string>",
      "title": "<string>",
      "description": "<string>",
      "id": "<string>",
      "display_name": "<string>",
      "full_description": "<string>",
      "privacy": "<string>",
      "img_preview": "<string>",
      "img_preview_vertical": "<string>",
      "img_preview_background": "<string>",
      "img_preview_logo_title": "<string>",
      "total_live": "<string>",
      "total_videos": "<string>",
      "total_ondemand": "<string>",
      "category": "<string>",
      "trailer": "<string>",
      "views": "<string>",
      "show_views": "<string>",
      "likes_tot": "<string>",
      "show_likes": "<string>",
      "subtitles": "<string>",
      "on_sale": "<string>",
      "json_price": "<string>",
      "channel": "<string>",
      "access": "<string>",
      "channel_display_name": "<string>",
      "saved": "<string>",
      "geoblocking": "<string>",
      "android_products": "<string>",
      "ios_products": "<string>",
      "directors": "<string>",
      "actors": "<string>",
      "age_restriction": "<string>",
      "original_language": "<string>",
      "customfields": "<string>",
      "full_original_language": "<string>",
      "year": "<string>",
      "next_video_play": "<string>",
      "seo_title": "<string>",
      "seo_description": "<string>",
      "duration": "<string>",
      "show_ads_on_free": "<string>"
    },
    {
      "tags": "<string>",
      "title": "<string>",
      "description": "<string>",
      "id": "<string>",
      "display_name": "<string>",
      "full_description": "<string>",
      "privacy": "<string>",
      "img_preview": "<string>",
      "img_preview_vertical": "<string>",
      "img_preview_background": "<string>",
      "img_preview_logo_title": "<string>",
      "total_live": "<string>",
      "total_videos": "<string>",
      "total_ondemand": "<string>",
      "category": "<string>",
      "trailer": "<string>",
      "views": "<string>",
      "show_views": "<string>",
      "likes_tot": "<string>",
      "show_likes": "<string>",
      "subtitles": "<string>",
      "on_sale": "<string>",
      "json_price": "<string>",
      "channel": "<string>",
      "access": "<string>",
      "channel_display_name": "<string>",
      "saved": "<string>",
      "geoblocking": "<string>",
      "android_products": "<string>",
      "ios_products": "<string>",
      "directors": "<string>",
      "actors": "<string>",
      "age_restriction": "<string>",
      "original_language": "<string>",
      "customfields": "<string>",
      "full_original_language": "<string>",
      "year": "<string>",
      "next_video_play": "<string>",
      "seo_title": "<string>",
      "seo_description": "<string>",
      "duration": "<string>",
      "show_ads_on_free": "<string>"
    }
  ]
}
🟠401Unauthorized
🟠404Not Found
Modified at 2024-09-04 17:30:44
Previous
Delete package
Next
List of contents
Built with