vidinfra
  1. Folders
vidinfra
  • Documentation
    • Guides
      • Welcome
      • Getting Started
        • What is Vidinfra?
        • Quick Start Guide
        • Publish First Video
        • FAQs
      • Upload & Import Videos
        • Upload from Device
        • Import from Vimeo
        • Import from YouTube
        • Import from Zoom
      • DRM
        • Widevine DRM
        • FairPlay DRM
      • Accounts
        • Accounts
      • Organization Settings
        • User Management
        • Billing
        • Settings
  • API Reference
    • Admin
      • User
        • Create User
        • Find users
    • Auth
      • User Registration
      • User Login
      • Verify-email
      • Forgot Password
      • Forgot Password Verify OTP
      • Forgot Password Set
      • Resend OTP
      • Logout
      • Set Password
      • Check Account exists
      • Update Password
      • Google Oauth Redirect
      • Google Oauth Callback
      • api-access-check
      • New Auth token using Refresh token
      • Github Oauth Redirect
      • Google Oauth Callback Copy
      • Get User Sessions
      • Delete User Sessions
    • User
      • Profiles
      • Profile Updates
      • DEL User
      • Profile Avatar update
      • Permission Details
    • Libraries
      • Get Library List
      • Get Library Details
      • Create New Library
      • Destory Library
      • Update Library
      • Update Logo
      • Get Library Settings
      • Upsert Library Settings
    • Organization
      • Delete a Organization
      • List organizations
      • Create an organization
      • Get an organization
      • Update an organization
      • Switch an organization
    • Organization's invitations
      • Sent invitation list
      • Send invitation
      • Show Token
      • Accept Invitation
      • Reject Invitation
    • Audits
      • Audits
    • Members
      • Members
      • test permission
    • API Keys
      • Get All API keys
      • Get API Key
      • Create API Keys
      • Destory API Keys
      • api key middleware (test)
    • Folders
      • Get All Folders
        GET
      • Create Folder
        POST
      • Get Folder by ID
        GET
      • Update Folder
        PUT
      • Move Folder
        PUT
      • Bulk Move Folders (empty)
        PUT
      • Delete Folder
        DELETE
      • Get Folder Tree
        GET
    • Videos
      • Get All video of a library
      • Get a Video
      • Get Video using Custom field
      • create video
      • Upload thumbnail
      • Update video
      • Destroy video
      • Search Video
      • batch video Assign to collecition
      • Mark Thumbnail As Default
      • Get Video Timelines
    • Video Metas
      • Create or Update Video Meta Data
      • Get All Meta Data of a Video
    • Video Captions
      • create video caption
      • Delete a video Caption
      • Get video caption
    • Video Chapter
      • create video chapters
    • Uploads
    • Tags
      • Get all tags upder a project
      • Create Tag
      • Delete tag
    • Players
      • Get all Players
      • Create Player
      • Get Specific player
      • update player
      • Delete Player
      • Player Mark as default
    • Webhook Endpoints
      • Get webhook
      • Create web hook
      • GET Webhook by ID
      • Update webhook
      • Delete web hook
    • Advertisements
      • Get all ads
      • Create ads
      • Get single advertisement
      • Update ads
      • Delete ads
    • Migrate
      • welcome
      • Debug
      • test
    • Webhook Event Logs
      • Get webhook event logs
      • Resend Webhook event by Id
      • Resend All Webhook Event
    • Analytics Direct Api
      • geo-distribution
      • Project Views
      • avg video watch
      • Total watch Time
      • Project Avg Watch per Unique user
      • Total Player Error
      • project popularity-analysis
      • Project Collection Insights
      • Collection Views
      • Collection avg Watch time
      • Collection Avg Watch per unique user
      • Collection Geo Distribution
      • Get all Users
      • User media views
      • User Avg video watch
      • user Player log
      • user sessions
      • Get all Video
      • video Player error
      • Video View
      • video Geo Distribution
      • video Avg watch
      • copy
    • Streams
      • Create livestream
      • Get all stream
      • Get a livestream
      • update status of livestream
      • delete a stream
      • get livestream historys
    • Stream Metas
    • Usages
      • Bandwidth Usage
      • Storage Usage
      • Get Over Usage
    • Encoding profile
      • Get all profiles
      • Create profile
      • Get A profile
      • Update a encoding profile
      • Delete a encoding profile
      • Make a profile default
    • Library Matrics
      • Admin
      • Get Matrics
      • project Usages
    • Access Control
      • Put Access Control
      • Get access Control
    • Analytics
      • Library Get geo-distribution
      • Library views
      • Library avg video watch
      • Project Total Watch
      • Library Avg Watch per Unique user
      • Library All Player Errors
      • Library Popularity Analysis
      • Library Collections insights
      • Collection Geo Distribution
      • Collection avg watch time
      • Collection avg watch per unique User
      • Collection Player error
      • Video Geo Distribution
      • Video views
      • Video Avg Watch
      • Video Player Log
      • User
      • User Avg Video Watch
      • User Total Watch
      • User player error log
    • Plan
      • public plans
      • current plan
      • Account Plans
      • Get plan by ID
      • Admin Get Plans
      • Admin Create plan
      • Admin Get Plan by ID
      • Admin Update Plan by ID
      • Admin Delete plan By ID
      • Admin Get Plan Metrices
      • Admin Get Plan Metrices By Type
      • Admin Create Plan Matrices By Type
      • Admin Update Plan Metrices By ID
    • Upload Tokens
      • Obtain credentials before upload
    • subscribe
      • stripe redirect subscription
        • create checkout session
        • over usage payment
      • current subscription
      • discribe a plan by planCode
      • subscribe
      • cancel subscription
      • over usage payment
      • Stripe over usage autopay payment (test)
    • Transaction
      • Get All Transaction
    • Invoice
      • Get All Invoices
      • Get Invoice by ID
    • vimeo video importer
      • vimeo job list
      • Vimeo videos by migration id
      • Vimeo Set video importer
      • Vimeo sync import
      • Vimeo import videos
      • Get pull videos
      • pull video from url
    • test
      • Welcome to vidinfra Copy
      • metrics
    • transcoding service
      • get all jobs
      • get a job
      • create jobs
      • Update a job
      • Delete a job
      • create job v2
    • transcoding service v2
      • create jobs
      • get all jobs
      • get a job
      • Update a job
      • Delete a job
    • User
    • Welcome to vidinfra
      GET
    • health check
      GET
    • Regions List
      GET
    • key
      POST
    • Untitled Endpoint
      GET
  • CDN
    • Distributions
      • CDN Distribution API – Create Distribution
      • Ge Distribution List
      • Update A Distribution
      • Delete Distribution
      • Get A Distribution Details
    • SSL Certificate Manage
      • Let's Encrypt
      • Get Certificate
      • Delete Certificate
      • Get List Certificates
      • Create New SSL
    • Origins/Upstreams Manage
    • Purge
    • Cache Rules
    • Access Rules
    • Analytics
      • analytics
  • Billing
    • Plans
    • Billable Metrics
    • Pricing Rules
    • Usage Metrics
    • Charge Models
    • Pricing Tiers
    • Wallet
    • Invoices
    • Audit Logs
    • Add-Ons
  1. Folders

Create Folder

Developing
POST
/libraries/{libraryID}/folders

Create Folder under Another Folder or a Library#

šŸ“£ This endpoint creates a folder under another folder or directly under a library. In this POST request, the library ID has to be provided. In the payload, you'll need to provide the folder name and parent ID. If the parent ID is left empty, the folder will be created directly under the library.

✳ List of URL Parameters#

library_id: 36 characters in length

✳ List of JSON Payload Parameters#

name: Name of the folder
parent_id: Name of the parent folder

šŸ“¢ Info Message#

Here the URL is constructed like:
POST /libraries/<library_id>/folders
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.vidinfra.com/libraries//folders' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "rakajui folder 3",
    "parent_id" : ""
}'
Response Response Example
200 - Success
{"message":"collection successfully created.","result":{"id":"495db0ce-7abc-429f-a4ac-2c5dccd8c0a9","project_id":"74e2188c-25c2-4e42-be8b-e9adb5741d4d","vod_transcoding_profiles_id":"","name":"Raka Collection","status":"active","logo_url":null,"password":null,"description":null,"parent_id":"00000000-0000-0000-0000-000000000000","child_list":null,"rgt":0,"lft":0,"created_at":"2024-02-07T15:47:01.319+06:00","updated_at":"2024-02-07T15:47:01.319+06:00","deleted_at":null,"children_count":0,"videos_count":0},"success":true}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Body Params application/json

Examples

Responses

🟢200OK
application/json
Body

🟠400Bad Request
🟠400Bad Request
🟢201Created
🟢201Created
🟢201Created folder
🟢201Created
Modified atĀ 2025-07-16 09:28:51
Previous
Get All Folders
Next
Get Folder by ID
Built with