---
title: "Create Metadata for DOI"
method: PUT
path: "/metadata/{doi}"
---

# Create Metadata for DOI

`PUT /metadata/{doi}`

## Request

- Base URL: `https://mds.test.datacite.org`
- URL: `https://mds.test.datacite.org/metadata/{doi}`
- Auth: HTTP basic

Stores a new version of metadata. The request body must contain valid DataCite XML, or another supported metadata format. Authentication credentials are required.

## Path parameters

- `doi` string, required

## Headers

- `Content-Type` string, required
- `charset` string, required

## Request body `application/x-www-form-urlencoded`

- object
  - `RAW_BODY` string: Metadata in DataCite XML, or another supported metadata format.

## Response `201`

201

## Other responses

- `401`: 401
- `403`: 403
- `415`: 415

---

[API](https://skmtc.dev/datacite/apis/mds.md) - [All operations](https://skmtc.dev/datacite/apis/mds/llms.txt) - [OpenAPI document](https://skmtc.dev/datacite/apis/mds/revisions/0ea088ad989d?raw)
