Authorization: ********************Authorization: Bearer ********************fabritec.integration-Tenant integration accesscurl --location --request PUT '/api/v1/crm/opportunities/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": {
"companyId": null,
"inlineProspect": null,
"contactId": null,
"projectName": "string",
"quoteReference": null,
"tenderNumber": null,
"description": null,
"salesOwnerId": null,
"estimatorId": null,
"country": "string",
"city": null,
"industryId": null,
"statusId": null,
"probabilityStageId": null,
"currencyId": 0,
"useManualExchangeRate": true,
"exchangeRateToBase": null,
"exchangeRateEffectiveAtUtc": null,
"expectedAwardDate": null,
"expectedDeliveryDate": null,
"quotationSentCompanyLocal": null,
"wonAtCompanyLocal": null,
"poNumber": null,
"lines": [
{
"id": null,
"description": null,
"quantity": 0,
"unitId": 0,
"unitPrice": 0,
"unitCost": null,
"scopeOfWorkIds": null
}
],
"scopeOfWorkIds": [
0
],
"competitors": [
{
"competitorId": 0,
"quotedPrice": null,
"wonAgainst": true
}
]
},
"rowVersion": null
}'{
"id": 0,
"enquiryNumber": "string",
"projectName": "string",
"quoteReference": null,
"tenderNumber": null,
"jobNumber": null,
"description": null,
"companyId": 0,
"companyName": "string",
"country": "string",
"city": null,
"statusId": 0,
"statusName": "string",
"statusColorHex": "string",
"probabilityStageId": 0,
"probabilityPercent": 0,
"currencyId": 0,
"currencyCode": "string",
"totalAmount": 0,
"totalAmountBase": 0,
"estimatedCost": 0,
"estimatedTonnage": 0,
"grossProfitValue": 0,
"grossProfitPercent": 0,
"weightedValue": 0,
"expectedAwardDate": null,
"expectedDeliveryDate": null,
"quotationSentAtUtc": null,
"rowVersion": "string",
"lines": [
{
"id": 0,
"lineNo": 0,
"description": null,
"quantity": 0,
"unitId": 0,
"unitSymbol": "string",
"unitPrice": 0,
"unitCost": null,
"lineCost": 0,
"lineTotal": 0,
"scopeOfWorkIds": [
0
]
}
]
}