### Get All Galleries Response Source: https://jmvstream.com/developer Example response detailing the structure of galleries and their sub-galleries. ```json { "folders": [ { "name": "Main", "description": "Main gallery", "uuid": null, "subFolders": [ { "name": "Sub Main", "description": null, "uuid": "0193f1fa-2081-4aa1-9888-84868a9b75e2" } ] }, { "name": "Teste 2306", "description": null, "uuid": null }, { "name": "FTP", "description": null, "uuid": null, "subFolders": [ { "name": "Sub FTP", "description": null, "uuid": "b917bdc2-2b0f-4e48-80c7-04cbeb15421a", "subFolders": [ { "name": "Sub Sub FTP", "description": null, "uuid": "03c3bdf7-5106-4d81-8869-9217e6ec05d1" } ] } ] } ] } ``` -------------------------------- ### Create Event Response Example Source: https://jmvstream.com/developer Example of a successful response after creating an event. ```json { "customer_plans_id": "30", "stream": "EVT74_N7XyEGuGrkyDul3", "status": "WAITING_LIVE", "date": "2023-11-30 12:00:00", "title": "teste", "event_hash": "0Pt444u5uN2ltcB", "video_hash": null, "id": 74 } ``` -------------------------------- ### Update Event Response Example Source: https://jmvstream.com/developer Example of a successful response after updating an event. ```json { "success": "Event 74 updated successfully! 🔧", "event": { "id": 74, "customer_plans_id": 30, "stream": "EVT74_N7XyEGuGrkyDul3", "status": "WAITING_LIVE", "date": "2023-11-30T15:00:00.000Z", "title": "testput", "video_hash": null, "event_hash": "0Pt444u5uN2ltcB" } } ``` -------------------------------- ### Get Total Galleries Response Source: https://jmvstream.com/developer Example response showing the total number of folders (galleries). ```json { "folders": 6 } ``` -------------------------------- ### Authentication Response Example Source: https://jmvstream.com/developer Example of a successful authentication response, containing an API token. ```json { "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwbGFuSWQiOjEwLCJwbGFuRGVzY3JpcHRpb24iOiJTdHJlYW1pbmcgZGUgVsOtZGVvIE9uIERlbWFuZCwgNTAwIHRlbGVzcGVjdGFkb3JlcyBhIDEwMjQgS2JwcywgMzAgR0IiLCJwbGFuVXVpZCI6IjZiMTcyZjc4LTkxODktNDdkYi04ZTcwLTc0MTA4MmFkODAxYyIsInBsYW5UeXBlIjoiT0QiLCJpYXQiOjE3MDE2OTQ5NTQsImV4cCI6MTcwMTcwOTM1NH0.UQ4UN5kXlt7QFxg0JBaCPXanNmRCfvQFBWXir83Dxto" } ``` -------------------------------- ### Authentication API Request Example Source: https://jmvstream.com/developer Example of a POST request to the authentication endpoint. ```http POST https://api.jmvstream.com/v1/authenticate { "email": "your email", "password": "your password", "resource": "Uuid* of application" } ``` -------------------------------- ### Create Event API Request Example Source: https://jmvstream.com/developer Example of a POST request to the create event endpoint. ```http POST https://api.jmvstream.com/v1/events/insert { "planId": "30", "title": "teste", "dateScheduled": "2023-11-30 12:00:00" } ``` -------------------------------- ### Get Event List Example Source: https://jmvstream.com/developer Retrieves a list of events with their details. This is useful for displaying upcoming or past events. ```json { "total": 4, "secret": "G3iizNcmhuuuSBZ4lhLcyNg9jUMcEy", "events": [ { "id": 7, "customer_plans_id": 30, "stream": "EVT7_8P9XirZ7f4Dr", "status": "WAITING_LIVE", "date": "2022-05-03T06:00:00.000Z", "title": "teste", "video_hash": null, "event_hash": "GfBzuNPZZl7k732", "od": null }, { "id": 66, "customer_plans_id": 30, "stream": "EVT66_ys7W8Z34EDt4", "status": "WAITING_LIVE", "date": "2023-07-27T06:00:00.000Z", "title": "asfa", "video_hash": null, "event_hash": "7sXPE43szis629D", "od": null }, { "id": 72, "customer_plans_id": 30, "stream": "EVT72_yu4suXX6ut90Wl3", "status": "WAITING_LIVE", "date": "2023-11-30T15:00:00.000Z", "title": "newtest", "video_hash": null, "event_hash": "4X4fyNDaktX7sGB", "od": null }, { "id": 67, "customer_plans_id": 30, "stream": "EVT67_ZG66yD9tft2D2c3", "status": "LIVE", "date": "2023-11-30T15:00:00.000Z", "title": "teste", "video_hash": null, "event_hash": "P5iZX708D45u1Ek", "od": null } ] } ``` -------------------------------- ### Update Event API Request Example Source: https://jmvstream.com/developer Example of a PUT request to the update event endpoint. ```http PUT https://api.jmvstream.com/v1/events/update { "title": "testput", "eventId": 74, "secret": "G3iizNcmhuuuSBZ4lhLcyNg9jUMcEy", "hash": "0Pt444u5uN2ltcB" } ``` -------------------------------- ### GET ALL VIDEOS Source: https://jmvstream.com/developer Retrieves a list of all videos. Requires the Plan ID in the request body. ```APIDOC ## GET /v1/videos/application ### Description Retrieves a list of all videos associated with the account. ### Method GET ### Endpoint /v1/videos/application ### Parameters #### Request Body - **payload.planId** (string) - Required - The ID of the plan to filter videos by. ### Request Example ```json { "payload": { "planId": "iddoplano" } } ``` ``` -------------------------------- ### Get All Folders Source: https://jmvstream.com/developer Retrieves a list of all folders, including their names, descriptions, UUIDs, and any subfolders. Requires authorization. ```APIDOC ## GET /v1/folders ### Description Retrieves all folders and their nested structure. ### Method GET ### Endpoint https://api.jmvstream.com/v1/folders ### Headers Authorization: Bearer [your token] ### Response #### Success Response (200) - **folders** (array) - A list of folder objects, each potentially containing subFolders. ``` -------------------------------- ### Get Upload Information Source: https://jmvstream.com/developer Retrieves information about a video upload. Requires Tus-Resumable and Authorization headers. ```bash HEAD https://api.jmvstream.com/v1/videos/uploads/[id_do_upload] ``` -------------------------------- ### Get All Videos Source: https://jmvstream.com/developer Retrieve a list of all videos associated with your account. Requires the plan ID in the request body and your authorization token. ```HTTP GET https://api.jmvstream.com/v1/videos/application { "payload": { "planId": "iddoplano" } } ``` -------------------------------- ### GET VIDEO BY NAME Source: https://jmvstream.com/developer Retrieves video information by its name. Requires the video name as a query parameter and the Plan ID in the request body. ```APIDOC ## GET /v1/videos/application?name=[videoname] ### Description Retrieves details of a video based on its name. ### Method GET ### Endpoint /v1/videos/application ### Parameters #### Query Parameters - **name** (string) - Required - The name of the video to retrieve. #### Request Body - **payload.planId** (string) - Required - The ID of the plan associated with the video. ### Request Example ```json { "payload": { "planId": "iddoplano" } } ``` ``` -------------------------------- ### Get Video by Name Source: https://jmvstream.com/developer Retrieve a specific video by its name. Requires the video name and plan ID in the request body, along with your authorization token. ```HTTP GET https://api.jmvstream.com/v1/videos/application?name=[videoname] { "payload": { "planId": "iddoplano" } } ``` -------------------------------- ### Get Total Number of Folders Source: https://jmvstream.com/developer Retrieves the total count of folders available in the system. Requires authorization. ```APIDOC ## GET /v1/folders/total ### Description Retrieves the total number of folders. ### Method GET ### Endpoint https://api.jmvstream.com/v1/folders/total ### Headers Authorization: Bearer [your token] ### Response #### Success Response (200) - **folders** (integer) - The total number of folders. ``` -------------------------------- ### Get Total Galleries Request Source: https://jmvstream.com/developer Fetches the total count of galleries available. This is a simple GET request to an endpoint. ```http GET https://api.jmvstream.com/v1/folders/total ``` -------------------------------- ### Get All Galleries Request Source: https://jmvstream.com/developer Retrieves all galleries, including nested sub-galleries. Useful for displaying a hierarchical view of galleries. ```http GET https://api.jmvstream.com/v1/folders ``` -------------------------------- ### Create a New Gallery Source: https://jmvstream.com/developer Use this endpoint to create a new gallery. Requires a name for the gallery and an authorization token. ```bash POST https://api.jmvstream.com/v1/folders { "name": "New Folder" } ``` -------------------------------- ### Initiate Video Upload Source: https://jmvstream.com/developer Initiates the video upload process. Requires Tus-Resumable, Upload-Metadata, Content-Type, Authorization, and Upload-Length headers. ```bash POST https://api.jmvstream.com/v1/videos ``` -------------------------------- ### CREATING THE UPLOAD Source: https://jmvstream.com/developer Initiates the video upload process. Requires specific headers including Tus-Resumable, Upload-Length, and Authorization. ```APIDOC ## POST CREATING THE UPLOAD ### Description Initiates the process for uploading a video file. ### Method POST ### Endpoint https://api.jmvstream.com/v1/videos ### Headers - **Tus-Resumable**: 1.0.0 - **Upload-Metadata**: filename - **Content-Type**: application/json - **Authorization**: Bearer [your token] - **Upload-Length**: tamanho_do_arquivo_em_bytes ### Request Example ``` POST https://api.jmvstream.com/v1/videos ``` ``` -------------------------------- ### Upload Video Thumbnail Source: https://jmvstream.com/developer Uploads a thumbnail for a video. Requires Video hash, Plan ID, the image file in the form data, and an authorization token. ```bash PUT https://api.jmvstream.com/v1/videos/uploadThumb/[videohash]/[planid] ``` -------------------------------- ### CREATE NEW GALLERY Source: https://jmvstream.com/developer Creates a new gallery with a specified name. Requires an Authorization header. ```APIDOC ## POST CREATE NEW GALLERY ### Description Creates a new gallery folder with a given name. ### Method POST ### Endpoint https://api.jmvstream.com/v1/folders ### Headers - **Authorization**: Bearer [your token] ### Request Body ```json { "name": "New Folder" } ``` ### Request Example ``` POST https://api.jmvstream.com/v1/folders { "name": "New Folder" } ``` ### Response #### Success Response (200) - **id_customer_plans** (integer) - The ID of the customer's plan. - **created_date** (string) - The date and time the gallery was created. - **updated_date** (string) - The date and time the gallery was last updated. - **uuid** (string) - The unique identifier for the created gallery. - **name** (string) - The name of the gallery. - **description** (string) - The description of the gallery (can be empty). - **parentId** (null) - The parent folder ID (null if it's a top-level folder). - **hierarchyLevel** (null) - The hierarchy level of the folder (null if not applicable). - **id** (integer) - The internal ID of the gallery. ``` -------------------------------- ### POST CREATE EVENT Source: https://jmvstream.com/developer Creates a new event with specified details. Requires a plan ID, title, and scheduled date. ```APIDOC ## POST /v1/events/insert ### Description Creates a new event to be scheduled for streaming. ### Method POST ### Endpoint https://api.jmvstream.com/v1/events/insert ### Parameters #### Headers - **Authorization** (string) - Required - Bearer token for authentication. #### Request Body - **planId** (string) - Required - The ID of the customer's plan. - **title** (string) - Required - The title of the event. - **dateScheduled** (string) - Required - The date and time the event is scheduled for (YYYY-MM-DD HH:MM:SS). ### Request Example ```json { "planId": "30", "title": "newtest", "dateScheduled": "2023-11-30 12:00:00" } ``` ### Response #### Success Response (200) - **customer_plans_id** (string) - The ID of the customer plan associated with the event. - **stream** (string) - The stream identifier for the event. - **status** (string) - The current status of the event (e.g., WAITING_LIVE). - **date** (string) - The scheduled date and time of the event. - **title** (string) - The title of the event. - **event_hash** (string) - A unique hash for the event. - **video_hash** (string) - The hash for the video, if available. - **id** (integer) - The unique identifier for the created event. #### Response Example ```json { "customer_plans_id": "30", "stream": "EVT74_N7XyEGuGrkyDul3", "status": "WAITING_LIVE", "date": "2023-11-30 12:00:00", "title": "teste", "event_hash": "0Pt444u5uN2ltcB", "video_hash": null, "id": 74 } ``` ``` -------------------------------- ### UPLOAD THUMB Source: https://jmvstream.com/developer Uploads a thumbnail for a video. Requires video hash, plan ID, and the image file in the body. ```APIDOC ## PUT UPLOAD THUMB ### Description Uploads a custom thumbnail image for a specific video. ### Method PUT ### Endpoint https://api.jmvstream.com/v1/videos/uploadThumb/[videohash]/[planid] ### Headers - **Accept**: / - **Authorization**: Bearer [your token] ### Request Body - **file** (formdata) - The image file to be uploaded as the thumbnail. ### Request Example ``` PUT https://api.jmvstream.com/v1/videos/uploadThumb/[videohash]/[planid] ``` ``` -------------------------------- ### POST AUTHENTICATION Source: https://jmvstream.com/developer Authenticates a user and returns a token for accessing the API. Requires email, password, and a resource UUID. ```APIDOC ## POST /v1/authenticate ### Description Authenticates a user with provided credentials and returns an access token. ### Method POST ### Endpoint https://api.jmvstream.com/v1/authenticate ### Parameters #### Request Body - **email** (string) - Required - The email address of the user. - **password** (string) - Required - The password for the user account. - **resource** (string) - Required - The UUID of the application resource. ### Request Example ```json { "email": "your email", "password": "your password", "resource": "Uuid* of application" } ``` ### Response #### Success Response (200) - **token** (string) - The authentication token. #### Response Example ```json { "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwbGFuSWQiOjEwLCJwbGFuRGVzY3JpcHRpb24iOiJTdHJlYW1pbmcgZGUgVsOtZGVvIE9uIERlbWFuZCwgNTAwIHRlbGVzcGVjdGFkb3JlcyBhIDEwMjQgS2JwcywgMzAgR0IiLCJwbGFuVXVpZCI6IjZiMTcyZjc4LTkxODktNDdkYi04ZTcwLTc0MTA4MmFkODAxYyIsInBsYW5UeXBlIjoiT0QiLCJpYXQiOjE3MDE2OTQ5NTQsImV4cCI6MTcwMTcwOTM1NH0.UQ4UN5kXlt7QFxg0JBaCPXanNmRCfvQFBWXir83Dxto" } ``` ``` -------------------------------- ### Search Event by ID and Hash Source: https://jmvstream.com/developer Retrieve details for a specific event using its plan ID and event hash. This is useful for fetching event-specific data. ```http GET https://api.jmvstream.com/v1/events/searchByHash?planId=30&hash=0Pt444u5uN2ltcB ``` -------------------------------- ### Upload Video Chunk Source: https://jmvstream.com/developer Uploads a chunk of a video file. Requires Tus-Resumable, Content-Length, Upload-Offset, Upload-Metadata, Content-Type, gallery, and Authorization headers. The file content is provided in the raw body. ```bash PATCH https://api.jmvstream.com/v1/videos/uploads/[id_do_upload] @[caminho_do_arquivo] ``` -------------------------------- ### Delete Video by Hash Source: https://jmvstream.com/developer Deletes a video using its hash and plan ID. Requires Video hash, Plan ID, and an authorization token. ```bash DELETE https://api.jmvstream.com/v1/videos/deleteVideo/[videohash]/[planid] ``` -------------------------------- ### Search All Events Source: https://jmvstream.com/developer Fetches a paginated list of all events associated with a specific plan ID. You can control pagination and sorting. ```http GET https://api.jmvstream.com/v1/events/searchAll?planId=30&actualPage=1&quantity=10&orderBy=date&orderType=ASC ``` -------------------------------- ### Update Video Name Source: https://jmvstream.com/developer Updates the name of a video. Requires Video hash, Plan ID, the new video name in the body, and an authorization token. ```bash PUT https://api.jmvstream.com/v1/videos/editVideo/[videohash]/[planid] ``` -------------------------------- ### RETURNS INFORMATION FROM THE UPLOAD Source: https://jmvstream.com/developer Retrieves information about a specific video upload using its ID. Requires an Authorization header. ```APIDOC ## HEAD RETURNS INFORMATION FROM THE UPLOAD ### Description Fetches metadata and status information for a video upload. ### Method HEAD ### Endpoint https://api.jmvstream.com/v1/videos/uploads/[id_do_upload] ### Headers - **Authorization**: Bearer [your token] - **Tus-Resumable**: 1.0.0 ### Request Example ``` HEAD https://api.jmvstream.com/v1/videos/uploads/[id_do_upload] ``` ``` -------------------------------- ### Search All Events Source: https://jmvstream.com/developer Retrieves a list of all events associated with a specific plan, with options for pagination and sorting. ```APIDOC ## GET /v1/events/searchAll ### Description Retrieves all events for a given plan, with pagination and sorting capabilities. ### Method GET ### Endpoint https://api.jmvstream.com/v1/events/searchAll ### Headers - Accept: application/json, text/plain, */* - Authorization: Bearer [your token] ### Query Parameters - **planId** (integer) - Required - The ID of the plan. - **actualPage** (integer) - Optional - The page number to retrieve (default: 1). - **quantity** (integer) - Optional - The number of events per page (default: 10). - **orderBy** (string) - Optional - The field to order the results by (e.g., "date"). - **orderType** (string) - Optional - The order type, either "ASC" or "DESC" (default: "ASC"). ### Request Example ``` GET https://api.jmvstream.com/v1/events/searchAll?planId=30&actualPage=1&quantity=10&orderBy=date&orderType=ASC ``` ### Response #### Success Response (200) - The response will be a list of event objects, each containing details similar to the 'Search Event by ID and Hash' endpoint, but potentially with fewer details like 'secret' and 'liveData' unless explicitly requested or available. ### Response Example (Response structure will be an array of event objects. Example for a single event object): ```json { "id": 74, "customer_plans_id": 30, "stream": "EVT74_N7XyEGuGrkyDul3", "status": "LIVE", "date": "2023-11-30T15:00:00.000Z", "title": "testput", "video_hash": null, "event_hash": "0Pt444u5uN2ltcB" } ``` ``` -------------------------------- ### Search Event by ID and Hash Source: https://jmvstream.com/developer Retrieves details of a specific event using its plan ID and event hash. ```APIDOC ## GET /v1/events/searchByHash ### Description Searches for an event by its plan ID and event hash. ### Method GET ### Endpoint https://api.jmvstream.com/v1/events/searchByHash ### Headers - Accept: application/json, text/plain, /* - Authorization: Bearer [your token] - Content-Type: application/json;charset=UTF-8 ### Query Parameters - **planId** (integer) - Required - The ID of the plan. - **hash** (string) - Required - The hash of the event. ### Request Example ``` GET https://api.jmvstream.com/v1/events/searchByHash?planId=30&hash=0Pt444u5uN2ltcB ``` ### Response #### Success Response (200) - **id** (integer) - **customer_plans_id** (integer) - **stream** (string) - **status** (string) - **date** (string) - **title** (string) - **video_hash** (string | null) - **event_hash** (string) - **secret** (string) - **liveData** (object) - **rtmpUrl** (string) - **shareLink** (string) - **source** (string) - **playerShareCode** (string) - **streamKey** (string) - **customer_plans_od_id** (integer) - **customer_plans_lvw_id** (integer) ### Response Example ```json { "id": 74, "customer_plans_id": 30, "stream": "EVT74_N7XyEGuGrkyDul3", "status": "LIVE", "date": "2023-11-30T15:00:00.000Z", "title": "testput", "video_hash": null, "event_hash": "0Pt444u5uN2ltcB", "secret": "70LzO7DFNNjxYVHHhYQ7GwZqME7E5j", "liveData": { "rtmpUrl": "rtmp://rtmp.jmvstream.com/LVW-26?secret=G3iizNcmhuuuSBZ4lhLcyNg9jUMcEy", "shareLink": "https://player.jmvstream.com/evt/G3iizNcmhuuuSBZ4lhLcyNg9jUMcEy/0Pt444u5uN2ltcB", "source": "https://cdn.jmvstream.com/w/LVW-26/ngrp:EVT74_N7XyEGuGrkyDul3_all/playlist.m3u8", "playerShareCode": "", "streamKey": "EVT74_N7XyEGuGrkyDul3" }, "customer_plans_od_id": 10, "customer_plans_lvw_id": 26 } ``` ``` -------------------------------- ### Move Video to Folder Source: https://jmvstream.com/developer Move a video to a specified folder. Requires the video hash and the folder's UUID in the request body, along with your authorization token. ```HTTP PUT https://api.jmvstream.com/v1/videos/moveVideo/[videohash] { "folder_uuid": "uuidd of the folder you want to move" } ``` -------------------------------- ### MOVE VIDEO TO FOLDER Source: https://jmvstream.com/developer Moves a video to a specified folder. Requires the video hash and the folder's UUID in the request body. ```APIDOC ## PUT /v1/videos/moveVideo/[videohash] ### Description Moves a video to a different folder. ### Method PUT ### Endpoint /v1/videos/moveVideo/[videohash] ### Parameters #### Path Parameters - **videohash** (string) - Required - The unique hash of the video to move. #### Request Body - **folder_uuid** (string) - Required - The UUID of the destination folder. ### Request Example ```json { "folder_uuid": "uuidd of the folder you want to move" } ``` ``` -------------------------------- ### Create Event API Request Body Source: https://jmvstream.com/developer Use this endpoint to create a new event. Requires a plan ID, title, and scheduled date. The plan ID can be found in the customer plans table. ```json { "planId": "30", "title": "newtest", "dateScheduled": "2023-11-30 12:00:00" } ``` -------------------------------- ### Delete a Gallery Source: https://jmvstream.com/developer Use this endpoint to delete a gallery. Requires the gallery's UUID and an authorization token. ```bash DELETE https://api.jmvstream.com/v1/folders/ff92418f-778a-4ea2-8ade-e42414ce042f { "name": "TEST GALLERY" } ``` -------------------------------- ### Edit Gallery Response Source: https://jmvstream.com/developer Confirms the successful update of a gallery, returning its updated details. ```json { "id": 398, "id_customer_plans": 10, "parentId": null, "hierarchyLevel": null, "created_date": "2023-12-04T14:04:28.000Z", "updated_date": "2023-12-04T14:04:28.000Z", "uuid": "ff92418f-778a-4ea2-8ade-e42414ce042f" } ``` -------------------------------- ### Authenticate API Request Source: https://jmvstream.com/developer Use this endpoint to authenticate your API requests. You will need your email, password, and application UUID. The response includes an authentication token. ```json { "email": "your email", "password": "your password", "resource": "Uuid* of application" } ``` -------------------------------- ### Update Video Name Source: https://jmvstream.com/developer Use this endpoint to change the name of an existing video. Requires the video hash, plan ID, and a JSON body containing the new name. ```HTTP PUT https://api.jmvstream.com/v1/videos/editVideo/[videohash]/[planid] { "name": "newvideoname" } ``` -------------------------------- ### UPLOAD - PATCH Source: https://jmvstream.com/developer Resumes or continues a video upload using a PATCH request. Requires specific headers and the upload ID. ```APIDOC ## PATCH UPLOAD - PATCH ### Description Continues or resumes an ongoing video upload process by sending a chunk of the file. ### Method PATCH ### Endpoint https://api.jmvstream.com/v1/videos/uploads/[id_do_upload] ### Headers - **Tus-Resumable**: 1.0.0 - **Content-Length**: [Amount in bytes remaining to be uploaded.] - **Upload-Offset**: [Initial byte for the upload] - **Upload-Metadata**: filename [base64_name] - **Content-Type**: application/offset+octet-stream - **gallery**: [Uuid of the gallery that will be uploaded later.] - **Authorization**: Bearer [your token] ### Request Body ``` @[caminho_do_arquivo] ``` ### Request Example ``` PATCH https://api.jmvstream.com/v1/videos/uploads/[id_do_upload] @[caminho_do_arquivo] ``` ``` -------------------------------- ### DELETE VIDEO BY HASH Source: https://jmvstream.com/developer Deletes a video using its hash and plan ID. Requires Authorization and Content-Type headers. ```APIDOC ## DELETE DELETE VIDEO BY HASH ### Description Deletes a specific video from the platform using its unique hash and plan ID. ### Method DELETE ### Endpoint https://api.jmvstream.com/v1/videos/deleteVideo/[videohash]/[planid] ### Headers - **Accept**: / - **Authorization**: Bearer [your token] - **Content-Type**: application/json ### Request Example ``` DELETE https://api.jmvstream.com/v1/videos/deleteVideo/[videohash]/[planid] ``` ``` -------------------------------- ### Edit Gallery (Folder) Source: https://jmvstream.com/developer Edits an existing gallery (folder) by updating its name. Requires the folder's UUID and authorization. ```APIDOC ## PUT /v1/folders/[ADD UUID] ### Description Edits an existing gallery by updating its name. ### Method PUT ### Endpoint https://api.jmvstream.com/v1/folders/[ADD UUID] ### Headers Authorization: Bearer [your token] ### Request Body - **name** (string) - Required - The new name for the gallery. ### Request Example ```json { "name": "TEST GALLERY" } ``` ### Response #### Success Response (200) - **id** (integer) - The ID of the updated folder. - **id_customer_plans** (integer) - The customer plan ID. - **parentId** (null) - Parent folder ID, if any. - **hierarchyLevel** (null) - Hierarchy level. - **created_date** (string) - The creation date of the folder. - **updated_date** (string) - The last updated date of the folder. - **uuid** (string) - The unique identifier of the folder. ``` -------------------------------- ### UPDATE VIDEO NAME Source: https://jmvstream.com/developer Updates the name of an existing video. Requires video hash, plan ID, and the new name in the request body. ```APIDOC ## PUT UPDATE VIDEO NAME ### Description Edits the name of an existing video. ### Method PUT ### Endpoint https://api.jmvstream.com/v1/videos/editVideo/[videohash]/[planid] ### Headers - **Authorization**: Bearer [your token] ### Request Body - **New video name**: (string) - The desired new name for the video. ``` -------------------------------- ### UPDATE VIDEO NAME Source: https://jmvstream.com/developer Updates the name of an existing video. Requires the video hash, plan ID, and the new video name in the request body. ```APIDOC ## PUT /v1/videos/editVideo/[videohash]/[planid] ### Description Updates the name of a specific video. ### Method PUT ### Endpoint /v1/videos/editVideo/[videohash]/[planid] ### Parameters #### Path Parameters - **videohash** (string) - Required - The unique hash of the video to update. - **planid** (string) - Required - The ID of the plan associated with the video. #### Request Body - **name** (string) - Required - The new name for the video. ### Request Example ```json { "name": "newvideoname" } ``` ``` -------------------------------- ### Update Live Event Status Source: https://jmvstream.com/developer Use this endpoint to change the status of a live event. Ensure you have the correct event details and your authorization token. ```json { "status": "LIVE", "eventId": 74, "customerPlanId": 30, "secret": "G3iizNcmhuuuSBZ4lhLcyNg9jUMcEy", "hash": "0Pt444u5uN2ltcB" } ``` ```http PUT https://api.jmvstream.com/v1/events/start-or-end-live { "status": "LIVE", "eventId": 74, "customerPlanId": 30, "secret": "G3iizNcmhuuuSBZ4lhLcyNg9jUMcEy", "hash": "0Pt444u5uN2ltcB" } ``` -------------------------------- ### Update Live Status Source: https://jmvstream.com/developer Updates the live status of an event. The secret is obtained from the customer_plans table and can be found using the SEARCH ALL EVENTS route. The hash is the event_hash. ```APIDOC ## PUT /v1/events/start-or-end-live ### Description Updates the live status of an event to ON_DEMAND, WAITING_LIVE, or LIVE. ### Method PUT ### Endpoint https://api.jmvstream.com/v1/events/start-or-end-live ### Headers - Accept: application/json, text/plain, /* - Authorization: Bearer [your token] - Content-Type: application/json;charset=UTF-8 ### Request Body - **status** (string) - Required - The new status (e.g., "LIVE", "ON_DEMAND", "WAITING_LIVE"). - **eventId** (integer) - Required - The ID of the event. - **customerPlanId** (integer) - Required - The ID of the customer plan. - **secret** (string) - Required - The secret key for the live plan. - **hash** (string) - Required - The event hash. ### Request Example ```json { "status": "LIVE", "eventId": 74, "customerPlanId": 30, "secret": "G3iizNcmhuuuSBZ4lhLcyNg9jUMcEy", "hash": "0Pt444u5uN2ltcB" } ``` ### Response #### Success Response (200) - **success** (string) - A message indicating the status update was successful. - **event** (object) - Details of the updated event. - **id** (integer) - **customer_plans_id** (integer) - **stream** (string) - **status** (string) - **date** (string) - **title** (string) - **video_hash** (string | null) - **event_hash** (string) ### Response Example ```json { "success": "Status of event 74 has been updated successfully", "event": { "id": 74, "customer_plans_id": 30, "stream": "EVT74_N7XyEGuGrkyDul3", "status": "LIVE", "date": "2023-11-30T15:00:00.000Z", "title": "testput", "video_hash": null, "event_hash": "0Pt444u5uN2ltcB" } } ``` ``` -------------------------------- ### DELETE GALLERY Source: https://jmvstream.com/developer Deletes a gallery by its UUID. Requires an Authorization header. ```APIDOC ## DELETE DELETE GALLERY ### Description Deletes a gallery using its unique identifier. ### Method DELETE ### Endpoint https://api.jmvstream.com/v1/folders/[ADD UUID] ### Headers - **Authorization**: Bearer [your token] ### Request Body ```json { "name": "TEST GALLERY" } ``` ### Request Example ``` DELETE https://api.jmvstream.com/v1/folders/ff92418f-778a-4ea2-8ade-e42414ce042f { "name": "TEST GALLERY" } ``` ### Response #### Success Response (200) - **1** (integer) - Indicates successful deletion. ``` -------------------------------- ### PUT EVENT UPDATE Source: https://jmvstream.com/developer Updates an existing event's details. Requires event ID, title, secret, and hash. ```APIDOC ## PUT /v1/events/update ### Description Updates the details of an existing event. ### Method PUT ### Endpoint https://api.jmvstream.com/v1/events/update ### Parameters #### Headers - **Authorization** (string) - Required - Bearer token for authentication. - **Accept** (string) - Optional - Specifies the desired response format (e.g., application/json). #### Request Body - **title** (string) - Optional - The new title for the event. - **eventId** (integer) - Required - The ID of the event to update. - **secret** (string) - Required - The secret associated with the event. - **hash** (string) - Required - The hash of the event. ### Request Example ```json { "title": "testput", "eventId": 74, "secret": "G3iizNcmhuuuSBZ4lhLcyNg9jUMcEy", "hash": "0Pt444u5uN2ltcB" } ``` ### Response #### Success Response (200) - **success** (string) - A message indicating the event was updated successfully. - **event** (object) - An object containing the updated event details. - **id** (integer) - The ID of the event. - **customer_plans_id** (integer) - The ID of the customer plan. - **stream** (string) - The stream identifier. - **status** (string) - The status of the event. - **date** (string) - The scheduled date and time of the event. - **title** (string) - The updated title of the event. - **video_hash** (string) - The hash for the video, if available. - **event_hash** (string) - The hash of the event. #### Response Example ```json { "success": "Event 74 updated successfully! 🔧", "event": { "id": 74, "customer_plans_id": 30, "stream": "EVT74_N7XyEGuGrkyDul3", "status": "WAITING_LIVE", "date": "2023-11-30T15:00:00.000Z", "title": "testput", "video_hash": null, "event_hash": "0Pt444u5uN2ltcB" } } ``` ``` -------------------------------- ### Edit Gallery Request Source: https://jmvstream.com/developer Updates the name of an existing gallery. Requires the gallery's UUID in the URL and the new name in the request body. ```http PUT https://api.jmvstream.com/v1/folders/ff92418f-778a-4ea2-8ade-e42414ce042f { "name": "TEST GALLERY" } ``` -------------------------------- ### Delete Event Source: https://jmvstream.com/developer Deletes one or more events from the system. ```APIDOC ## DELETE /v1/events/delete ### Description Deletes specified events. ### Method DELETE ### Endpoint https://api.jmvstream.com/v1/events/delete ### Headers - Accept: application/json, text/plain, /* - Authorization: Bearer [your token] - Content-Type: application/json;charset=UTF-8 ### Request Body - **eventIds** (array of integers) - Required - A list of event IDs to delete. ### Request Example ```json { "eventIds": [ 74 ] } ``` ### Response #### Success Response (200) - **success** (string) - A message confirming the deletion of the event(s). ### Response Example ```json { "success": "Event 73 deleted successfully" } ``` ``` -------------------------------- ### Delete Events Source: https://jmvstream.com/developer This endpoint allows for the deletion of one or more events. Provide a list of event IDs to be removed. ```json { "eventIds": [ 73 ] } ``` ```http DELETE https://api.jmvstream.com/v1/events/delete { "eventIds": [ 74 ] } ``` -------------------------------- ### Update Event API Request Body Source: https://jmvstream.com/developer Use this endpoint to update an existing event. Requires the event ID, a new title, and the secret associated with the event. The secret can be obtained from the SEARCH ALL EVENTS route. ```json { "title": "testput", "eventId": 74, "secret": "G3iizNcmhuuuSBZ4lhLcyNg9jUMcEy", "hash": "0Pt444u5uN2ltcB" } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.