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

# Validate parameters for create Swift package

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

Validate parameters for create Swift package

## Request body

- SwiftPackageUploadRequest
  - `author_name` string — The name of the author of the package.
  - `author_org` string — The organization of the author.
  - `license_url` string, uri, nullable — The license URL of this package.
  - `name` string, required — The name of this package.
  - `package_file` string, required — The primary file for the package.
  - `readme_url` string, uri — The URL of the readme for the package.
  - `repository_url` string, uri — The URL of the SCM repository 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.
  - `scope` string, required — A scope provides a namespace for related packages within the package registry.
  - `tags` string, nullable — A comma-separated values list of tags to add to the package.
  - `version` string, required — 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)
