All operations
OPPORTUNITIES
Adds a competitor entry to an opportunity or sales quote equipment item.
Set `RecordType` and `RecordId` to the record the competitor belongs to (for example `Opportunity` or `SalesQuoteEquipment`). For an opportunity whose status is lost, the entry is marked as the competitor the sale was lost to. For sales quote equipment, the entry is also copied to the other equipment lines on the same quote with the same make and model.
POST
/api/v2/opportunities/competitorsAuthentication
Choose one supported method for this request.
Request body
The competitor entry to create. `CompetitorId` is ignored.
competitorIdinteger · int32recordTypestringrecordIdinteger · int32competitorNamestringmakestringmodelstringserialNostringequipYearstringhoursinteger · int32attachmentsstringoptionsstringadditionalEquipmentstringcommentsstringquotedPricenumber · doubleratenumber · doubletermsstringpaymentnumber · doublewonAgainstbooleanlostTobooleanrentalIntervalstringrentalRatenumber · doublerentalDurationinteger · int32
Responses
Competitor created successfully.
Standard response envelope
isSuccessmessageerrorsdataRead the result from data. When isSuccess is false, errors lists what went wrong. Handling errors
competitorIdinteger · int32recordTypestringrecordIdinteger · int32competitorNamestringmakestringmodelstringserialNostringequipYearstringhoursinteger · int32attachmentsstringoptionsstringadditionalEquipmentstringcommentsstringquotedPricenumber · doubleratenumber · doubletermsstringpaymentnumber · doublewonAgainstbooleanlostTobooleanrentalIntervalstringrentalRatenumber · doublerentalDurationinteger · int32