---
title: "Validate parameters used for create."
method: POST
path: "/files/{owner}/{repo}/validate/"
tags: ["files"]
---

# Validate parameters used for create.

`POST /files/{owner}/{repo}/validate/`

Validate parameters used for create.

## Request body

- PackageFileUploadRequest
  - `filename` string, required — Filename for the package file upload.
  - `md5_checksum` string — MD5 checksum for a POST-based package file upload.
  - `method` 'put_parts' | 'put' | 'post' | 'presigned' | 'unsigned_put' — The method to use for package file upload.
  - `sha256_checksum` string — SHA256 checksum for a PUT-based package file upload.

## Response `204`

Validation was successful, parameters are OK.

## Other responses

- `400` — Request could not be processed (see detail).
- `404` — Namespace (owner) or repository not found
- `422` — Missing or invalid parameters (see detail).

---

[API](https://skmtc.dev/cloudsmith/apis/cloudsmith-api-v1.md) · [All operations](https://skmtc.dev/cloudsmith/apis/cloudsmith-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cloudsmith/cloudsmith-api-v1/revisions/4d7879df9b2f/schema)
