---
title: "Update or create a country"
method: PUT
path: "/countries/{country}"
tags: ["countries"]
---

# Update or create a country

`PUT /countries/{country}`

## Path parameters

- `country` string, required

## Headers

- `Authorization` string, required

## Response `204`

OK, coutry was updated

## Other responses

- `400` — Name missing, country not updated
- `401` — No token provided

---

[API](https://skmtc.net/packtpublishing/apis/world-data-api.md) · [All operations](https://skmtc.net/packtpublishing/apis/world-data-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/packtpublishing/world-data-api/versions/9f0bf3e19907/schema)
