Skip to content
API Now! is currently in closed beta. We are constantly updating these guides as we release updates!

Resource Conflict

← Back to Overview

This error occurs when the database rejects a write operation due to a conflict with existing data. The most common cause is violating a unique key constraint (e.g., trying to sign up with an email address or username that is already registered).


{
"type": "https://docs.apinow.app/errors/conflict",
"title": "Resource Conflict",
"status": 409,
"code": "RESOURCE_CONFLICT",
"detail": "A record with the email 'alice@example.com' already exists.",
"instance": "/api/v1/users"
}

For API Consumers (What it means & how to fix)

Section titled “For API Consumers (What it means & how to fix)”
  • Duplicate Data: You are attempting to write a value that must be unique but already exists in the system. Check the detail message to see which field is conflicted, and use a different value or update the existing record instead of creating a duplicate.

For API Authors (Domain & API Modeler notes)

Section titled “For API Authors (Domain & API Modeler notes)”
  • Unique Constraints: In the Domain Modeler, check which properties have the “Unique” attribute enabled, or have semantics that enforce uniqueness (such as Username or Email).