# Upsert Contract Upsert Contract Endpoint: PATCH /rest/2.0/CONTRACT Version: 1.0 Security: JWT ## Header parameters: - `sessionId` (string, required) ## Request fields (application/json; charset=utf-8): - `brmObjects` (object) - `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.AccountId` (string, required) Account ID: Parent Id - `brmObjects.Id` (string, required) ID - `brmObjects.EndDate` (string) End Date - `brmObjects.OnEndDate` (string, required) On End Date - `brmObjects.RateClassId` (integer) Rate Class: Allows the selection of an existing rate class in the system to serve as a starting point for the contract rates. - `brmObjects.ContractStatus` (string) ContractStatus - `brmObjects.ContractNumber` (string, required) Number: Indicates the unique contract identifier. - `brmObjects.StartDate` (string, required) Start Date - `externalIDFieldName` (string) Enum: "ContractNumber" ## Response 200 fields (application/json): - `upsertResponse` (array) - `upsertResponse.Id` (integer) - `upsertResponse.success` (boolean) - `upsertResponse.ErrorText` (string) - `upsertResponse.ErrorElementField` (string) - `upsertResponse.created` (boolean)