Skip to content

Create manufacturer

POST
/api/manufacturers
curl --request POST \
--url http://localhost:3000/api/manufacturers \
--header 'Content-Type: application/json' \
--cookie session=<session> \
--data '{ "name": "example", "slug": "example", "description": "example", "productFocus": "example", "website": "example", "notes": "example", "popular": false }'
Media type application/json
object
name
required
string
slug

Auto-generated from name when omitted

string
description
string
productFocus
string
website
string
notes
string
popular
boolean

Manufacturer created

Media type application/json
object
data
object
id
required
string format: uuid
name
required
string
slug
string
nullable
description
string
nullable
productFocus
string
nullable
website
string
nullable
notes
string
nullable
popular
required
boolean
source
required

Vendor = shipped catalog row (read-only), customer = user-created

string
Allowed values: vendor customer
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
Example
{
"data": {
"source": "vendor"
}
}

Validation error

Media type application/json
object
error
required
string
Example
{
"error": "Not found"
}

Not authenticated

Media type application/json
object
error
required
string
Example
{
"error": "Not found"
}