ETASCOM CRM V3 - Documentation API
Storybook
GitHub
Preparing search index...
app/api/upload/route
POST
Function POST
POST
(
request
:
NextRequest
,
)
:
Promise
<
|
NextResponse
<
{
error
:
string
}
>
|
NextResponse
<
{
success
:
boolean
;
message
:
string
;
data
:
{
files
:
(
|
{}
|
{
id
:
string
;
filename
:
string
;
key
:
string
;
mimetype
:
string
;
size
:
number
;
url
:
string
;
postId
:
null
;
employeeExpenseId
:
null
;
employeeId
:
null
;
companyId
:
null
;
trainingId
:
null
;
createdAt
:
Date
;
updatedAt
:
Date
;
}
)
[]
;
uploadType
:
string
;
entityId
:
string
;
}
;
}
,
>
,
>
Parameters
request
:
NextRequest
Returns
Promise
<
|
NextResponse
<
{
error
:
string
}
>
|
NextResponse
<
{
success
:
boolean
;
message
:
string
;
data
:
{
files
:
(
|
{}
|
{
id
:
string
;
filename
:
string
;
key
:
string
;
mimetype
:
string
;
size
:
number
;
url
:
string
;
postId
:
null
;
employeeExpenseId
:
null
;
employeeId
:
null
;
companyId
:
null
;
trainingId
:
null
;
createdAt
:
Date
;
updatedAt
:
Date
;
}
)
[]
;
uploadType
:
string
;
entityId
:
string
;
}
;
}
,
>
,
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Storybook
GitHub
ETASCOM CRM V3 - Documentation API
Loading...