POST
/
cms
/
v3
/
source-code
/
{environment}
/
validate
/
{path}
Validez le contenu d'un fichier
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"
  }
}
Produits pris en charge
Exige l'un des produits suivants ou un produit supérieur.
Marketing HubMarketing HubGratuit
Sales HubSales HubGratuit
Service HubService HubGratuit
Content HubContent HubGratuit

Portées requises

Cette API requiert l’une des portées suivantes :
  • 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

L'emplacement du fichier dans le système de fichiers.

Body

multipart/form-data

Response

default - */*

An error occurred.

The response is of type object.