URLs
POST api/v1/media/{mediagalleryid}/files.xml (or .json)
CREATE a media file.
请求参数
名称 |
类型 |
描述 |
必需 |
默认值 |
选项 |
MediaGalleryId |
int? |
Media Gallery Id |
是 |
||
Name |
string |
Name |
是 |
||
Description |
string |
Description |
否 |
||
ContentType |
string |
Required when sending FileData |
否 |
||
FileName |
string |
Required when sending FileData |
否 |
||
FileData |
Byte[] |
FileData, FileUrl or FileUploadContext is required. |
否 |
||
FileUploadContext |
string |
FileData, FileUrl or FileUploadContext is required. |
否 |
||
FileUrl |
string |
FileData, FileUrl or FileUploadContext is required. |
否 |
||
IsFeatured |
bool? |
Default is false. |
否 |
||
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. |
否 |
||
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. |
否 |
||
PostDate |
DateTime? |
Defaults to current datetime if not specified. |
否 |