# Dashboard Actions Details on the various actions that can be performed on the Dashboard resource, including the expected parameters and the potential responses. ##### Contents * [Delete](#delete) * [Get](#get) * [Patch](#patch) * [Send Report](#send-report) * [Validate Context](#validate-context)
## Delete Deletes a dashboard ```ruby result = client.dashboard.delete(dashboardId: my_dashboard_id) puts result ``` #### Authentication The client must be configured with a valid api access token to call this action. The token must include at least one of the following scopes: all.Organization, all.User, dashboard.*, or dashboard.delete. #### Available Parameters | Name | Type | Required | Description | Default | Example | | ---- | ---- | -------- | ----------- | ------- | ------- | | dashboardId | string | Y | ID of the associated dashboard | | 575ece2b7ae143cd83dc4a9b | | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com | #### Successful Responses | Code | Type | Description | | ---- | ---- | ----------- | | 200 | [Success](_schemas.md#success) | If dashboard was successfully deleted | #### Error Responses | Code | Type | Description | | ---- | ---- | ----------- | | 400 | [Error](_schemas.md#error) | Error if malformed request | | 404 | [Error](_schemas.md#error) | Error if dashboard was not found |
## Get Retrieves information on a dashboard ```ruby result = client.dashboard.get(dashboardId: my_dashboard_id) puts result ``` #### Authentication No api access token is required to call this action. #### Available Parameters | Name | Type | Required | Description | Default | Example | | ---- | ---- | -------- | ----------- | ------- | ------- | | dashboardId | string | Y | ID of the associated dashboard | | 575ece2b7ae143cd83dc4a9b | | password | string | N | Password for password-protected dashboards | | myPassword | | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com | #### Successful Responses | Code | Type | Description | | ---- | ---- | ----------- | | 200 | [Dashboard](_schemas.md#dashboard) | Dashboard information | #### Error Responses | Code | Type | Description | | ---- | ---- | ----------- | | 400 | [Error](_schemas.md#error) | Error if malformed request | | 404 | [Error](_schemas.md#error) | Error if dashboard was not found |
## Patch Updates information about a dashboard ```ruby result = client.dashboard.patch( dashboardId: my_dashboard_id, dashboard: my_dashboard) puts result ``` #### Authentication The client must be configured with a valid api access token to call this action. The token must include at least one of the following scopes: all.Organization, all.User, dashboard.*, or dashboard.patch. #### Available Parameters | Name | Type | Required | Description | Default | Example | | ---- | ---- | -------- | ----------- | ------- | ------- | | dashboardId | string | Y | ID of the associated dashboard | | 575ece2b7ae143cd83dc4a9b | | dashboard | [Dashboard Patch](_schemas.md#dashboard-patch) | Y | Object containing new dashboard properties | | [Dashboard Patch Example](_schemas.md#dashboard-patch-example) | | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com | #### Successful Responses | Code | Type | Description | | ---- | ---- | ----------- | | 200 | [Dashboard](_schemas.md#dashboard) | Update dashboard information | #### Error Responses | Code | Type | Description | | ---- | ---- | ----------- | | 400 | [Error](_schemas.md#error) | Error if malformed request | | 404 | [Error](_schemas.md#error) | Error if dashboard was not found |
## Send Report Sends a snapshot of a dashboard ```ruby result = client.dashboard.send_report( dashboardId: my_dashboard_id, reportConfig: my_report_config) puts result ``` #### Authentication The client must be configured with a valid api access token to call this action. The token must include at least one of the following scopes: all.Organization, all.User, dashboard.*, or dashboard.sendReport. #### Available Parameters | Name | Type | Required | Description | Default | Example | | ---- | ---- | -------- | ----------- | ------- | ------- | | dashboardId | string | Y | ID of the associated dashboard | | 575ece2b7ae143cd83dc4a9b | | reportConfig | [Dashboard Send Report](_schemas.md#dashboard-send-report) | Y | Object containing report options | | [Dashboard Send Report Example](_schemas.md#dashboard-send-report-example) | | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com | #### Successful Responses | Code | Type | Description | | ---- | ---- | ----------- | | 202 | [Job Enqueued API Result](_schemas.md#job-enqueued-api-result) | If dashboard report was enqueued to be sent | #### Error Responses | Code | Type | Description | | ---- | ---- | ----------- | | 400 | [Error](_schemas.md#error) | Error if malformed request | | 404 | [Error](_schemas.md#error) | Error if dashboard was not found |
## Validate Context Validates a context object against the dashboard's context configuration ```ruby result = client.dashboard.validate_context( dashboardId: my_dashboard_id, ctx: my_ctx) puts result ``` #### Authentication No api access token is required to call this action. #### Available Parameters | Name | Type | Required | Description | Default | Example | | ---- | ---- | -------- | ----------- | ------- | ------- | | dashboardId | string | Y | ID of the associated dashboard | | 575ece2b7ae143cd83dc4a9b | | ctx | [Dashboard Context Instance](_schemas.md#dashboard-context-instance) | Y | The context object to validate | | [Dashboard Context Instance Example](_schemas.md#dashboard-context-instance-example) | | password | string | N | Password for password-protected dashboards | | myPassword | | duration | string | N | Duration of data to fetch in milliseconds | | 3600000 | | resolution | string | N | Resolution in milliseconds | | 60000 | | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com | #### Successful Responses | Code | Type | Description | | ---- | ---- | ----------- | | 200 | [Validate Context Success](_schemas.md#validate-context-success) | If context is valid | #### Error Responses | Code | Type | Description | | ---- | ---- | ----------- | | 400 | [Validate Context Error](_schemas.md#validate-context-error) | Error if context is invalid | | 404 | [Error](_schemas.md#error) | Error if dashboard or application was not found |