Update an asset

Craft Cross CMSのアセットを更新します。 ファイルの更新、またはメタデータ(名前、説明、代替テキストなど)の更新が可能です。

Required Scope

APIの実行に必要なScopeです。

beta.cms.asset.update

Required Role

管理画面でScopeを追加する際に必要な権限です。

Craft Cross CMS > CMSの編集
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

更新対象のアセットID

file

更新するファイル(オプション)

string

アセットのメタデータ(JSON形式の文字列、オプション)。 以下のプロパティを含むJSONオブジェクトを文字列化して送信します:

  • title: アセットのタイトル(string)
  • description: アセットの説明(string)
  • altText: 代替テキスト(string)
  • tagIds: タグIDの配列(array of strings)
Headers
string

今後利用する可能性のある予約語です。現在は設定不要です。

string

認証情報を含むトークンです。"Authorization" ヘッダーに Bearer <token> の形式で設定してください。

string

リクエストのコンテンツタイプを指定します。通常は application/json を使用してください。

Response

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Choose an example:
application/json