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

# Validate parameters for create Generic package

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

Validate parameters for create Generic package

## Request body

- GenericPackageUploadRequest
  - `filepath` string, required — The full filepath of the package including filename.
  - `name` string, nullable — The name of this package.
  - `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.
  - `version` string, nullable — The raw version for this 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)
