# Save Widgets Save Widgets Endpoint: POST /rest/2.0/WIDGET Version: 1.0 Security: JWT ## Header parameters: - `sessionId` (string, required) ## Request fields (application/json; charset=utf-8): - `brmObjects` (object) - `brmObjects.Version` (string) Version - `brmObjects.SystemFlag` (integer) System Widget - `brmObjects.Token` (string, required) Widget Token - `brmObjects.CompilationStatus` (string, required) CompilationStatus - `brmObjects.CreatedUserId` (string) System controlled field: Id of the user that created the record - `brmObjects.Created` (string) System controlled field: Date and time the record was created - `brmObjects.EnabledFlag` (integer) Enabled - `brmObjects.InteractiveFlag` (integer) Interactive Widget - `brmObjects.Updated` (string) System controlled field: Date and time the record was last updated - `brmObjects.UpdatedUserId` (string) System controlled field: Id of the last user that updated the record - `brmObjects.ErrorMessage` (string) Error Message - `brmObjects.Id` (string, required) ID - `brmObjects.Html` (string) Html - `brmObjects.JavaScript` (string) JavaScript - `brmObjects.Compiled` (string) Compiled - `brmObjects.Metadata` (string) Metadata - `brmObjects.Css` (string) Css - `brmObjects.WidgetKind` (string, required) WidgetType: Widget Type - `brmObjects.CompiledCss` (string) CompiledCss - `brmObjects.AccessPermissionItemId` (string) Access Permission Item Id - `brmObjects.LocalizationVersion` (string) LocalizationVersion ## Response 200 fields (application/json): - `retrieveResponse` (object) - `retrieveResponse.Version` (string) Version - `retrieveResponse.SystemFlag` (integer) System Widget - `retrieveResponse.Token` (string) Widget Token - `retrieveResponse.CompilationStatus` (string) CompilationStatus - `retrieveResponse.CreatedUserId` (string) System controlled field: Id of the user that created the record - `retrieveResponse.Created` (string) System controlled field: Date and time the record was created - `retrieveResponse.EnabledFlag` (integer) Enabled - `retrieveResponse.InteractiveFlag` (integer) Interactive Widget - `retrieveResponse.Updated` (string) System controlled field: Date and time the record was last updated - `retrieveResponse.UpdatedUserId` (string) System controlled field: Id of the last user that updated the record - `retrieveResponse.ErrorMessage` (string) Error Message - `retrieveResponse.Id` (string) ID - `retrieveResponse.Html` (string) Html - `retrieveResponse.JavaScript` (string) JavaScript - `retrieveResponse.Compiled` (string) Compiled - `retrieveResponse.Metadata` (string) Metadata - `retrieveResponse.Css` (string) Css - `retrieveResponse.WidgetKind` (string) WidgetType: Widget Type - `retrieveResponse.CompiledCss` (string) CompiledCss - `retrieveResponse.AccessPermissionItemId` (string) Access Permission Item Id - `retrieveResponse.LocalizationVersion` (string) LocalizationVersion ## Response 400 fields (application/json): - `error` (string) Bad request - `message` (string) Bad request ## Response 401 fields (application/json): - `error` (string) Unauthorized - `message` (string) Unauthorized ## Response 404 fields (application/json): - `error` (string) Not found - `message` (string) Not found ## Response 429 fields (application/json): - `error` (string) Too many requests - `message` (string) Too many requests ## Response 500 fields (application/json): - `error` (string) Internal error - `message` (string) Internal error