tencent cloud

Smart Media Hosting

Product Introduction
Product Overview
Feature Description
Product Strengths
Use Cases
Basic Concept
Purchase Guide
Quick Start
Create Media Library
Initiate request
Service Level API Document
History
Introduction
API Category
Making API Requests
PaaS Service APIs
Official Cloud Disk APIs
Data Types
Error Codes
Business Level API Document
Introduction
Access Token Operation API
Tenant Space Operation API
File Operation API
Directory or Album Operation API
Recycle Bin Operation API
Quota Operation API
Query Task Operation API
Search Operation API
Historical Version Operations API
Directory and File Batch Operation API
Collection Operation API
Error Codes
SDK Documentation
Android SDK
iOS SDK
HarmonyOS SDK
FAQs
Enterprise Network Disk
Product Introduction
Purchase Guide
Quick Start
FAQs
Service Level Agreement
Glossary

Add File to Favorite Space

PDF
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-01-07 14:52:08

Description

Add to favorites.

Request

Request Example

POST /api/v1/favorite/{LibraryId}/{SpaceId}?access_token={AccessToken}

Request Parameter

Request parameters.
Description
Type
Required or Not
LibraryId
Media Library ID, obtained after creating a media library through the media hosting console, see create media library
String
Yes
SpaceId
Space ID. If the media library is in single-tenant mode, this parameter is fixed as a hyphen (-); if the media library is in multi-tenant mode, you must specify this parameter.
String
Yes
AccessToken
Access token, see Generate Access Token
String
Yes

Request Body

application/json
Request body example
{
"path": "A/B"
}
or
{
"inode": "xxxx"
}
Request body field description:
Request parameters.
Description
Type
Required or Not
inode
File directory ID
String
No
path
Directory path. When unfavoriting according to the path, choose either the path or inode parameter. If both inode and path are specified, inode takes precedence.
String
No

Response

Response code

Added to favorites, return HTTP 200 OK.

Response Body

application/json
Response body example
{
"inode": "xxxx"
}
Response body field description
Response Parameters
Description
Type
inode
File directory ID
String

Error Codes

This request operation has no special error messages. For common error messages, see Error Codes.

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan