metadata

Validate a metadata payload

Changed on

Validate a metadata payload against the JSON schema for its content_type without persisting it. Returns 200 on success and 422 on validation failure, with the same field-level error shape as the create endpoint.

post/metadata/validate/

Request

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

Request body

contentobject required

The metadata payload as a JSON object.

content_typestring required

The content type describing the structure of the metadata payload.

Response

The payload is valid for the given content type.

Changes

    • 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