# POST /v2/repositories is deprecated

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

The provider deprecated POST /v2/repositories without a shutdown date. Calls hitting POST /v2/repositories will fail. The endpoint is replaced by Create repository.

## 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-2/

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