---
title: "Validate parameters for create Cargo package"
method: POST
path: "/packages/{owner}/{repo}/validate-upload/cargo/"
tags: ["packages"]
---

# Validate parameters for create Cargo package

`POST /packages/{owner}/{repo}/validate-upload/cargo/`

Validate parameters for create Cargo package

## Request body

- CargoPackageUploadRequest
  - `package_file` string, required — The primary file for the package.
  - `republish` boolean — If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
  - `tags` string, nullable — A comma-separated values list of tags to add to the package.

## 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)
