Create dashboard filter

POST {{baseUrl}}/dashboards/filters?aid=1234

Creates a new dashboard filter in your account group. To create a filter, you must have one of the following permissions: * Edit dashboard templates for all users in account group permission (Account Admin). * Edit own dashboard templates permission (Regular User).

Request Params

KeyDatatypeRequiredDescription
aidnumberA unique identifier associated with your account group. You can retrieve your AccountGroupId from the /account-groups endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.

Request Body

{"context"=>[{"dataSourceId"=>"VIRTUAL_AGENT", "filters"=>[{"filterId"=>"TEST_LABEL", "metricIds"=>["WEB_PAGE_LOAD_COMPLETION_RATE", "WEB_TTFB", "WEB_AVAILABILITY"], "values"=>["45862", "59749"]}]}], "name"=>"cea-filter", "description"=>"Global filter for CEA widgets"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{"aid":"11","context":[{"dataSourceId":"VIRTUAL_AGENT","filters":[{"filterId":"TEST_LABEL","metricIds":["WEB_PAGE_LOAD_COMPLETION_RATE","WEB_TTFB","WEB_AVAILABILITY"],"values":["45862","59749"]}]}],"id":"65bc18e8f2073a4a469cd958","name":"cea-filter","description":"Global filter for CEA widgets","createdBy":{"uid":"1","name":"Test User"},"modifiedDate":"2024-02-01T22:19:19Z","createdDate":"2024-02-01T22:19:19Z","modifiedBy":{"uid":"1","name":"Test User"},"_links":{"self":{"href":"https://api.thousandeyes.com/v7/link/to/resource/id","templated":true,"type":"incididunt Ut proident fugiat deserunt","deprecation":"pariatur aute ut mollit","name":"esse id velit","profile":"id nisi ut","title":"eiusmod in","hreflang":"aliqui"}}}