---
title: "Add a cif file with metadata to deposition in OneDep"
method: POST
path: "/onedep/{depID}/metadata"
tags: ["onedep"]
---

# Add a cif file with metadata to deposition in OneDep

`POST /onedep/{depID}/metadata`

Uploading metadata file to OneDep API. This is created by parsing the JSON metadata into the converter.

## Path parameters

- `depID` string, required

## Response `200`

File ID

- OnedepFileResponse
  - `created` string
  - `errors` unknown
  - `id` integer
  - `metadata` object — not there
  - `name` string — not there
  - `type` 'add-map' | 'co-cif' | 'md-cif' | 'co-pdb' | 'fsc-xml' | 'half-map' | 'img-emdb' | 'layer-lines' | 'mask-map' | 'nm-aux-amb' | 'nm-aux-gro' | 'nm-pea-any' | 'nm-res-amb' | 'nm-res-bio' | 'nm-res-cha' | 'nm-res-cns' | 'nm-res-cya' | 'nm-res-dyn' | 'nm-res-gro' | 'nm-res-isd' | 'nm-res-oth' | 'nm-res-ros' | 'nm-res-syb' | 'nm-res-xpl' | 'nm-shi' | 'nm-uni-nef' | 'nm-uni-str' | 'vo-map' | 'xa-mat' | 'xa-par' | 'xa-top' | 'xs-cif' | 'xs-mtz'
  - `warnings` unknown

## Other responses

- `400` — Error response
- `500` — Internal server error

---

[API](https://skmtc.net/swissopenem/apis/openem-depositor-api.md) · [All operations](https://skmtc.net/swissopenem/apis/openem-depositor-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/swissopenem/openem-depositor-api/versions/730e1f0808f6/schema)
