# Upsert Extension Widgets Upsert Extension Widgets Endpoint: PATCH /rest/2.0/EXTENSION_WIDGET Version: 1.0 Security: JWT ## Header parameters: - `sessionId` (string, required) ## Request fields (application/json; charset=utf-8): - `brmObjects` (object) - `brmObjects.ErrorMessage` (string) Error Message - `brmObjects.Updated` (string) System controlled field: Date and time the record was last updated - `brmObjects.Version` (string) Version - `brmObjects.EnabledFlag` (integer) Enabled - `brmObjects.SystemFlag` (integer) System Widget - `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.Id` (string, required) ID - `brmObjects.Created` (string) System controlled field: Date and time the record was created - `brmObjects.CompilationStatus` (string, required) CompilationStatus - `brmObjects.Css` (string) Css - `brmObjects.LocalizationVersion` (string) LocalizationVersion - `brmObjects.CompiledCss` (string) CompiledCss - `brmObjects.WidgetKind` (string, required) WidgetKind - `brmObjects.Token` (string, required) Token - `brmObjects.Html` (string) Html - `brmObjects.JavaScript` (string) JavaScript - `brmObjects.Compiled` (string) Compiled - `externalIDFieldName` (string) Enum: "Token" ## Response 200 fields (application/json): - `upsertResponse` (array) - `upsertResponse.Id` (integer) - `upsertResponse.success` (boolean) - `upsertResponse.ErrorText` (string) - `upsertResponse.ErrorElementField` (string) - `upsertResponse.created` (boolean)