---
title: "Upload Report"
method: POST
path: "/api/countries/{country_id}/report"
tags: ["countries"]
---

# Upload Report

`POST /api/countries/{country_id}/report`

## Request

- Base URL: `https://api.regdoor.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.regdoor.com/api/countries/{country_id}/report`
- Auth: HTTP bearer

Upload a report for a country

## Path parameters

- `country_id` integer, required

## Request body `multipart/form-data`

- BodyUploadReportApiCountriesCountryIdReportPost
  - `file` string, binary, required

## Response `200`

Successful Response

- CountryBase
  - `id` integer, required
  - `code` string, required
  - `name` string, required
  - `description` string, nullable
  - `report_file_name` string, nullable
  - `report_url` string, nullable, required: Get the report URL based on the filename if one exists

## Other responses

- `404`: Not found
- `422`: Validation Error

---

[API](https://skmtc.dev/regdoor/apis/regdoor-api.md) - [All operations](https://skmtc.dev/regdoor/apis/regdoor-api/llms.txt) - [OpenAPI document](https://skmtc.dev/regdoor/apis/regdoor-api/revisions/7642336631af?raw)
