---
title: "Creates a new upload in the specified source"
method: POST
path: "/sources/{sourceId}/uploads"
tags: ["Source", "Upload"]
---

# Creates a new upload in the specified source

`POST /sources/{sourceId}/uploads`

## Request body

- Upload — An instance of case data being written to the server.
  - `status` 'IN_PROGRESS' | 'SUCCESS' | 'ERROR'
  - `summary` object
    - `numCreated` integer
    - `numUpdated` integer
    - `error` 'INTERNAL_ERROR' | 'SOURCE_CONFIGURATION_ERROR' | 'SOURCE_CONFIGURATION_NOT_FOUND' | 'SOURCE_CONTENT_NOT_FOUND' | 'SOURCE_CONTENT_DOWNLOAD_ERROR' | 'PARSING_ERROR' | 'VALIDATION_ERROR' | 'DATA_UPLOAD_ERROR' | 'TIMEOUT'
  - `created` union
    - string
    - object
    - number

## Response `201`

Created

- Upload — An instance of case data being written to the server.
  - `status` 'IN_PROGRESS' | 'SUCCESS' | 'ERROR'
  - `summary` object
    - `numCreated` integer
    - `numUpdated` integer
    - `error` 'INTERNAL_ERROR' | 'SOURCE_CONFIGURATION_ERROR' | 'SOURCE_CONFIGURATION_NOT_FOUND' | 'SOURCE_CONTENT_NOT_FOUND' | 'SOURCE_CONTENT_DOWNLOAD_ERROR' | 'PARSING_ERROR' | 'VALIDATION_ERROR' | 'DATA_UPLOAD_ERROR' | 'TIMEOUT'
  - `created` union
    - string
    - object
    - number

## Other responses

- `400` — Malformed request
- `403` — Forbidden
- `404` — Not found
- `422` — Unprocessable entity
- `500` — Internal server error

---

[API](https://skmtc.net/globaldothealth/apis/global-health-curator-service-api.md) · [All operations](https://skmtc.net/globaldothealth/apis/global-health-curator-service-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/globaldothealth/global-health-curator-service-api/revisions/5b1151265235/schema)
