# POST /v2/repositories/{} is deprecated

Docker Hub API deprecated POST /v2/repositories/{} without giving a shutdown date yet.

Docker Hub deprecated the POST /v2/repositories/{} endpoint without a shutdown date. The provider noted that the endpoint is replaced by Create repository. Calls to this endpoint will eventually fail once it is removed.

## What to use instead

Create the repository with POST /v2/namespaces/{namespace}/repositories instead.

- API: Docker Hub API (hub.docker.com)
- Kind: Endpoint removal
- Announced: September 19, 2025
- Takes effect: no date given yet
- Calls after that day: fail
- Calls it hits: `POST /v2/repositories/{}`
- Source: [Announcement](https://docs.docker.com/reference/api/hub/deprecated/)
- Verified: October 27, 2026, against Docker Hub API's own pages
- Page: https://www.okapi.bot/providers/docker/breaking-changes/post-v2-repositories-is-deprecated/

## Docker Hub API's words

> POST /v2/repositories and POST /v2/repositories/{namespace} replaced by Create repository.

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
