ETASCOM CRM V3 - Documentation API
Storybook
GitHub
Preparing search index...
app/api/sales/leads/[id]/route
PUT
Function PUT
PUT
(
request
:
NextRequest
,
__namedParameters
:
{
params
:
Promise
<
{
id
:
string
}
>
}
,
)
:
Promise
<
|
NextResponse
<
{
error
:
string
}
>
|
NextResponse
<
{
addresses
:
{
city
:
string
|
null
;
country
:
string
|
null
;
id
:
string
;
isDefault
:
boolean
;
name
:
string
|
null
;
postalCode
:
string
|
null
;
state
:
string
|
null
;
street
:
string
|
null
;
type
:
string
;
}
[]
;
businessOpportunities
:
{
expectedRevenue
:
number
|
null
;
id
:
string
;
name
:
string
;
number
:
string
;
probability
:
number
|
null
;
stage
:
BusinessOpportunityStage
;
status
:
OpportunityStatus
;
}
[]
;
company
:
{
id
:
string
;
name
:
string
}
|
null
;
files
:
{
createdAt
:
Date
;
filename
:
string
;
id
:
string
;
key
:
string
;
mimetype
:
string
;
size
:
number
;
url
:
string
;
}
[]
;
salesOffers
:
{
createdAt
:
Date
;
id
:
string
;
number
:
string
;
projectName
:
string
|
null
;
status
:
SalesOfferStatus
;
}
[]
;
}
&
{}
,
>
,
>
Parameters
request
:
NextRequest
__namedParameters
:
{
params
:
Promise
<
{
id
:
string
}
>
}
Returns
Promise
<
|
NextResponse
<
{
error
:
string
}
>
|
NextResponse
<
{
addresses
:
{
city
:
string
|
null
;
country
:
string
|
null
;
id
:
string
;
isDefault
:
boolean
;
name
:
string
|
null
;
postalCode
:
string
|
null
;
state
:
string
|
null
;
street
:
string
|
null
;
type
:
string
;
}
[]
;
businessOpportunities
:
{
expectedRevenue
:
number
|
null
;
id
:
string
;
name
:
string
;
number
:
string
;
probability
:
number
|
null
;
stage
:
BusinessOpportunityStage
;
status
:
OpportunityStatus
;
}
[]
;
company
:
{
id
:
string
;
name
:
string
}
|
null
;
files
:
{
createdAt
:
Date
;
filename
:
string
;
id
:
string
;
key
:
string
;
mimetype
:
string
;
size
:
number
;
url
:
string
;
}
[]
;
salesOffers
:
{
createdAt
:
Date
;
id
:
string
;
number
:
string
;
projectName
:
string
|
null
;
status
:
SalesOfferStatus
;
}
[]
;
}
&
{}
,
>
,
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Storybook
GitHub
ETASCOM CRM V3 - Documentation API
Loading...