metadata

Attach metadata to a package

Changed on

Attach arbitrary metadata to a package.

post/metadata/packages/{package_slug_perm}/

Request

  • Base URL
    https://api.cloudsmith.io/v2
  • Auth
    • API key in header X-Api-Key
    • or HTTP basic

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.

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      the endpoint scheme security apikey was removed from the API

    • info

      the endpoint scheme security basic was removed from the API