Skip to main content
POST
Create a new org-list entry

Authorizations

Authorization
string
header
required

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

Path Parameters

listType
enum<string>
required

List type: SUPPLIER_BLACKLIST | BRAND_RESTRICTION | RETURN_REASON_CODE

Available options:
SUPPLIER_BLACKLIST,
BRAND_RESTRICTION,
RETURN_REASON_CODE

Body

application/json
value
string
required

Entry value. For SUPPLIER_BLACKLIST and BRAND_RESTRICTION, provide the UUID. For RETURN_REASON_CODE, provide a reason code string (normalized to upper-case server-side).

Required string length: 1 - 255
metadata
object | null

Optional metadata to attach to the entry (e.g. { note: 'Defective supplier' })

Response

Successful response

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