# Upsert Page Widget Role Upsert Page Widget Role Endpoint: PATCH /rest/2.0/PAGE_WIDGET_ROLE Version: 1.0 Security: JWT ## Header parameters: - `sessionId` (string, required) ## Request fields (application/json; charset=utf-8): - `brmObjects` (object) - `brmObjects.Id` (string, required) Id: Primary Key - `brmObjects.RoleId` (integer, required) RoleId - `brmObjects.CustomPageId` (integer, required) CustomPageId - `brmObjects.ExternalKey` (string, required) ExternalKey - `brmObjects.AccessFlag` (integer) AccessFlag - `brmObjects.Created` (string) System controlled field: Date and time the record was created - `externalIDFieldName` (string) Enum: "ExternalKey" ## Response 200 fields (application/json): - `upsertResponse` (array) - `upsertResponse.Id` (integer) - `upsertResponse.success` (boolean) - `upsertResponse.ErrorText` (string) - `upsertResponse.ErrorElementField` (string) - `upsertResponse.created` (boolean)