Content

Validate source code file

Validate a source code file within a specified environment in your HubSpot account. This endpoint is useful for checking the correctness of code files before deployment or further processing. The validation process requires the file to be uploaded in a multipart/form-data request.

post/cms/source-code/2026-03/{environment}/validate/{path}

Path parameters

environmentstring required
pathstring required

The path of the source code file to validate. This should be a string that matches the file's location within the environment.

Response

An error occurred.

Changes