IRPCWorkspace.SetWorkspaceSettings
Vault API / standard write session or assertion returns metadata structure version
Stores the tab order of the workspace of an object type for the caller or as the default for all users, or resets the caller's order.
| Service | Workspaces MFiles.IRPCWorkspace |
|---|---|
| gRPC method | /MFiles.IRPCWorkspace/SetWorkspaceSettings |
| HTTP (mf-http-grpc) | POST /grpc/v1/set-workspace-settings |
| Request | SetWorkspaceSettingsRequest |
| Response | SetWorkspaceSettingsResponse |
| Book and level | Vault API, standard |
| Kind | write |
| Session | Required: a session (mfiles-session-id-bin metadata) or a session assertion (x-mf-session-assertion metadata). |
| Idempotent | no |
| Returns metadata structure version | yes (in the mfiles-metadata-version-bin trailer) |
| Streaming | none (unary) |
Remarks
- Requires a vault session. The actions
WORKSPACE_SETTINGS_ACTION_SET_AS_DEFAULT_TO_ALL_USERSandWORKSPACE_SETTINGS_ACTION_SET_AS_DEFAULT_TO_ALL_USERS_OVERRIDEalso need the vault rightmanage_common_views. workspace_settings.view_idsmust not be empty except withWORKSPACE_SETTINGS_ACTION_RESET_TO_DEFAULT, and every ID must be a tab view of this workspace; otherwise the call fails with "The parameter is incorrect.". A default order may contain only common views.WORKSPACE_SETTINGS_ACTION_RESET_TO_DEFAULTdeletes the caller's own order.WORKSPACE_SETTINGS_ACTION_SET_AS_DEFAULT_TO_ALL_USERS_OVERRIDEstores the default and deletes every user's own order for this object type.
Request: SetWorkspaceSettingsRequest
Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.
| Field | Type | Description |
|---|---|---|
object_type_id | int32 | The source object type of the workspace. |
workspace_settings_action | WorkspaceSettingsAction | What to do. Leave unset (WORKSPACE_SETTINGS_ACTION_APPLY_PERSONAL_SETTINGS) to store the caller's own order.Values: WORKSPACE_SETTINGS_ACTION_APPLY_PERSONAL_SETTINGS (0), WORKSPACE_SETTINGS_ACTION_RESET_TO_DEFAULT (1), WORKSPACE_SETTINGS_ACTION_SET_AS_DEFAULT_TO_ALL_USERS (2), WORKSPACE_SETTINGS_ACTION_SET_AS_DEFAULT_TO_ALL_USERS_OVERRIDE (3). |
workspace_settings | WorkspaceSettings | The tab view IDs in display order. Ignored when resetting. |
workspace_settings.view_ids[] | repeated int32 | View IDs in order. |
Response: SetWorkspaceSettingsResponse
No fields.