ETASCOM CRM V3 - Documentation API
Storybook
GitHub
Preparing search index...
app/api/production/work-stations/scan/route
POST
Function POST
POST
(
request
:
NextRequest
,
)
:
Promise
<
|
NextResponse
<
{
error
:
string
}
>
|
NextResponse
<
{
scanLog
:
{
id
:
string
;
action
:
string
;
scannedAt
:
Date
;
metadata
:
{}
}
;
workStation
:
{
id
:
string
;
name
:
string
;
code
:
string
;
description
:
string
|
null
;
location
:
string
|
null
;
capacity
:
number
|
null
;
costPerHour
:
number
|
null
;
equipment
:
never
[]
;
operations
:
never
[]
;
}
;
workOrder
:
|
{
id
:
string
;
number
:
string
;
status
:
WorkOrderStatus
;
product
:
string
|
undefined
;
productCode
:
string
|
undefined
;
steps
:
{
id
:
string
;
sequence
:
number
;
status
:
string
;
operation
:
string
;
operationCode
:
string
;
}
[]
;
}
|
null
;
}
,
>
,
>
Parameters
request
:
NextRequest
Returns
Promise
<
|
NextResponse
<
{
error
:
string
}
>
|
NextResponse
<
{
scanLog
:
{
id
:
string
;
action
:
string
;
scannedAt
:
Date
;
metadata
:
{}
}
;
workStation
:
{
id
:
string
;
name
:
string
;
code
:
string
;
description
:
string
|
null
;
location
:
string
|
null
;
capacity
:
number
|
null
;
costPerHour
:
number
|
null
;
equipment
:
never
[]
;
operations
:
never
[]
;
}
;
workOrder
:
|
{
id
:
string
;
number
:
string
;
status
:
WorkOrderStatus
;
product
:
string
|
undefined
;
productCode
:
string
|
undefined
;
steps
:
{
id
:
string
;
sequence
:
number
;
status
:
string
;
operation
:
string
;
operationCode
:
string
;
}
[]
;
}
|
null
;
}
,
>
,
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Storybook
GitHub
ETASCOM CRM V3 - Documentation API
Loading...