Skip to main content
POST
/
api
/
supplier-variant-constraints
Create a new supplier-variant constraint
curl --request POST \
  --url https://app.solya.app/api/supplier-variant-constraints \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "moq": 12,
  "packMultiple": null,
  "supplierId": "supplier-uuid-123",
  "variantId": "variant-uuid-abc"
}
'
{
  "createdAt": "2026-06-05T10:00:00.000Z",
  "id": "constraint-uuid-new",
  "moq": 12,
  "packMultiple": null,
  "supplierId": "supplier-uuid-123",
  "updatedAt": null,
  "variantId": "variant-uuid-abc"
}

Authorizations

Authorization
string
header
required

User session token issued by NextAuth. For human users accessing Solya via the web application.

Body

application/json
moq
required
packMultiple
required
supplierId
string
required
Minimum string length: 1
variantId
string
required
Minimum string length: 1

Response

Successful response

data
object
required
success
enum<boolean>
required
Available options:
true