Advanced
Validate the contents of a file
Changed onValidates the file contents passed to the endpoint given a specified path and environment. Accepts multipart/form-data content type.
post/cms/source-code/2026-09/{environment}/validate/{path}
Request
- Base URLhttps://api.hubapi.com
- URLhttps://api.hubapi.com/cms/source-code/2026-09/{environment}/validate/{path}
- AuthOAuth 2Authorization code: https://app.hubspot.com/oauth/authorizeToken URL: https://api.hubapi.com/oauth/v1/token scopes: content
Path parameters
environmentstring required
pathstring required
The specific path of the source code file to validate. It must be a valid string pattern.
Request body multipart/form-data
Response
An error occurred.
Example response
{
"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"
}
}Changes
- info
the endpoint scheme security
private_appswas removed from the API
- info