---
title: "Validate the contents of a file"
method: POST
path: "/cms/source-code/2026-03/{environment}/validate/{path}"
tags: ["Advanced"]
---

# Validate the contents of a file

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

Validates the file contents passed to the endpoint given a specified path and environment. Accepts multipart/form-data content type.

## Path parameters

- `environment` string, required
- `path` string, required

## Response `default`

An error occurred.

---

[API](https://skmtc.net/hubspot/apis/hubspot-api-specification.md) · [All operations](https://skmtc.net/hubspot/apis/hubspot-api-specification/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hubspot/hubspot-api-specification/versions/f9c7181056c5/schema)
