ETASCOM CRM V3 - Documentation API
Storybook
GitHub
Preparing search index...
app/api/production/finished-products/[id]/route
PUT
Function PUT
PUT
(
request
:
NextRequest
,
__namedParameters
:
{
params
:
Promise
<
{
id
:
string
}
>
}
,
)
:
Promise
<
|
NextResponse
<
{
error
:
string
}
>
|
NextResponse
<
{
category
:
{
code
:
string
|
null
;
id
:
string
;
name
:
string
}
|
null
;
categoryId
:
string
|
null
;
code
:
string
;
color
:
string
|
null
;
cost
:
number
;
createdAt
:
Date
;
depth
:
number
|
null
;
description
:
string
|
null
;
files
:
{
category
:
string
|
null
;
filename
:
string
;
id
:
string
;
mimetype
:
string
;
size
:
number
;
url
:
string
;
}
[]
;
height
:
number
|
null
;
id
:
string
;
imageKey
:
string
|
null
;
imageUrl
:
string
|
null
;
internalNotes
:
string
|
null
;
isActive
:
boolean
;
name
:
string
;
productType
:
string
;
salesTax
:
{
code
:
string
;
id
:
string
;
name
:
string
;
rate
:
number
}
|
null
;
salesTaxId
:
string
|
null
;
sellingPrice
:
number
;
unitOfMeasure
:
|
{
code
:
string
;
id
:
string
;
name
:
string
;
symbol
:
string
|
null
}
|
null
;
unitOfMeasureId
:
string
|
null
;
updatedAt
:
Date
;
variant
:
string
|
null
;
weight
:
number
|
null
;
width
:
number
|
null
;
}
,
>
,
>
Parameters
request
:
NextRequest
__namedParameters
:
{
params
:
Promise
<
{
id
:
string
}
>
}
Returns
Promise
<
|
NextResponse
<
{
error
:
string
}
>
|
NextResponse
<
{
category
:
{
code
:
string
|
null
;
id
:
string
;
name
:
string
}
|
null
;
categoryId
:
string
|
null
;
code
:
string
;
color
:
string
|
null
;
cost
:
number
;
createdAt
:
Date
;
depth
:
number
|
null
;
description
:
string
|
null
;
files
:
{
category
:
string
|
null
;
filename
:
string
;
id
:
string
;
mimetype
:
string
;
size
:
number
;
url
:
string
;
}
[]
;
height
:
number
|
null
;
id
:
string
;
imageKey
:
string
|
null
;
imageUrl
:
string
|
null
;
internalNotes
:
string
|
null
;
isActive
:
boolean
;
name
:
string
;
productType
:
string
;
salesTax
:
{
code
:
string
;
id
:
string
;
name
:
string
;
rate
:
number
}
|
null
;
salesTaxId
:
string
|
null
;
sellingPrice
:
number
;
unitOfMeasure
:
|
{
code
:
string
;
id
:
string
;
name
:
string
;
symbol
:
string
|
null
}
|
null
;
unitOfMeasureId
:
string
|
null
;
updatedAt
:
Date
;
variant
:
string
|
null
;
weight
:
number
|
null
;
width
:
number
|
null
;
}
,
>
,
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Storybook
GitHub
ETASCOM CRM V3 - Documentation API
Loading...