Skip to main content
POST
Declare Provider Version

Body

application/json

What a provider wheel claims about itself, declared before it is uploaded.

metadata and entry_points arrive as base64 text and hold the decoded bytes. The wheel uploaded afterwards must match the declaration.

Attributes: wheel_filename: Filename of the built wheel. wheel_sha256: Lowercase hex SHA-256 digest of the wheel file. wheel_size: Size of the wheel file in bytes. dist_info_directory: Name of the wheel's .dist-info directory, such as postgresql-1.0.0.dist-info. metadata: Contents of the wheel's METADATA file. entry_points: Contents of the wheel's entry_points.txt, or None when the wheel has none. changelog: Release notes for the version, or None.

wheel_filename
string
required
Required string length: 1 - 255
wheel_sha256
string
required
Pattern: ^[0-9a-f]{64}$
wheel_size
integer
required
dist_info_directory
string
required
Required string length: 1 - 255
metadata
file
required

Base64 text of the wheel's METADATA file, at most 4 MiB once decoded.

Maximum string length: 5592408
entry_points
file | null

Base64 text of the wheel's entry_points.txt file, at most 4 MiB once decoded.

Maximum string length: 5592408
changelog
string | null
Maximum string length: 65536

Response

Admission of the same declaration has not finished; its version is returned.

A provider version as its publish declaration returns it.

Only the declaration response carries operation_id; every other response leaves it out.

Attributes: operation_id: Publish operation the version's wheel is uploaded to, at PUT /providers/publish/{operation_id}/wheel.

prefix
string
required
name
string
required
version
string
required
distribution_name
string
required
Required string length: 1 - 200
operation_id
string
required
Minimum string length: 1
canonical
string
required
read-only

Slash-joined prefix/name canonical string of the owning provider.

Returns: Display form of the provider identity this version belongs to.

created_at
string<date-time>
updated_at
string<date-time>
wheel_filename
string | null
Minimum string length: 1
wheel_sha256
string | null
Pattern: ^[0-9a-f]{64}$
package
string | null
summary
string | null
keywords
string[]
schemas
Schemas · object[] | null
python_version
string | null
sdk_version
string | null
protocol_versions
integer[]
embedded_providers
Embedded Providers · object
operation_deadline_at
string<date-time> | null
changelog
string | null
status
enum<string>
default:awaiting_wheel

Publish lifecycle status for a provider version.

A declared version is awaiting_wheel until its wheel is uploaded, then staged, queued for the organization's provider host, admitting while the host admits it, and promoting while the admitted wheel is copied to the registry. It ends published (terminal) or failed; a failed version may be published again under the same version number.

Available options:
awaiting_wheel,
staged,
queued,
admitting,
promoting,
published,
failed
published_at
string<date-time> | null
failure_category
enum<string> | null

Why a provider version failed admission.

Available options:
wheel_refused,
wheel_lost,
digest_mismatch,
python_unavailable,
dependency_resolution_failed,
undeclared_embedded_provider,
unregistered_embedded_provider,
embedded_provider_not_depended_on,
unsupported_protocol,
import_failed,
missing_observe,
stored_wheel_conflict,
deadline_exceeded,
platform_error,
organization_deleted
error_message
string | null