文章 Update Media REST 端点

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.