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

# Validate the contents of a file

`POST /cms/v3/source-code/{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.dev/hubspot/apis/hubspot-api-specification.md) · [All operations](https://skmtc.dev/hubspot/apis/hubspot-api-specification/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hubspot/hubspot-api-specification/revisions/6f56ac6a8fa3/schema)
