v4

latestOpenAPI 3.0.3MIT2026-08-012188139.4 KB
metadata

Attach metadata to a package

Attach arbitrary metadata to a package.

post/metadata/packages/{package_slug_perm}/

Path parameters

package_slug_permstring required

The slug_perm of the package.

Request body

contentobject required

The metadata payload as a JSON object.

content_typestring required

The content type describing the structure of the metadata payload.

source_identitystring required

The identifier for the source of this metadata, for example 'upstream:npmjs'.

Response

The metadata entry was created successfully.

contentobject required

The metadata payload as a JSON object.

content_typestring required

The content type describing the structure of the metadata payload.

source_identitystring required

The identifier for the source of this metadata, for example 'upstream:npmjs'.

slug_permstring required

The unique slug identifying this metadata entry.