---
title: "Create a new deposition to OneDep"
method: POST
path: "/onedep"
tags: ["onedep"]
---

# Create a new deposition to OneDep

`POST /onedep`

Create a new deposition by uploading experiment and user details to OneDep API.

## Request body

- OnedepRequestCreate
  - `coordinates` boolean
  - `country` string, required
  - `email` string, required
  - `jwtToken` string, required
  - `method` string, required
  - `orcidIds` string[], required
  - `password` string

## Response `201`

Success response with Deposition ID

- OnedepDepositionResponse
  - `bmrb_id` string
  - `code` string
  - `created` string
  - `email` string
  - `emdb_id` string
  - `errors` OnedepOneDepError
    - `code` string
    - `extras` object
    - `message` string
  - `experiments` unknown
  - `hold_exp_date` string
  - `id` string
  - `last_login` string
  - `message` string
  - `pdb_id` string
  - `site` string
  - `site_url` string
  - `status` 'auco' | 'auth' | 'auxs' | 'auxu' | 'dep' | 'hold' | 'hpub' | 'obs' | 'polc' | 'proc' | 'rel' | 'repl' | 'reup' | 'wait' | 'wdrn'
  - `title` string

## 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/revisions/730e1f0808f6/schema)
