URLs
PUT api/v1/media/{mediagalleryid}/files/{fileid}.xml (or .json)
UPDATE a media file.
请求参数
名称 |
类型 |
描述 |
必需 |
默认值 |
选项 |
MediaGalleryId |
int? |
Media Gallery Id |
是 |
||
FileId |
int? |
File Id |
是 |
||
Name |
string |
Name |
否 |
||
Description |
string |
Description |
否 |
||
ContentType |
string |
Required when updating FileData, FileUrl or FileUploadContext. |
否 |
||
FileName |
string |
Required when updating FileData, FileUrl or FileUploadContext. |
否 |
||
FileData |
Byte[] |
File Data |
否 |
||
FileUploadContext |
string |
File Upload Context |
否 |
||
FileUrl |
string |
File Url |
否 |
||
IsFeatured |
bool? |
Is Featured |
否 |
||
FeaturedImage |
string |
Used to include a featured image when IsFeatured is true. |
否 |
||
Tags |
string |
A comma separated list of tags. |
否 |
||
Preview |
bool? |
Specifies if the request is preview only. |
否 |
||
ExtendedAttributes |
RestExtendedAttributes |
Extended Attributes |
否 |
||
OpenGraphTitle |
string |
Title used in Open Graph title tag. |
否 |
||
OpenGraphDescription |
string |
Description used in Open Graph description tag. |
否 |
||
OpenGraphImageContext |
string |
Context id for file used in Open Graph image. |
否 |
||
OpenGraphImageFileName |
string |
Name for file used in Open Graph image. |
否 |
||
Remove Open Graph Image. |
bool? |
Remove Open Graph Image |
否 |
||
MetaTitle |
string |
Used in the page's title. |
否 |
||
MetaKeywords |
string |
Keywords for the page's meta keywords tag. |
否 |
||
MetaDescription |
string |
Description for the page's meta description tag. |
否 |