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

path
string
required

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

environment
string
required

Body

multipart/form-data
file
file

Response

default - */*

An error occurred.

correlationId
string<uuid>
required

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

Example:

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

message
string
required

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

Example:

"Invalid input (details will vary based on the error)"

category
string
required

エラーカテゴリー

Example:

"VALIDATION_ERROR"

subCategory
string

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

context
object

エラー条件に関する状況

Example:

"{\"missingScopes\":[\"scope1\",\"scope2\"],\"invalidPropertyName\":[\"propertyValue\"]}"

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

Example:

"{\"knowledge-base\":\"https://www.hubspot.com/products/service/knowledge-base\"}"

errors
object[]

エラーに関する詳細情報

I