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

# Validate parameters for create Maven package

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

Validate parameters for create Maven package

## Request body

- MavenPackageUploadRequest
  - `artifact_id` string, nullable — The ID of the artifact.
  - `extra_files` string[], nullable — Extra files to include in the package. This can be a single file or multiple files.
  - `group_id` string, nullable — Artifact's group ID.
  - `ivy_file` string, nullable — The ivy file is an XML file describing the dependencies of the project.
  - `javadoc_file` string, nullable — Adds bundled Java documentation to the Maven package
  - `package_file` string, required — The primary file for the package.
  - `packaging` string, nullable — Artifact's Maven packaging type.
  - `pom_file` string, nullable — The POM file is an XML file containing the Maven coordinates.
  - `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.
  - `sbt_version` string, nullable
  - `scala_version` string, nullable
  - `sources_file` string, nullable — Adds bundled Java source code to the Maven package.
  - `tags` string, nullable — A comma-separated values list of tags to add to the package.
  - `tests_file` string, nullable — Adds bundled Java tests to the Maven 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)
