# Upsert Quote Upsert Quote Endpoint: PATCH /rest/2.0/QUOTE Version: 1.0 Security: JWT ## Header parameters: - `sessionId` (string, required) ## Request fields (application/json; charset=utf-8): - `brmObjects` (object) - `brmObjects.AmendDate` (string) Amendment Date: Quote Amend Date - `brmObjects.ProductTreeMode` (string) ProductTreeMode - `brmObjects.QuoteCategory` (string) QuoteCategory - `brmObjects.SalesforceIsPrimary` (integer) Is Primary: Select to mark current quote as a primary source to sync data with saleforce opportunity object - `brmObjects.Id` (string, required) ID: Quote Id - `brmObjects.QuoteName` (string) Quote Name - `brmObjects.AccountId` (integer) Account - `brmObjects.Created` (string) System controlled field: Date and time the record was created - `brmObjects.Updated` (string) System controlled field: Date and time the record was last updated - `brmObjects.CreatedUserId` (string) System controlled field: Id of the user that created the record - `brmObjects.UpdatedUserId` (string) System controlled field: Id of the last user that updated the record - `brmObjects.EmailSentOn` (string) EmailSentOn - `brmObjects.SendQuote` (integer) Send Quote? - `brmObjects.Status` (string) Status - `brmObjects.ApprovedBy` (string) ApprovedBy - `brmObjects.FileName` (string) FileName - `brmObjects.NeedValidate` (string) NeedValidate - `brmObjects.StartDate` (string, required) Service Start Date - `brmObjects.EndDate` (string) Service End Date - `brmObjects.SalesforceAccountId` (string) Salesforce Account - `brmObjects.DefaultContractId` (integer) Default Contract - `brmObjects.QuoteSource` (string) Quote Source - `brmObjects.Currency` (integer, required) Currency: Currency Code - `brmObjects.QuoteDraftId` (string, required) QuoteDraftId - `brmObjects.SourceQuoteId` (integer) Create from Quote: Original Quote from which this one is copied - `brmObjects.ParentQuoteId` (integer) Parent Quote Id: Parent quote Id (for tree of quotes) if any - `brmObjects.OnEndDate` (string) On End Date: Renew or Terminate on end date (is used for contract creation) - `brmObjects.QuoteDocTemplateId` (integer) PDF Template: Quote Document Template - `brmObjects.OrderId` (integer) Order Id - `brmObjects.SalesforceOpportunityId` (string) Salesforce Opportunity Id - `brmObjects.SalesforceOpportunityUrl` (string) Salesforce Opportunity URL - `brmObjects.ProductCount` (string) Product Count - `brmObjects.ApprovalRequestId` (integer) Approval Request Id - `brmObjects.OriginalQuoteId` (integer) Original Quote: Original Quote to which the Amendment is done - `brmObjects.SalesforceBPQuoteId` (string) SalesforceBPQuoteId - `brmObjects.CalculationMode` (string) Calculation Mode: Termed - Calculates the quote based on the period structure defined in the Periods tab. Recommended for calculating long-term deals with a complicated structure. Evergreen - Calculates only the first subscription cycle cost for each quote item. - `brmObjects.SalesforcePrimaryOpportunityCount` (string) SalesforcePrimaryOpportunityCount - `brmObjects.IsReadyForActivation` (integer) IsReadyForActivation - `brmObjects.ApprovedOn` (string) ApprovedOn - `externalIDFieldName` (string) Enum: "QuoteDraftId" ## Response 200 fields (application/json): - `upsertResponse` (array) - `upsertResponse.Id` (integer) - `upsertResponse.success` (boolean) - `upsertResponse.ErrorText` (string) - `upsertResponse.ErrorElementField` (string) - `upsertResponse.created` (boolean)