Zum Hauptinhalt springen
POST
/
cms
/
v3
/
source-code
/
{environment}
/
validate
/
{path}
ファイルのコンテンツを検証
curl --request POST \
  --url https://api.hubapi.com/cms/v3/source-code/{environment}/validate/{path} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file=@example-file
{
  "message": "Invalid input (details will vary based on the error)",
  "correlationId": "aeb5f871-7f07-4993-9211-075dc63e7cbf",
  "category": "VALIDATION_ERROR",
  "links": {
    "knowledge-base": "https://www.hubspot.com/products/service/knowledge-base"
  }
}
次のいずれかの製品またはそれ以上が必要です。
Marketing HubMarketing Hub -無料ツール
Sales HubSales Hub -無料ツール
Service HubService Hub -無料ツール
Content HubContent Hub -無料ツール
この API には、次のいずれかのスコープが必要です。
content

Authorizations

Authorization
string
header
required

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

Path Parameters

environment
string
required
path
string
required

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

Body

multipart/form-data
file
file

Response

default - */*
category
string
required

エラーカテゴリー

correlationId
string<uuid>
required

リクエストの固有ID。エラー報告またはサポートチケットには必ずこの値を含めてください

Example:

"aeb5f871-7f07-4993-9211-075dc63e7cbf"

message
string
required

エラーと修正手順(該当する場合)を記した、人が理解できるメッセージ

Example:

"An error occurred"

context
object

エラー条件に関する状況

Example:

"{invalidPropertyName=[propertyValue], missingScopes=[scope1, scope2]}"

errors
object[]

エラーに関する詳細情報

エラーまたは推奨の修正手順に関するドキュメントが含まれる関連付けられたURIへのリンク名の対応付け

subCategory
string

エラーに関する具体的な詳細が含まれる特定のカテゴリー