---
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

## Changes

- **2025-04-22** `e9622afffae2` — 2 info
  - api tag `onedep` added
  - api tag `deposition` removed
- **2025-01-28** `45a901b3d819` — 1 breaking, 1 info
  - removed the success response with the status `200`
  - added the success response with the status `201`
- **2024-11-18** `d36a427419d3` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/swissopenem/apis/openem-depositor-api/changes/onedep/post.md)

---

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