メインコンテンツへスキップ
GET
/
cms
/
v3
/
source-code
/
{environment}
/
metadata
/
{path}
ファイルのメタデータを取得
curl --request GET \
  --url https://api.hubapi.com/cms/v3/source-code/{environment}/metadata/{path} \
  --header 'Authorization: Bearer <token>'
{
  "createdAt": 123,
  "folder": true,
  "id": "<string>",
  "name": "<string>",
  "updatedAt": 123,
  "archivedAt": 123,
  "children": [
    "<string>"
  ],
  "hash": "<string>"
}
次のいずれかの製品またはそれ以上が必要です。
Marketing HubMarketing Hub -無料ツール
Sales HubSales Hub -無料ツール
Service HubService Hub -無料ツール
Content HubContent Hub -Starter

認証

Authorization
string
header
必須

The access token received from the authorization server in the OAuth 2.0 flow.

パスパラメータ

environment
string
必須

ファイルの環境(「下書き」または「公開済み」)。

path
string
必須

ファイルのファイルシステムでの位置。

クエリパラメータ

properties
string

環境:「下書き」または「公開済み」のいずれかで、返すアセットのバージョンが決まります パス:ダウンロードしているCMSアセットのパス

レスポンス

successful operation

createdAt
integer<int64>
必須

オブジェクトが最初に作成された時点のタイムスタンプ。

folder
boolean
必須

このパスがフォルダーを参照するかどうかが決定されます。

id
string
必須

CMS開発者ファイルシステムにおけるファイルのパス。

name
string
必須

ファイルの名前。

updatedAt
integer<int64>
必須

オブジェクトが最後に更新された時点のタイムスタンプ。

archivedAt
integer<int64>

オブジェクトがアーカイブ(削除)された時点のタイムスタンプ。

children
string[]

オブジェクトがフォルダーの場合は、フォルダー内のファイルのファイル名が含まれます。

hash
string
Last modified on December 8, 2025