SetDefault

[POST] .../v1/userdashboard/setdefault

Sets the current user's default dashboard. Use this method to choose which assigned dashboard opens by default for the current request user. The method always uses the current request user from context, verifies that dashboard_id is already assigned to that user, clears previous default flags for the user, marks the selected assignment as default, writes an action log record and returns row_affected. The request body is required and dashboard_id must be positive; the method does not accept user_id because default dashboard selection is personal to the current request user. Business errors such as missing body, invalid dashboard_id, missing current user context, missing assignment, database errors, transaction failures and action-log failures are returned as HTTP 200 ErrorResult.

Request Parameters

Name Type Required Description
dashboard_id Int64 Required Dashboard ID assigned to the current user.

Request Example

{
  "dashboard_id": 3
}

Response Parameters

Name Type Description
ok Boolean Indicates whether the request completed successfully.
result Update Update operation result.

Response Example

{
  "ok": true,
  "result": {
    "row_affected": 1,
    "ids": []
  }
}