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

Modifying Tenant Space Attributes

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 2026-01-07 14:45:21

Description

Used to modify tenant space attributes.
Note:
Requires admin or space_admin permissions. For permission details, see Generate Access Token Interface.

Request

Request Example

POST /api/v1/space/`{LibraryId}`/`{SpaceId}`/extension?access_token=`{AccessToken}`&user_id=`{UserId}`

Request Parameter

Request parameters.
Description
Type
Required or Not
LibraryId
Media Library ID, obtained after creating a media library in 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 hyphen (-). For retrieval, see Create Tenant Space
String
Yes
AccessToken
Access Token, see Generate Access Token
String
Yes
UserId
User identity recognition. When the access token has admin privileges and user identity recognition is empty during token request, it can be temporarily used to designate user identity. For details, see Generate Access Token API.
String
No

Request Body

{
"isPublicRead": false,
"allowPhoto": true,
"allowVideo": true,
"allowPhotoExtname": [ ".jpg", ".png", ".heic" ],
"allowVideoExtname": [ ".mp4", ".mov" ],
"recognizeSensitiveContent": true
}
Request body field description:
Node Name (Keyword)
Description
Type
isPublicRead
Whether it is with public read permission, default to false. When the tenant space is set with public read permission, some Read APIs do not need to specify an access token. See the specific API description.
Boolean
allowPhoto
Whether to allow uploading images, default to false
Boolean
allowVideo
Whether to allow uploading video, default to false
Boolean
allowPhotoExtname
Empty array by default. If not empty, upload is allowed and the file is identified as an image only when its extension is in the list. If empty, the photo type is determined dynamically based on the uploaded file extension.
Array
allowVideoExtname
Empty array by default. If not empty, upload is allowed and the file is identified as a video only when its extension is in the list. If empty, the video type is determined dynamically based on the uploaded file extension.
Array
recognizeSensitiveContent
Whether to detect sensitive content, default to false
Boolean

Response

Response code

Modification succeeded, return HTTP 204 No Content.

Response Body

This request has no response body.

Error Codes

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

Ajuda e Suporte

Esta página foi útil?

comentários