Skip to main content
POST
Import Edited Ghost Product Rows
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

/checklist/royaltyproducts/import-rows Synchronously creates Product records from edited ghost rows surfaced by /checklist/royaltyproducts. Delegates to the standard ProductCreationService so imported products get default splits and stats queue jobs. Resolves or creates Artist entities from displayArtist, and when label is provided, resolves or creates a Label entity (case-insensitive name match) and links it via LabelProduct. Skips UPCs already present in the tenant catalog (counted in skipped, not errors). UPCs with a trailing .0 are normalized. Each row runs in its own transaction. Concurrent inserts that hit the unique-UPC constraint are also treated as skips. Limits: Up to 100 rows per request. Authorization:
  • Required role: admin or higher
Method: POST

Code Examples

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Body

application/json
items
object[]
required
Maximum array length: 100

Response

Rows imported (partial successes possible)

status
string
Example:

"success"

message
string
data
object