openapi: 3.1.0 info: title: Gumlet Video Playlists API version: '1.4' description: Video Playlists operations of the Gumlet API. contact: name: Gumlet Support Team url: https://www.gumlet.com/contact/ email: support@gumlet.com termsOfService: https://www.gumlet.com/terms/ servers: - url: https://api.gumlet.com/v1 tags: - name: Video Playlists paths: /video/playlist: post: summary: Create Playlist description: Create new playlist inside video wprkspace operationId: create-playlist requestBody: content: application/json: schema: type: object required: - collection_id - title properties: collection_id: type: string title: type: string description: type: string examples: Request Example: value: title: Playlist-Title description: This is description for playlist. collection_id: '{{video-source-id}}' responses: '200': description: '200' content: application/json: examples: Result: value: id: 659693cadc46251d898930f2 collection_id: 646df1c9173a4a2fcac180b4 title: Playlist-Title description: This is description for playlist. player_config: preload: false autoplay: false disable_seek: false disable_player_controls: false powered_by_gumlet_overlay: false allow_drm_protected_videos: false loop: false player_color: '#6658ea' include_seo: true subtitle_enabled: false pixel_tags: {} logo_width: 100 logo_height: 100 dynamic_watermark: false watermark_font_size: 20 watermark_font_color: '#ff0000' watermark_bg_color: transparent watermark_interval: 1000 schema: type: object properties: id: type: string examples: - 659693cadc46251d898930f2 collection_id: type: string examples: - 646df1c9173a4a2fcac180b4 title: type: string examples: - Playlist-Title description: type: string examples: - This is description for playlist. player_config: type: object properties: preload: type: boolean default: true examples: - false autoplay: type: boolean default: true examples: - false disable_seek: type: boolean default: true examples: - false disable_player_controls: type: boolean default: true examples: - false powered_by_gumlet_overlay: type: boolean default: true examples: - false allow_drm_protected_videos: type: boolean default: true examples: - false loop: type: boolean default: true examples: - false player_color: type: string examples: - '#6658ea' include_seo: type: boolean default: true examples: - true subtitle_enabled: type: boolean default: true examples: - false pixel_tags: type: object properties: {} x-apidog-orders: [] logo_width: type: integer default: 0 examples: - 100 logo_height: type: integer default: 0 examples: - 100 dynamic_watermark: type: boolean default: true examples: - false watermark_font_size: type: integer default: 0 examples: - 20 watermark_font_color: type: string examples: - '#ff0000' watermark_bg_color: type: string examples: - transparent watermark_interval: type: integer default: 0 examples: - 1000 x-apidog-orders: - preload - autoplay - disable_seek - disable_player_controls - powered_by_gumlet_overlay - allow_drm_protected_videos - loop - player_color - include_seo - subtitle_enabled - pixel_tags - logo_width - logo_height - dynamic_watermark - watermark_font_size - watermark_font_color - watermark_bg_color - watermark_interval x-apidog-orders: - id - collection_id - title - description - player_config required: - id '400': description: Bad Request content: application/json: examples: Result: value: error: code: title_duplication message: A playlist with this title already exist. All playlist titles under a workspace should be unique. schema: type: object properties: error: type: object properties: code: type: string example: title_duplication message: type: string example: A playlist with this title already exist. All playlist titles under a workspace should be unique. required: - code - message required: - error '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '422': $ref: '#/components/responses/ValidationError' deprecated: false tags: - Video Playlists x-codeSamples: - label: TypeScript lang: TypeScript source: "import Gumlet from '@gumlet/nodejs-sdk';\n\nconst client = new Gumlet({\n apiKey: process.env['API_KEY'],\ \ // defaults to the API_KEY env var\n});\n\nconst videoPlaylist = await client.videoPlaylists.create({\n\ \ title: 'Playlist-Title',\n description: 'This is description for playlist.',\n collection_id:\ \ '{{video-source-id}}',\n});\n\nconsole.log(videoPlaylist);" - label: Python lang: Python source: "import os\n\nfrom gumlet import Gumlet\n\nclient = Gumlet(\n api_key=os.environ.get(\"\ API_KEY\"),\n)\n\nvideo_playlist = client.video_playlists.create(\n collection_id=\"{{video-source-id}}\"\ ,\n title=\"Playlist-Title\",\n description=\"This is description for playlist.\",\n)\n\ \nprint(video_playlist)" get: summary: Get all playlists description: Get all playlists for given workspace operationId: get-all-playlists parameters: - name: collection_id in: query description: Video Collection ID schema: type: string responses: '200': description: '200' content: application/json: examples: Result: value: - id: 6566ebd57499c676fe302bfc collection_id: 646df1c9173a4a2fcac180b4 title: Playlist-1 description: This is updated description player_config: {} - id: 65802cc5bda4c3f74c99eacf collection_id: 646df1c9173a4a2fcac180b4 title: Playlist-2 player_config: {} - id: 65802cc6bda4c3f74c99eae5 collection_id: 646df1c9173a4a2fcac180b4 title: Playlist-3 player_config: {} schema: type: array items: type: object properties: id: type: string examples: - 6566ebd57499c676fe302bfc collection_id: type: string examples: - 646df1c9173a4a2fcac180b4 title: type: string examples: - Playlist-1 description: type: string examples: - This is updated description player_config: type: object properties: {} x-apidog-orders: [] x-apidog-orders: - id - collection_id - title - description - player_config required: - id '400': description: '400' content: application/json: examples: Result: value: error: code: collection_not_found message: Could not find any video collection with specified collection_id. schema: type: object properties: error: type: object properties: code: type: string example: collection_not_found message: type: string example: Could not find any video collection with specified collection_id. '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' deprecated: false tags: - Video Playlists x-codeSamples: - label: TypeScript lang: TypeScript source: "import Gumlet from '@gumlet/nodejs-sdk';\n\nconst client = new Gumlet({\n apiKey: process.env['API_KEY'],\ \ // defaults to the API_KEY env var\n});\n\nconst videoPlaylist = await client.videoPlaylists.listAll();\n\ \nconsole.log(videoPlaylist);" - label: Python lang: Python source: "import os\n\nfrom gumlet import Gumlet\n\nclient = Gumlet(\n api_key=os.environ.get(\"\ API_KEY\"),\n)\n\nvideo_playlist = client.video_playlists.list_all()\n\nprint(video_playlist)" /video/playlist/{playlist_id}/asset: post: summary: Add asset to playlist description: This operation adds a single asset or a list of assets to a playlist. operationId: add-asset-playlist parameters: - name: playlist_id description: Playlist ID in which the asset needs to be added. in: path schema: type: string required: true requestBody: content: application/json: schema: type: object required: - asset_list properties: asset_list: type: array items: properties: asset_id: type: string position: type: integer description: Optional, if not provided asset will added at the back/last of playlist format: int32 type: object examples: Request Example: value: asset_list: - asset_id: 6508790283e4d60611846790 - position: 1 asset_id: 650878f883e4d6061184677d - asset_id: 650878de83e4d6061184676a - position: 2 asset_id: 650878d883e4d60611846757 - position: 3 asset_id: 65578dd87eebc22dcdd549a2 responses: '200': description: '200' content: application/json: examples: Result: value: success: true schema: type: object properties: success: type: boolean example: true default: true '400': description: Bad Request content: application/json: examples: Result: value: error: code: incorrect_playlist_id message: No playlist with provided id exists. schema: type: object properties: error: type: object properties: code: type: string example: incorrect_playlist_id message: type: string example: No playlist with provided id exists. required: - code - message required: - error '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' deprecated: false tags: - Video Playlists x-stoplight: id: udtlsqhehl96y x-codeSamples: - label: TypeScript lang: TypeScript source: "import Gumlet from '@gumlet/nodejs-sdk';\n\nconst client = new Gumlet({\n apiKey: process.env['API_KEY'],\ \ // defaults to the API_KEY env var\n});\n\nconst videoPlaylist = await client.videoPlaylists.createAsset('playlistId',\ \ {\n asset_list: [\n { asset_id: '6508790283e4d60611846790' },\n { position: 1, asset_id:\ \ '650878f883e4d6061184677d' },\n { asset_id: '650878de83e4d6061184676a' },\n { position:\ \ 2, asset_id: '650878d883e4d60611846757' },\n { position: 3, asset_id: '65578dd87eebc22dcdd549a2'\ \ },\n ],\n});\n\nconsole.log(videoPlaylist);" - label: Python lang: Python source: "import os\n\nfrom gumlet import Gumlet\n\nclient = Gumlet(\n api_key=os.environ.get(\"\ API_KEY\"),\n)\n\nvideo_playlist = client.video_playlists.create_asset(\n playlist_id=\"\ playlistId\",\n asset_list=[\n {\"asset_id\": \"6508790283e4d60611846790\"},\n \ \ {\"position\": 1, \"asset_id\": \"650878f883e4d6061184677d\"},\n {\"asset_id\"\ : \"650878de83e4d6061184676a\"},\n {\"position\": 2, \"asset_id\": \"650878d883e4d60611846757\"\ },\n {\"position\": 3, \"asset_id\": \"65578dd87eebc22dcdd549a2\"},\n ],\n)\n\nprint(video_playlist)" delete: summary: Remove asset from playlist description: Removed an asset or list of assets from a given playlist. operationId: remove-asset-playlist parameters: - name: playlist_id description: Playlist ID that is to be deleted. in: path schema: type: string required: true requestBody: content: application/json: schema: type: object required: - delete_list properties: delete_list: type: array description: Array of video asset ids. items: type: string examples: Request Example: value: delete_list: - 6508790783e4d606118467a3 responses: '200': description: '200' content: application/json: examples: Result: value: success: true schema: type: object properties: success: type: boolean example: true default: true '400': description: Bad Request content: application/json: examples: Result: value: error: code: incorrect_playlist_id message: No playlist with provided id exists. schema: type: object properties: error: type: object properties: code: type: string example: incorrect_playlist_id message: type: string example: No playlist with provided id exists. required: - code - message required: - error '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' deprecated: false tags: - Video Playlists x-stoplight: id: j7pd61w7qxzcy x-codeSamples: - label: TypeScript lang: TypeScript source: "import Gumlet from '@gumlet/nodejs-sdk';\n\nconst client = new Gumlet({\n apiKey: process.env['API_KEY'],\ \ // defaults to the API_KEY env var\n});\n\nconst videoPlaylist = await client.videoPlaylists.deleteAsset('playlistId',\ \ {\n delete_list: ['6508790783e4d606118467a3'],\n});\n\nconsole.log(videoPlaylist);" - label: Python lang: Python source: "import os\n\nfrom gumlet import Gumlet\n\nclient = Gumlet(\n api_key=os.environ.get(\"\ API_KEY\"),\n)\n\nvideo_playlist = client.video_playlists.delete_asset(\n playlist_id=\"\ playlistId\",\n delete_list=[\"6508790783e4d606118467a3\"],\n)\n\nprint(video_playlist)" /video/playlist/{playlist_id}: post: summary: Update Playlist description: This endpoint allows you to update playlist name, channel visibility, or playlist order on a channel page. operationId: update-playlist parameters: - name: playlist_id description: ID for the playlist to update. in: path required: true schema: type: string requestBody: content: application/json: schema: type: object properties: title: type: string description: type: string position: type: integer description: Playlists have order in which they will be shown on the channel page. format: int32 player_config: type: object description: Configure player settings for this playlist, it overrides the setting set on collection. properties: preload: type: boolean autoplay: type: boolean disable_seek: type: boolean disable_player_controls: type: boolean powered_by_gumlet_overlay: type: boolean allow_drm_protected_videos: type: boolean loop: type: boolean player_color: type: string include_seo: type: boolean subtitle_enabled: type: boolean pixel_tags: type: object properties: {} logo_width: type: integer format: int32 logo_height: type: integer format: int32 dynamic_watermark: type: boolean watermark_font_size: type: integer format: int32 watermark_font_color: type: string watermark_bg_color: type: string watermark_interval: type: integer format: int32 channel_visibility: type: boolean description: If true then playlist will be visible on channel page. default: false examples: Request Example: value: title: Playlist-Title-Updated position: 6 description: This is updated description player_config: preload: true autoplay: false disable_seek: true disable_player_controls: false powered_by_gumlet_overlay: false allow_drm_protected_videos: false loop: false player_color: '#6658ea' include_seo: true subtitle_enabled: true pixel_tags: {} logo_width: 51 logo_height: 100 dynamic_watermark: false watermark_font_size: 1 watermark_font_color: '#ff0000' watermark_bg_color: transparent watermark_interval: 1000 responses: '200': description: '200' content: application/json: examples: Result: value: id: 6566ebd57499c676fe302bfc collection_id: 646df1c9173a4a2fcac180b4 title: Playlist-Title-Updated description: This is updated description player_config: preload: true autoplay: false disable_seek: true disable_player_controls: false powered_by_gumlet_overlay: false allow_drm_protected_videos: false loop: false player_color: '#6658ea' include_seo: true subtitle_enabled: true pixel_tags: {} logo_width: 51 logo_height: 100 dynamic_watermark: false watermark_font_size: 1 watermark_font_color: '#ff0000' watermark_bg_color: transparent watermark_interval: 1000 schema: type: object properties: id: type: string examples: - 6566ebd57499c676fe302bfc collection_id: type: string examples: - 646df1c9173a4a2fcac180b4 title: type: string examples: - Playlist-Title-Updated description: type: string examples: - This is updated description player_config: type: object properties: preload: type: boolean default: true examples: - true autoplay: type: boolean default: true examples: - false disable_seek: type: boolean default: true examples: - true disable_player_controls: type: boolean default: true examples: - false powered_by_gumlet_overlay: type: boolean default: true examples: - false allow_drm_protected_videos: type: boolean default: true examples: - false loop: type: boolean default: true examples: - false player_color: type: string examples: - '#6658ea' include_seo: type: boolean default: true examples: - true subtitle_enabled: type: boolean default: true examples: - true pixel_tags: type: object properties: {} x-apidog-orders: [] logo_width: type: integer default: 0 examples: - 51 logo_height: type: integer default: 0 examples: - 100 dynamic_watermark: type: boolean default: true examples: - false watermark_font_size: type: integer default: 0 examples: - 1 watermark_font_color: type: string examples: - '#ff0000' watermark_bg_color: type: string examples: - transparent watermark_interval: type: integer default: 0 examples: - 1000 x-apidog-orders: - preload - autoplay - disable_seek - disable_player_controls - powered_by_gumlet_overlay - allow_drm_protected_videos - loop - player_color - include_seo - subtitle_enabled - pixel_tags - logo_width - logo_height - dynamic_watermark - watermark_font_size - watermark_font_color - watermark_bg_color - watermark_interval x-apidog-orders: - id - collection_id - title - description - player_config required: - id '400': description: Bad Request content: application/json: examples: Result: value: error: code: incorrect_playlist_id message: No playlist with provided id exists. schema: type: object properties: error: type: object properties: code: type: string example: incorrect_playlist_id message: type: string example: No playlist with provided id exists. required: - code - message required: - error '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' deprecated: false tags: - Video Playlists x-stoplight: id: p0mid6f7xir0p x-codeSamples: - label: TypeScript lang: TypeScript source: "import Gumlet from '@gumlet/nodejs-sdk';\n\nconst client = new Gumlet({\n apiKey: process.env['API_KEY'],\ \ // defaults to the API_KEY env var\n});\n\nconst videoPlaylist = await client.videoPlaylists.update('playlistId');\n\ \nconsole.log(videoPlaylist);" - label: Python lang: Python source: "import os\n\nfrom gumlet import Gumlet\n\nclient = Gumlet(\n api_key=os.environ.get(\"\ API_KEY\"),\n)\n\nvideo_playlist = client.video_playlists.update(\n playlist_id=\"playlistId\"\ ,\n title=\"Playlist-Title-Updated\",\n description=\"This is updated description\",\n\ \ position=6,\n player_config={\n \"preload\": True,\n \"autoplay\": False,\n\ \ \"disable_seek\": True,\n \"disable_player_controls\": False,\n \"powered_by_gumlet_overlay\"\ : False,\n \"allow_drm_protected_videos\": False,\n \"loop\": False,\n \ \ \"player_color\": \"#6658ea\",\n \"include_seo\": True,\n \"subtitle_enabled\"\ : True,\n \"pixel_tags\": {},\n \"logo_width\": 51,\n \"logo_height\":\ \ 100,\n \"dynamic_watermark\": False,\n \"watermark_font_size\": 1,\n \ \ \"watermark_font_color\": \"#ff0000\",\n \"watermark_bg_color\": \"transparent\",\n\ \ \"watermark_interval\": 1000,\n },\n channel_visibility=False,\n)\n\nprint(video_playlist)" delete: description: Deletes this playlist. responses: '200': description: '' '400': description: Bad Request content: application/json: examples: Result: value: error: code: incorrect_playlist_id message: No playlist with provided id exists. schema: type: object properties: error: type: object properties: code: type: string example: incorrect_playlist_id message: type: string example: No playlist with provided id exists. required: - code - message required: - error '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' parameters: - in: path name: playlist_id description: Playlist ID that is to be deleted. schema: type: string required: true operationId: delete-playlist tags: - Video Playlists x-stoplight: id: gocfme0boqws3 x-codeSamples: - label: TypeScript lang: TypeScript source: "import Gumlet from '@gumlet/nodejs-sdk';\n\nconst client = new Gumlet({\n apiKey: process.env['API_KEY'],\ \ // defaults to the API_KEY env var\n});\n\nawait client.videoPlaylists.delete('playlistId');" - label: Python lang: Python source: "import os\n\nfrom gumlet import Gumlet\n\nclient = Gumlet(\n api_key=os.environ.get(\"\ API_KEY\"),\n)\n\nclient.video_playlists.delete(\n playlist_id=\"playlistId\",\n)" /video/playlist/{playlist_id}/assets: get: summary: Get playlist assets description: Get a list of all assets inside playlist. You can choose in which order are assets returned. operationId: get-playlist-assets parameters: - name: playlist_id description: ID of playlist in which you need to list assets. in: path schema: type: string required: true - name: sort_by in: query description: Optional, if sort_by is set to asset_title it will sorted by title name. Otherwise order in which user added the assets in playlist. schema: type: string - name: sort_order in: query description: -1 or 1 schema: type: integer format: int32 default: 1 - name: page_number in: query description: 'Optional. Minimum: 1' schema: type: integer format: int32 default: 1 - name: page_size in: query description: 'Optional. Minimum: 10' schema: type: string default: '10' responses: '200': description: '200' content: application/json: examples: Result: value: asset_list: - id: 6593d0e5e1b4f8a05db8df0d title: video asset title 1 description: Asset description status: ready created_at: '2024-01-02T09:01:25.079Z' duration: 885 - id: 6593d14583d3d4d3324f7f71 title: video asset title 2 description: Asset description status: ready created_at: '2024-01-02T09:03:01.149Z' duration: 1742 - id: 6596f6f8b3487059a710ff77 title: video asset title 3 description: Asset description status: ready created_at: '2024-01-04T18:20:40.582Z' duration: 8462 - id: 6596f6e7b3487059a710ff4f title: video asset title 4 description: Asset description status: ready created_at: '2024-01-04T18:20:23.342Z' duration: 645 - id: 65578dd87eebc22dcdd549a2 title: video asset title 5 description: Asset description status: ready created_at: '2023-11-17T15:59:20.823Z' duration: 427 - id: 6593f310c69a8548236b2a86 title: video asset title 6 description: Asset description status: upload-pending created_at: '2024-01-02T11:27:16.289Z' duration: 720 - id: 6593e776c69a8548236b2a59 title: video asset title 7 description: Asset description status: upload-pending created_at: '2024-01-02T11:26:15.083Z' duration: 374 - id: 6508790283e4d60611846790 title: video asset title 8 description: Asset description status: ready created_at: '2023-09-18T16:21:22.955Z' duration: 603 - id: 650878f883e4d6061184677d title: video asset title 9 description: Asset description status: ready created_at: '2023-09-18T16:21:12.870Z' duration: 929 - id: 650878de83e4d6061184676a title: video asset title 10 description: Asset description status: ready created_at: '2023-09-18T16:20:46.129Z' duration: 12 has_next_page: true next_page: 2 schema: type: object properties: asset_list: type: array items: type: object properties: id: type: string example: 6593d0e5e1b4f8a05db8df0d title: type: string example: video asset title 1 description: type: string example: Asset description status: type: string example: ready created_at: type: string example: '2024-01-02T09:01:25.079Z' duration: type: integer example: 885 default: 0 has_next_page: type: boolean example: true default: true next_page: type: integer example: 2 default: 0 '400': description: Bad Request content: application/json: examples: Result: value: error: code: incorrect_playlist_id message: No playlist with provided id exists. schema: type: object properties: error: type: object properties: code: type: string example: incorrect_playlist_id message: type: string example: No playlist with provided id exists. required: - code - message required: - error '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' deprecated: false tags: - Video Playlists x-stoplight: id: 955aq8lyn9wbf x-codeSamples: - label: TypeScript lang: TypeScript source: "import Gumlet from '@gumlet/nodejs-sdk';\n\nconst client = new Gumlet({\n apiKey: process.env['API_KEY'],\ \ // defaults to the API_KEY env var\n});\n\nconst videoPlaylist = await client.videoPlaylists.listAssets('playlistId',\ \ {\n sort_order: 1,\n page_number: 1,\n page_size: '10',\n});\n\nconsole.log(videoPlaylist);" - label: Python lang: Python source: "import os\n\nfrom gumlet import Gumlet\n\nclient = Gumlet(\n api_key=os.environ.get(\"\ API_KEY\"),\n)\n\nvideo_playlist = client.video_playlists.list_assets(\n playlist_id=\"playlistId\"\ ,\n sort_order=1,\n page_number=1,\n page_size=\"10\",\n)\n\nprint(video_playlist)" /video/playlists/{playlist_id}/reorder: post: summary: Arrange Videos In Playlist description: Reorder videos inside a playlist either by moving a single asset to a position or by sorting the playlist by title or created date. operationId: reorder-asset-playlist parameters: - name: playlist_id in: path description: Playlist id. schema: type: string required: true requestBody: content: application/json: schema: oneOf: - type: object required: - asset_id - page_number - page_size - asset_position properties: asset_id: type: string description: Asset id to move. page_number: type: integer minimum: 1 description: Current playlist page number. page_size: type: integer minimum: 1 maximum: 200 description: Playlist page size used by the caller. asset_position: type: integer minimum: 0 description: Zero-based position inside the provided page. - type: object required: - sort_by - sort_order properties: sort_by: type: string enum: - title - created_at sort_order: type: string enum: - asc - desc examples: Move Example: value: asset_id: 6e82bf783e88be000ab45ed2 page_number: 1 page_size: 10 asset_position: 0 Sort Example: value: sort_by: title sort_order: asc responses: '200': description: '200' content: application/json: examples: Result: value: success: true asset_list: - 6e82bf783e88be000ab45ed2 - 6e82bf783e88be000ab45ed1 schema: type: object properties: success: type: boolean example: true default: true asset_list: type: array items: type: string '400': description: Bad Request content: application/json: examples: Result: value: error: code: invalid_parameter_value message: The parameter value is invalid. schema: type: object properties: error: type: object properties: code: type: string example: invalid_parameter_value message: type: string example: The parameter value is invalid. required: - code - message required: - error '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '404': description: Not Found content: application/json: examples: Result: value: error: code: playlist_not_found message: No playlist with provided id exists. schema: type: object properties: error: type: object properties: code: type: string example: playlist_not_found message: type: string example: No playlist with provided id exists. required: - code - message required: - error deprecated: false tags: - Video Playlists x-stoplight: id: ya28vvdrhqo14 x-codeSamples: - label: TypeScript lang: TypeScript source: "import Gumlet from '@gumlet/nodejs-sdk';\n\nconst client = new Gumlet({\n apiKey: process.env['API_KEY'],\ \ // defaults to the API_KEY env var\n});\n\nconst videoPlaylist = await client.videoPlaylists.reorderAsset('playlistId',\ \ {\n asset_id: '6e82bf783e88be000ab45ed2',\n page_number: 1,\n page_size: 10,\n asset_position:\ \ 0,\n});\n\nconsole.log(videoPlaylist);" - label: Python lang: Python source: "import os\n\nfrom gumlet import Gumlet\n\nclient = Gumlet(\n api_key=os.environ.get(\"\ API_KEY\"),\n)\n\nvideo_playlist = client.video_playlists.reorder_asset(\n playlist_id=\"\ playlistId\",\n asset_id=\"6e82bf783e88be000ab45ed2\",\n page_number=1,\n page_size=10,\n\ \ asset_position=0,\n)\n\nprint(video_playlist)" components: securitySchemes: API_KEY: type: http scheme: bearer schemas: Error: type: object required: - error properties: error: type: object required: - code - message properties: code: type: string description: Machine-readable error code message: type: string description: Human-readable error message param: type: string description: Optional parameter name related to the error responses: Unauthorized: description: Unauthorized — missing or invalid API key / bearer token content: application/json: examples: Result: value: error: code: invalid_api_key message: API key supplied with request is invalid schema: $ref: '#/components/schemas/Error' Forbidden: description: Forbidden — unpaid account or insufficient role permissions content: application/json: examples: Result: value: error: code: unauthorized message: You don't have access to this feature. Please contact your organization owner. schema: $ref: '#/components/schemas/Error' ValidationError: description: Unprocessable Entity — request validation failed content: application/json: examples: Result: value: error: code: invalid_parameter message: body must have required property '' schema: $ref: '#/components/schemas/Error' InternalServerError: description: Internal Server Error content: application/json: examples: Result: value: error: code: internal_server_error message: We have encountered some server error. We have been notified and will fix it soon. schema: $ref: '#/components/schemas/Error' security: - API_KEY: []