Chilkat Online Tools

unicodeC / Datadog API Collection / Update a dashboard

Back to Collection Items

#include <C_CkHttpW.h>
#include <C_CkJsonObjectW.h>
#include <C_CkStringBuilderW.h>
#include <C_CkHttpResponseW.h>

void ChilkatSample(void)
    {
    HCkHttpW http;
    BOOL success;
    HCkJsonObjectW json;
    HCkStringBuilderW sbRequestBody;
    HCkHttpResponseW resp;
    HCkStringBuilderW sbResponseBody;
    HCkJsonObjectW jResp;
    int respStatusCode;
    const wchar_t *v_Type;
    const wchar_t *Alert_id;
    const wchar_t *Viz_type;
    const wchar_t *Live_span;
    const wchar_t *Title;
    const wchar_t *Title_align;
    const wchar_t *Title_size;
    int id_int;
    int X;
    int Y;
    int Width;
    int Height;
    BOOL Is_column_break;
    const wchar_t *strVal;
    const wchar_t *name;
    int j;
    int count_j;
    const wchar_t *value;
    int k;
    int count_k;
    const wchar_t *default;
    const wchar_t *prefix;
    const wchar_t *title;
    const wchar_t *layout_type;
    const wchar_t *author_handle;
    const wchar_t *author_name;
    const wchar_t *created_at;
    const wchar_t *description;
    const wchar_t *id;
    BOOL is_read_only;
    const wchar_t *modified_at;
    const wchar_t *reflow_type;
    const wchar_t *url;
    int i;
    int count_i;

    // This example assumes the Chilkat API to have been previously unlocked.
    // See Global Unlock Sample for sample code.

    http = CkHttpW_Create();

    // Use this online tool to generate code from sample JSON: Generate Code to Create JSON

    // The following JSON is sent in the request body.

    // {
    //   "title": "",
    //   "layout_type": "ordered",
    //   "widgets": [
    //     {
    //       "definition": {
    //         "type": "alert_graph",
    //         "alert_id": "",
    //         "viz_type": "timeseries",
    //         "time": {
    //           "live_span": "5m"
    //         },
    //         "title": "nisi et cupidatat sunt",
    //         "title_align": "right",
    //         "title_size": "officia anim occaecat aliq"
    //       },
    //       "id": 45068649,
    //       "layout": {
    //         "x": 0,
    //         "y": 0,
    //         "width": 0,
    //         "height": 0,
    //         "is_column_break": true
    //       }
    //     },
    //     {
    //       "definition": {
    //         "type": "alert_graph",
    //         "alert_id": "",
    //         "viz_type": "timeseries",
    //         "time": {
    //           "live_span": "5m"
    //         },
    //         "title": "laborum dolor cillum ad",
    //         "title_align": "center",
    //         "title_size": "et"
    //       },
    //       "id": -40196020,
    //       "layout": {
    //         "x": 0,
    //         "y": 0,
    //         "width": 0,
    //         "height": 0,
    //         "is_column_break": false
    //       }
    //     }
    //   ],
    //   "author_handle": "test@datadoghq.com",
    //   "author_name": "John Doe",
    //   "created_at": "2017-08-17T07:10:36.438Z",
    //   "description": "eiusmod do est velit enim",
    //   "id": "123-abc-456",
    //   "is_read_only": false,
    //   "modified_at": "1996-07-08T08:32:43.112Z",
    //   "notify_list": [
    //     "commodo voluptate eu",
    //     "consectetur amet"
    //   ],
    //   "reflow_type": "fixed",
    //   "restricted_roles": [
    //     "id cupidatat",
    //     "quis ullamco"
    //   ],
    //   "tags": [
    //     "quis qui mollit ex",
    //     "ullamco enim cupidatat"
    //   ],
    //   "template_variable_presets": [
    //     {
    //       "name": "Lorem ex enim",
    //       "template_variables": [
    //         {
    //           "name": "sed ",
    //           "value": "quis eu",
    //           "values": [
    //             "in"
    //           ]
    //         },
    //         {
    //           "name": "non",
    //           "value": "ea dolore esse elit Lorem",
    //           "values": [
    //             "sed voluptate nulla"
    //           ]
    //         }
    //       ]
    //     },
    //     {
    //       "name": "est ",
    //       "template_variables": [
    //         {
    //           "name": "ullamco sint",
    //           "value": "ad ex irure",
    //           "values": [
    //             "Duis elit dolor"
    //           ]
    //         },
    //         {
    //           "name": "proident adipisicing culpa cons",
    //           "value": "occaecat",
    //           "values": [
    //             "esse fugiat"
    //           ]
    //         }
    //       ]
    //     }
    //   ],
    //   "template_variables": [
    //     {
    //       "name": "host1",
    //       "available_values": [
    //         "my-host",
    //         "host1",
    //         "host2"
    //       ],
    //       "default": "my-host",
    //       "defaults": [
    //         "my-host-1",
    //         "my-host-2"
    //       ],
    //       "prefix": "host"
    //     },
    //     {
    //       "name": "host1",
    //       "available_values": [
    //         "my-host",
    //         "host1",
    //         "host2"
    //       ],
    //       "default": "my-host",
    //       "defaults": [
    //         "my-host-1",
    //         "my-host-2"
    //       ],
    //       "prefix": "host"
    //     }
    //   ],
    //   "url": "/dashboard/123-abc-456/example-dashboard-title"
    // }

    json = CkJsonObjectW_Create();
    CkJsonObjectW_UpdateString(json,L"title",L"");
    CkJsonObjectW_UpdateString(json,L"layout_type",L"ordered");
    CkJsonObjectW_UpdateString(json,L"widgets[0].definition.type",L"alert_graph");
    CkJsonObjectW_UpdateString(json,L"widgets[0].definition.alert_id",L"");
    CkJsonObjectW_UpdateString(json,L"widgets[0].definition.viz_type",L"timeseries");
    CkJsonObjectW_UpdateString(json,L"widgets[0].definition.time.live_span",L"5m");
    CkJsonObjectW_UpdateString(json,L"widgets[0].definition.title",L"nisi et cupidatat sunt");
    CkJsonObjectW_UpdateString(json,L"widgets[0].definition.title_align",L"right");
    CkJsonObjectW_UpdateString(json,L"widgets[0].definition.title_size",L"officia anim occaecat aliq");
    CkJsonObjectW_UpdateInt(json,L"widgets[0].id",45068649);
    CkJsonObjectW_UpdateInt(json,L"widgets[0].layout.x",0);
    CkJsonObjectW_UpdateInt(json,L"widgets[0].layout.y",0);
    CkJsonObjectW_UpdateInt(json,L"widgets[0].layout.width",0);
    CkJsonObjectW_UpdateInt(json,L"widgets[0].layout.height",0);
    CkJsonObjectW_UpdateBool(json,L"widgets[0].layout.is_column_break",TRUE);
    CkJsonObjectW_UpdateString(json,L"widgets[1].definition.type",L"alert_graph");
    CkJsonObjectW_UpdateString(json,L"widgets[1].definition.alert_id",L"");
    CkJsonObjectW_UpdateString(json,L"widgets[1].definition.viz_type",L"timeseries");
    CkJsonObjectW_UpdateString(json,L"widgets[1].definition.time.live_span",L"5m");
    CkJsonObjectW_UpdateString(json,L"widgets[1].definition.title",L"laborum dolor cillum ad");
    CkJsonObjectW_UpdateString(json,L"widgets[1].definition.title_align",L"center");
    CkJsonObjectW_UpdateString(json,L"widgets[1].definition.title_size",L"et");
    CkJsonObjectW_UpdateInt(json,L"widgets[1].id",-40196020);
    CkJsonObjectW_UpdateInt(json,L"widgets[1].layout.x",0);
    CkJsonObjectW_UpdateInt(json,L"widgets[1].layout.y",0);
    CkJsonObjectW_UpdateInt(json,L"widgets[1].layout.width",0);
    CkJsonObjectW_UpdateInt(json,L"widgets[1].layout.height",0);
    CkJsonObjectW_UpdateBool(json,L"widgets[1].layout.is_column_break",FALSE);
    CkJsonObjectW_UpdateString(json,L"author_handle",L"test@datadoghq.com");
    CkJsonObjectW_UpdateString(json,L"author_name",L"John Doe");
    CkJsonObjectW_UpdateString(json,L"created_at",L"2017-08-17T07:10:36.438Z");
    CkJsonObjectW_UpdateString(json,L"description",L"eiusmod do est velit enim");
    CkJsonObjectW_UpdateString(json,L"id",L"123-abc-456");
    CkJsonObjectW_UpdateBool(json,L"is_read_only",FALSE);
    CkJsonObjectW_UpdateString(json,L"modified_at",L"1996-07-08T08:32:43.112Z");
    CkJsonObjectW_UpdateString(json,L"notify_list[0]",L"commodo voluptate eu");
    CkJsonObjectW_UpdateString(json,L"notify_list[1]",L"consectetur amet");
    CkJsonObjectW_UpdateString(json,L"reflow_type",L"fixed");
    CkJsonObjectW_UpdateString(json,L"restricted_roles[0]",L"id cupidatat");
    CkJsonObjectW_UpdateString(json,L"restricted_roles[1]",L"quis ullamco");
    CkJsonObjectW_UpdateString(json,L"tags[0]",L"quis qui mollit ex");
    CkJsonObjectW_UpdateString(json,L"tags[1]",L"ullamco enim cupidatat");
    CkJsonObjectW_UpdateString(json,L"template_variable_presets[0].name",L"Lorem ex enim");
    CkJsonObjectW_UpdateString(json,L"template_variable_presets[0].template_variables[0].name",L"sed ");
    CkJsonObjectW_UpdateString(json,L"template_variable_presets[0].template_variables[0].value",L"quis eu");
    CkJsonObjectW_UpdateString(json,L"template_variable_presets[0].template_variables[0].values[0]",L"in");
    CkJsonObjectW_UpdateString(json,L"template_variable_presets[0].template_variables[1].name",L"non");
    CkJsonObjectW_UpdateString(json,L"template_variable_presets[0].template_variables[1].value",L"ea dolore esse elit Lorem");
    CkJsonObjectW_UpdateString(json,L"template_variable_presets[0].template_variables[1].values[0]",L"sed voluptate nulla");
    CkJsonObjectW_UpdateString(json,L"template_variable_presets[1].name",L"est ");
    CkJsonObjectW_UpdateString(json,L"template_variable_presets[1].template_variables[0].name",L"ullamco sint");
    CkJsonObjectW_UpdateString(json,L"template_variable_presets[1].template_variables[0].value",L"ad ex irure");
    CkJsonObjectW_UpdateString(json,L"template_variable_presets[1].template_variables[0].values[0]",L"Duis elit dolor");
    CkJsonObjectW_UpdateString(json,L"template_variable_presets[1].template_variables[1].name",L"proident adipisicing culpa cons");
    CkJsonObjectW_UpdateString(json,L"template_variable_presets[1].template_variables[1].value",L"occaecat");
    CkJsonObjectW_UpdateString(json,L"template_variable_presets[1].template_variables[1].values[0]",L"esse fugiat");
    CkJsonObjectW_UpdateString(json,L"template_variables[0].name",L"host1");
    CkJsonObjectW_UpdateString(json,L"template_variables[0].available_values[0]",L"my-host");
    CkJsonObjectW_UpdateString(json,L"template_variables[0].available_values[1]",L"host1");
    CkJsonObjectW_UpdateString(json,L"template_variables[0].available_values[2]",L"host2");
    CkJsonObjectW_UpdateString(json,L"template_variables[0].default",L"my-host");
    CkJsonObjectW_UpdateString(json,L"template_variables[0].defaults[0]",L"my-host-1");
    CkJsonObjectW_UpdateString(json,L"template_variables[0].defaults[1]",L"my-host-2");
    CkJsonObjectW_UpdateString(json,L"template_variables[0].prefix",L"host");
    CkJsonObjectW_UpdateString(json,L"template_variables[1].name",L"host1");
    CkJsonObjectW_UpdateString(json,L"template_variables[1].available_values[0]",L"my-host");
    CkJsonObjectW_UpdateString(json,L"template_variables[1].available_values[1]",L"host1");
    CkJsonObjectW_UpdateString(json,L"template_variables[1].available_values[2]",L"host2");
    CkJsonObjectW_UpdateString(json,L"template_variables[1].default",L"my-host");
    CkJsonObjectW_UpdateString(json,L"template_variables[1].defaults[0]",L"my-host-1");
    CkJsonObjectW_UpdateString(json,L"template_variables[1].defaults[1]",L"my-host-2");
    CkJsonObjectW_UpdateString(json,L"template_variables[1].prefix",L"host");
    CkJsonObjectW_UpdateString(json,L"url",L"/dashboard/123-abc-456/example-dashboard-title");

    CkHttpW_SetRequestHeader(http,L"Content-Type",L"application/json");
    CkHttpW_SetRequestHeader(http,L"Accept",L"application/json");

    sbRequestBody = CkStringBuilderW_Create();
    CkJsonObjectW_EmitSb(json,sbRequestBody);

    resp = CkHttpW_PTextSb(http,L"PUT",L"https://api.app.ddog-gov.com/api/v1/dashboard/:dashboard_id",sbRequestBody,L"utf-8",L"application/json",FALSE,FALSE);
    if (CkHttpW_getLastMethodSuccess(http) == FALSE) {
        wprintf(L"%s\n",CkHttpW_lastErrorText(http));
        CkHttpW_Dispose(http);
        CkJsonObjectW_Dispose(json);
        CkStringBuilderW_Dispose(sbRequestBody);
        return;
    }

    sbResponseBody = CkStringBuilderW_Create();
    CkHttpResponseW_GetBodySb(resp,sbResponseBody);

    jResp = CkJsonObjectW_Create();
    CkJsonObjectW_LoadSb(jResp,sbResponseBody);
    CkJsonObjectW_putEmitCompact(jResp,FALSE);

    wprintf(L"Response Body:\n");
    wprintf(L"%s\n",CkJsonObjectW_emit(jResp));

    respStatusCode = CkHttpResponseW_getStatusCode(resp);
    wprintf(L"Response Status Code = %d\n",respStatusCode);
    if (respStatusCode >= 400) {
        wprintf(L"Response Header:\n");
        wprintf(L"%s\n",CkHttpResponseW_header(resp));
        wprintf(L"Failed.\n");
        CkHttpResponseW_Dispose(resp);
        CkHttpW_Dispose(http);
        CkJsonObjectW_Dispose(json);
        CkStringBuilderW_Dispose(sbRequestBody);
        CkStringBuilderW_Dispose(sbResponseBody);
        CkJsonObjectW_Dispose(jResp);
        return;
    }

    CkHttpResponseW_Dispose(resp);

    // Sample JSON response:
    // (Sample code for parsing the JSON response is shown below)

    // {
    //   "title": "",
    //   "layout_type": "ordered",
    //   "widgets": [
    //     {
    //       "definition": {
    //         "type": "alert_graph",
    //         "alert_id": "",
    //         "viz_type": "timeseries",
    //         "time": {
    //           "live_span": "5m"
    //         },
    //         "title": "nisi et cupidatat sunt",
    //         "title_align": "right",
    //         "title_size": "officia anim occaecat aliq"
    //       },
    //       "id": 45068649,
    //       "layout": {
    //         "x": 0,
    //         "y": 0,
    //         "width": 0,
    //         "height": 0,
    //         "is_column_break": true
    //       }
    //     },
    //     {
    //       "definition": {
    //         "type": "alert_graph",
    //         "alert_id": "",
    //         "viz_type": "timeseries",
    //         "time": {
    //           "live_span": "5m"
    //         },
    //         "title": "laborum dolor cillum ad",
    //         "title_align": "center",
    //         "title_size": "et"
    //       },
    //       "id": -40196020,
    //       "layout": {
    //         "x": 0,
    //         "y": 0,
    //         "width": 0,
    //         "height": 0,
    //         "is_column_break": false
    //       }
    //     }
    //   ],
    //   "author_handle": "test@datadoghq.com",
    //   "author_name": "John Doe",
    //   "created_at": "2017-08-17T07:10:36.438Z",
    //   "description": "eiusmod do est velit enim",
    //   "id": "123-abc-456",
    //   "is_read_only": false,
    //   "modified_at": "1996-07-08T08:32:43.112Z",
    //   "notify_list": [
    //     "commodo voluptate eu",
    //     "consectetur amet"
    //   ],
    //   "reflow_type": "fixed",
    //   "restricted_roles": [
    //     "id cupidatat",
    //     "quis ullamco"
    //   ],
    //   "tags": [
    //     "quis qui mollit ex",
    //     "ullamco enim cupidatat"
    //   ],
    //   "template_variable_presets": [
    //     {
    //       "name": "Lorem ex enim",
    //       "template_variables": [
    //         {
    //           "name": "sed ",
    //           "value": "quis eu",
    //           "values": [
    //             "in"
    //           ]
    //         },
    //         {
    //           "name": "non",
    //           "value": "ea dolore esse elit Lorem",
    //           "values": [
    //             "sed voluptate nulla"
    //           ]
    //         }
    //       ]
    //     },
    //     {
    //       "name": "est ",
    //       "template_variables": [
    //         {
    //           "name": "ullamco sint",
    //           "value": "ad ex irure",
    //           "values": [
    //             "Duis elit dolor"
    //           ]
    //         },
    //         {
    //           "name": "proident adipisicing culpa cons",
    //           "value": "occaecat",
    //           "values": [
    //             "esse fugiat"
    //           ]
    //         }
    //       ]
    //     }
    //   ],
    //   "template_variables": [
    //     {
    //       "name": "host1",
    //       "available_values": [
    //         "my-host",
    //         "host1",
    //         "host2"
    //       ],
    //       "default": "my-host",
    //       "defaults": [
    //         "my-host-1",
    //         "my-host-2"
    //       ],
    //       "prefix": "host"
    //     },
    //     {
    //       "name": "host1",
    //       "available_values": [
    //         "my-host",
    //         "host1",
    //         "host2"
    //       ],
    //       "default": "my-host",
    //       "defaults": [
    //         "my-host-1",
    //         "my-host-2"
    //       ],
    //       "prefix": "host"
    //     }
    //   ],
    //   "url": "/dashboard/123-abc-456/example-dashboard-title"
    // }

    // Sample code for parsing the JSON response...
    // Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code

    // Chilkat functions returning "const char *" return a pointer to temporary internal memory owned and managed by Chilkat.

    title = CkJsonObjectW_stringOf(jResp,L"title");
    layout_type = CkJsonObjectW_stringOf(jResp,L"layout_type");
    author_handle = CkJsonObjectW_stringOf(jResp,L"author_handle");
    author_name = CkJsonObjectW_stringOf(jResp,L"author_name");
    created_at = CkJsonObjectW_stringOf(jResp,L"created_at");
    description = CkJsonObjectW_stringOf(jResp,L"description");
    id = CkJsonObjectW_stringOf(jResp,L"id");
    is_read_only = CkJsonObjectW_BoolOf(jResp,L"is_read_only");
    modified_at = CkJsonObjectW_stringOf(jResp,L"modified_at");
    reflow_type = CkJsonObjectW_stringOf(jResp,L"reflow_type");
    url = CkJsonObjectW_stringOf(jResp,L"url");
    i = 0;
    count_i = CkJsonObjectW_SizeOfArray(jResp,L"widgets");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        v_Type = CkJsonObjectW_stringOf(jResp,L"widgets[i].definition.type");
        Alert_id = CkJsonObjectW_stringOf(jResp,L"widgets[i].definition.alert_id");
        Viz_type = CkJsonObjectW_stringOf(jResp,L"widgets[i].definition.viz_type");
        Live_span = CkJsonObjectW_stringOf(jResp,L"widgets[i].definition.time.live_span");
        Title = CkJsonObjectW_stringOf(jResp,L"widgets[i].definition.title");
        Title_align = CkJsonObjectW_stringOf(jResp,L"widgets[i].definition.title_align");
        Title_size = CkJsonObjectW_stringOf(jResp,L"widgets[i].definition.title_size");
        id_int = CkJsonObjectW_IntOf(jResp,L"widgets[i].id");
        X = CkJsonObjectW_IntOf(jResp,L"widgets[i].layout.x");
        Y = CkJsonObjectW_IntOf(jResp,L"widgets[i].layout.y");
        Width = CkJsonObjectW_IntOf(jResp,L"widgets[i].layout.width");
        Height = CkJsonObjectW_IntOf(jResp,L"widgets[i].layout.height");
        Is_column_break = CkJsonObjectW_BoolOf(jResp,L"widgets[i].layout.is_column_break");
        i = i + 1;
    }

    i = 0;
    count_i = CkJsonObjectW_SizeOfArray(jResp,L"notify_list");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        strVal = CkJsonObjectW_stringOf(jResp,L"notify_list[i]");
        i = i + 1;
    }

    i = 0;
    count_i = CkJsonObjectW_SizeOfArray(jResp,L"restricted_roles");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        strVal = CkJsonObjectW_stringOf(jResp,L"restricted_roles[i]");
        i = i + 1;
    }

    i = 0;
    count_i = CkJsonObjectW_SizeOfArray(jResp,L"tags");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        strVal = CkJsonObjectW_stringOf(jResp,L"tags[i]");
        i = i + 1;
    }

    i = 0;
    count_i = CkJsonObjectW_SizeOfArray(jResp,L"template_variable_presets");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        name = CkJsonObjectW_stringOf(jResp,L"template_variable_presets[i].name");
        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"template_variable_presets[i].template_variables");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            name = CkJsonObjectW_stringOf(jResp,L"template_variable_presets[i].template_variables[j].name");
            value = CkJsonObjectW_stringOf(jResp,L"template_variable_presets[i].template_variables[j].value");
            k = 0;
            count_k = CkJsonObjectW_SizeOfArray(jResp,L"template_variable_presets[i].template_variables[j].values");
            while (k < count_k) {
                CkJsonObjectW_putK(jResp,k);
                strVal = CkJsonObjectW_stringOf(jResp,L"template_variable_presets[i].template_variables[j].values[k]");
                k = k + 1;
            }

            j = j + 1;
        }

        i = i + 1;
    }

    i = 0;
    count_i = CkJsonObjectW_SizeOfArray(jResp,L"template_variables");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        name = CkJsonObjectW_stringOf(jResp,L"template_variables[i].name");
        default = CkJsonObjectW_stringOf(jResp,L"template_variables[i].default");
        prefix = CkJsonObjectW_stringOf(jResp,L"template_variables[i].prefix");
        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"template_variables[i].available_values");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"template_variables[i].available_values[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"template_variables[i].defaults");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"template_variables[i].defaults[j]");
            j = j + 1;
        }

        i = i + 1;
    }



    CkHttpW_Dispose(http);
    CkJsonObjectW_Dispose(json);
    CkStringBuilderW_Dispose(sbRequestBody);
    CkStringBuilderW_Dispose(sbResponseBody);
    CkJsonObjectW_Dispose(jResp);

    }

Curl Command

curl -X PUT
	-H "Content-Type: application/json"
	-H "Accept: application/json"
	-d '{
  "title": "",
  "layout_type": "ordered",
  "widgets": [
    {
      "definition": {
        "type": "alert_graph",
        "alert_id": "",
        "viz_type": "timeseries",
        "time": {
          "live_span": "5m"
        },
        "title": "nisi et cupidatat sunt",
        "title_align": "right",
        "title_size": "officia anim occaecat aliq"
      },
      "id": 45068649,
      "layout": {
        "x": 0,
        "y": 0,
        "width": 0,
        "height": 0,
        "is_column_break": true
      }
    },
    {
      "definition": {
        "type": "alert_graph",
        "alert_id": "",
        "viz_type": "timeseries",
        "time": {
          "live_span": "5m"
        },
        "title": "laborum dolor cillum ad",
        "title_align": "center",
        "title_size": "et"
      },
      "id": -40196020,
      "layout": {
        "x": 0,
        "y": 0,
        "width": 0,
        "height": 0,
        "is_column_break": false
      }
    }
  ],
  "author_handle": "test@datadoghq.com",
  "author_name": "John Doe",
  "created_at": "2017-08-17T07:10:36.438Z",
  "description": "eiusmod do est velit enim",
  "id": "123-abc-456",
  "is_read_only": false,
  "modified_at": "1996-07-08T08:32:43.112Z",
  "notify_list": [
    "commodo voluptate eu",
    "consectetur amet"
  ],
  "reflow_type": "fixed",
  "restricted_roles": [
    "id cupidatat",
    "quis ullamco"
  ],
  "tags": [
    "quis qui mollit ex",
    "ullamco enim cupidatat"
  ],
  "template_variable_presets": [
    {
      "name": "Lorem ex enim",
      "template_variables": [
        {
          "name": "sed ",
          "value": "quis eu",
          "values": [
            "in"
          ]
        },
        {
          "name": "non",
          "value": "ea dolore esse elit Lorem",
          "values": [
            "sed voluptate nulla"
          ]
        }
      ]
    },
    {
      "name": "est ",
      "template_variables": [
        {
          "name": "ullamco sint",
          "value": "ad ex irure",
          "values": [
            "Duis elit dolor"
          ]
        },
        {
          "name": "proident adipisicing culpa cons",
          "value": "occaecat",
          "values": [
            "esse fugiat"
          ]
        }
      ]
    }
  ],
  "template_variables": [
    {
      "name": "host1",
      "available_values": [
        "my-host",
        "host1",
        "host2"
      ],
      "default": "my-host",
      "defaults": [
        "my-host-1",
        "my-host-2"
      ],
      "prefix": "host"
    },
    {
      "name": "host1",
      "available_values": [
        "my-host",
        "host1",
        "host2"
      ],
      "default": "my-host",
      "defaults": [
        "my-host-1",
        "my-host-2"
      ],
      "prefix": "host"
    }
  ],
  "url": "/dashboard/123-abc-456/example-dashboard-title"
}'
https://api.app.ddog-gov.com/api/v1/dashboard/:dashboard_id

Postman Collection Item JSON

{
  "name": "Update a dashboard",
  "request": {
    "method": "PUT",
    "header": [
      {
        "key": "Content-Type",
        "value": "application/json"
      },
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "body": {
      "mode": "raw",
      "raw": "{\n  \"title\": \"\",\n  \"layout_type\": \"ordered\",\n  \"widgets\": [\n    {\n      \"definition\": {\n        \"type\": \"alert_graph\",\n        \"alert_id\": \"\",\n        \"viz_type\": \"timeseries\",\n        \"time\": {\n          \"live_span\": \"5m\"\n        },\n        \"title\": \"nisi et cupidatat sunt\",\n        \"title_align\": \"right\",\n        \"title_size\": \"officia anim occaecat aliq\"\n      },\n      \"id\": 45068649,\n      \"layout\": {\n        \"x\": 0,\n        \"y\": 0,\n        \"width\": 0,\n        \"height\": 0,\n        \"is_column_break\": true\n      }\n    },\n    {\n      \"definition\": {\n        \"type\": \"alert_graph\",\n        \"alert_id\": \"\",\n        \"viz_type\": \"timeseries\",\n        \"time\": {\n          \"live_span\": \"5m\"\n        },\n        \"title\": \"laborum dolor cillum ad\",\n        \"title_align\": \"center\",\n        \"title_size\": \"et\"\n      },\n      \"id\": -40196020,\n      \"layout\": {\n        \"x\": 0,\n        \"y\": 0,\n        \"width\": 0,\n        \"height\": 0,\n        \"is_column_break\": false\n      }\n    }\n  ],\n  \"author_handle\": \"test@datadoghq.com\",\n  \"author_name\": \"John Doe\",\n  \"created_at\": \"2017-08-17T07:10:36.438Z\",\n  \"description\": \"eiusmod do est velit enim\",\n  \"id\": \"123-abc-456\",\n  \"is_read_only\": false,\n  \"modified_at\": \"1996-07-08T08:32:43.112Z\",\n  \"notify_list\": [\n    \"commodo voluptate eu\",\n    \"consectetur amet\"\n  ],\n  \"reflow_type\": \"fixed\",\n  \"restricted_roles\": [\n    \"id cupidatat\",\n    \"quis ullamco\"\n  ],\n  \"tags\": [\n    \"quis qui mollit ex\",\n    \"ullamco enim cupidatat\"\n  ],\n  \"template_variable_presets\": [\n    {\n      \"name\": \"Lorem ex enim\",\n      \"template_variables\": [\n        {\n          \"name\": \"sed \",\n          \"value\": \"quis eu\",\n          \"values\": [\n            \"in\"\n          ]\n        },\n        {\n          \"name\": \"non\",\n          \"value\": \"ea dolore esse elit Lorem\",\n          \"values\": [\n            \"sed voluptate nulla\"\n          ]\n        }\n      ]\n    },\n    {\n      \"name\": \"est \",\n      \"template_variables\": [\n        {\n          \"name\": \"ullamco sint\",\n          \"value\": \"ad ex irure\",\n          \"values\": [\n            \"Duis elit dolor\"\n          ]\n        },\n        {\n          \"name\": \"proident adipisicing culpa cons\",\n          \"value\": \"occaecat\",\n          \"values\": [\n            \"esse fugiat\"\n          ]\n        }\n      ]\n    }\n  ],\n  \"template_variables\": [\n    {\n      \"name\": \"host1\",\n      \"available_values\": [\n        \"my-host\",\n        \"host1\",\n        \"host2\"\n      ],\n      \"default\": \"my-host\",\n      \"defaults\": [\n        \"my-host-1\",\n        \"my-host-2\"\n      ],\n      \"prefix\": \"host\"\n    },\n    {\n      \"name\": \"host1\",\n      \"available_values\": [\n        \"my-host\",\n        \"host1\",\n        \"host2\"\n      ],\n      \"default\": \"my-host\",\n      \"defaults\": [\n        \"my-host-1\",\n        \"my-host-2\"\n      ],\n      \"prefix\": \"host\"\n    }\n  ],\n  \"url\": \"/dashboard/123-abc-456/example-dashboard-title\"\n}",
      "options": {
        "raw": {
          "headerFamily": "json",
          "language": "json"
        }
      }
    },
    "url": {
      "raw": "{{baseUrl}}/api/v1/dashboard/:dashboard_id",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "v1",
        "dashboard",
        ":dashboard_id"
      ],
      "variable": [
        {
          "key": "dashboard_id",
          "value": "tempor Ut sed velit"
        }
      ]
    },
    "description": "Update a dashboard using the specified ID."
  },
  "response": [
    {
      "name": "OK",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"title\": \"\",\n  \"layout_type\": \"ordered\",\n  \"widgets\": [\n    {\n      \"definition\": {\n        \"type\": \"alert_graph\",\n        \"alert_id\": \"\",\n        \"viz_type\": \"timeseries\",\n        \"time\": {\n          \"live_span\": \"5m\"\n        },\n        \"title\": \"nisi et cupidatat sunt\",\n        \"title_align\": \"right\",\n        \"title_size\": \"officia anim occaecat aliq\"\n      },\n      \"id\": 45068649,\n      \"layout\": {\n        \"x\": 0,\n        \"y\": 0,\n        \"width\": 0,\n        \"height\": 0,\n        \"is_column_break\": true\n      }\n    },\n    {\n      \"definition\": {\n        \"type\": \"alert_graph\",\n        \"alert_id\": \"\",\n        \"viz_type\": \"timeseries\",\n        \"time\": {\n          \"live_span\": \"5m\"\n        },\n        \"title\": \"laborum dolor cillum ad\",\n        \"title_align\": \"center\",\n        \"title_size\": \"et\"\n      },\n      \"id\": -40196020,\n      \"layout\": {\n        \"x\": 0,\n        \"y\": 0,\n        \"width\": 0,\n        \"height\": 0,\n        \"is_column_break\": false\n      }\n    }\n  ],\n  \"author_handle\": \"test@datadoghq.com\",\n  \"author_name\": \"John Doe\",\n  \"created_at\": \"2017-08-17T07:10:36.438Z\",\n  \"description\": \"eiusmod do est velit enim\",\n  \"id\": \"123-abc-456\",\n  \"is_read_only\": false,\n  \"modified_at\": \"1996-07-08T08:32:43.112Z\",\n  \"notify_list\": [\n    \"commodo voluptate eu\",\n    \"consectetur amet\"\n  ],\n  \"reflow_type\": \"fixed\",\n  \"restricted_roles\": [\n    \"id cupidatat\",\n    \"quis ullamco\"\n  ],\n  \"tags\": [\n    \"quis qui mollit ex\",\n    \"ullamco enim cupidatat\"\n  ],\n  \"template_variable_presets\": [\n    {\n      \"name\": \"Lorem ex enim\",\n      \"template_variables\": [\n        {\n          \"name\": \"sed \",\n          \"value\": \"quis eu\",\n          \"values\": [\n            \"in\"\n          ]\n        },\n        {\n          \"name\": \"non\",\n          \"value\": \"ea dolore esse elit Lorem\",\n          \"values\": [\n            \"sed voluptate nulla\"\n          ]\n        }\n      ]\n    },\n    {\n      \"name\": \"est \",\n      \"template_variables\": [\n        {\n          \"name\": \"ullamco sint\",\n          \"value\": \"ad ex irure\",\n          \"values\": [\n            \"Duis elit dolor\"\n          ]\n        },\n        {\n          \"name\": \"proident adipisicing culpa cons\",\n          \"value\": \"occaecat\",\n          \"values\": [\n            \"esse fugiat\"\n          ]\n        }\n      ]\n    }\n  ],\n  \"template_variables\": [\n    {\n      \"name\": \"host1\",\n      \"available_values\": [\n        \"my-host\",\n        \"host1\",\n        \"host2\"\n      ],\n      \"default\": \"my-host\",\n      \"defaults\": [\n        \"my-host-1\",\n        \"my-host-2\"\n      ],\n      \"prefix\": \"host\"\n    },\n    {\n      \"name\": \"host1\",\n      \"available_values\": [\n        \"my-host\",\n        \"host1\",\n        \"host2\"\n      ],\n      \"default\": \"my-host\",\n      \"defaults\": [\n        \"my-host-1\",\n        \"my-host-2\"\n      ],\n      \"prefix\": \"host\"\n    }\n  ],\n  \"url\": \"/dashboard/123-abc-456/example-dashboard-title\"\n}",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/api/v1/dashboard/:dashboard_id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "dashboard",
            ":dashboard_id"
          ],
          "variable": [
            {
              "key": "dashboard_id"
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"title\": \"\",\n  \"layout_type\": \"ordered\",\n  \"widgets\": [\n    {\n      \"definition\": {\n        \"type\": \"alert_graph\",\n        \"alert_id\": \"\",\n        \"viz_type\": \"timeseries\",\n        \"time\": {\n          \"live_span\": \"5m\"\n        },\n        \"title\": \"nisi et cupidatat sunt\",\n        \"title_align\": \"right\",\n        \"title_size\": \"officia anim occaecat aliq\"\n      },\n      \"id\": 45068649,\n      \"layout\": {\n        \"x\": 0,\n        \"y\": 0,\n        \"width\": 0,\n        \"height\": 0,\n        \"is_column_break\": true\n      }\n    },\n    {\n      \"definition\": {\n        \"type\": \"alert_graph\",\n        \"alert_id\": \"\",\n        \"viz_type\": \"timeseries\",\n        \"time\": {\n          \"live_span\": \"5m\"\n        },\n        \"title\": \"laborum dolor cillum ad\",\n        \"title_align\": \"center\",\n        \"title_size\": \"et\"\n      },\n      \"id\": -40196020,\n      \"layout\": {\n        \"x\": 0,\n        \"y\": 0,\n        \"width\": 0,\n        \"height\": 0,\n        \"is_column_break\": false\n      }\n    }\n  ],\n  \"author_handle\": \"test@datadoghq.com\",\n  \"author_name\": \"John Doe\",\n  \"created_at\": \"2017-08-17T07:10:36.438Z\",\n  \"description\": \"eiusmod do est velit enim\",\n  \"id\": \"123-abc-456\",\n  \"is_read_only\": false,\n  \"modified_at\": \"1996-07-08T08:32:43.112Z\",\n  \"notify_list\": [\n    \"commodo voluptate eu\",\n    \"consectetur amet\"\n  ],\n  \"reflow_type\": \"fixed\",\n  \"restricted_roles\": [\n    \"id cupidatat\",\n    \"quis ullamco\"\n  ],\n  \"tags\": [\n    \"quis qui mollit ex\",\n    \"ullamco enim cupidatat\"\n  ],\n  \"template_variable_presets\": [\n    {\n      \"name\": \"Lorem ex enim\",\n      \"template_variables\": [\n        {\n          \"name\": \"sed \",\n          \"value\": \"quis eu\",\n          \"values\": [\n            \"in\"\n          ]\n        },\n        {\n          \"name\": \"non\",\n          \"value\": \"ea dolore esse elit Lorem\",\n          \"values\": [\n            \"sed voluptate nulla\"\n          ]\n        }\n      ]\n    },\n    {\n      \"name\": \"est \",\n      \"template_variables\": [\n        {\n          \"name\": \"ullamco sint\",\n          \"value\": \"ad ex irure\",\n          \"values\": [\n            \"Duis elit dolor\"\n          ]\n        },\n        {\n          \"name\": \"proident adipisicing culpa cons\",\n          \"value\": \"occaecat\",\n          \"values\": [\n            \"esse fugiat\"\n          ]\n        }\n      ]\n    }\n  ],\n  \"template_variables\": [\n    {\n      \"name\": \"host1\",\n      \"available_values\": [\n        \"my-host\",\n        \"host1\",\n        \"host2\"\n      ],\n      \"default\": \"my-host\",\n      \"defaults\": [\n        \"my-host-1\",\n        \"my-host-2\"\n      ],\n      \"prefix\": \"host\"\n    },\n    {\n      \"name\": \"host1\",\n      \"available_values\": [\n        \"my-host\",\n        \"host1\",\n        \"host2\"\n      ],\n      \"default\": \"my-host\",\n      \"defaults\": [\n        \"my-host-1\",\n        \"my-host-2\"\n      ],\n      \"prefix\": \"host\"\n    }\n  ],\n  \"url\": \"/dashboard/123-abc-456/example-dashboard-title\"\n}"
    },
    {
      "name": "Bad Request",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"title\": \"\",\n  \"layout_type\": \"ordered\",\n  \"widgets\": [\n    {\n      \"definition\": {\n        \"type\": \"alert_graph\",\n        \"alert_id\": \"\",\n        \"viz_type\": \"timeseries\",\n        \"time\": {\n          \"live_span\": \"5m\"\n        },\n        \"title\": \"nisi et cupidatat sunt\",\n        \"title_align\": \"right\",\n        \"title_size\": \"officia anim occaecat aliq\"\n      },\n      \"id\": 45068649,\n      \"layout\": {\n        \"x\": 0,\n        \"y\": 0,\n        \"width\": 0,\n        \"height\": 0,\n        \"is_column_break\": true\n      }\n    },\n    {\n      \"definition\": {\n        \"type\": \"alert_graph\",\n        \"alert_id\": \"\",\n        \"viz_type\": \"timeseries\",\n        \"time\": {\n          \"live_span\": \"5m\"\n        },\n        \"title\": \"laborum dolor cillum ad\",\n        \"title_align\": \"center\",\n        \"title_size\": \"et\"\n      },\n      \"id\": -40196020,\n      \"layout\": {\n        \"x\": 0,\n        \"y\": 0,\n        \"width\": 0,\n        \"height\": 0,\n        \"is_column_break\": false\n      }\n    }\n  ],\n  \"author_handle\": \"test@datadoghq.com\",\n  \"author_name\": \"John Doe\",\n  \"created_at\": \"2017-08-17T07:10:36.438Z\",\n  \"description\": \"eiusmod do est velit enim\",\n  \"id\": \"123-abc-456\",\n  \"is_read_only\": false,\n  \"modified_at\": \"1996-07-08T08:32:43.112Z\",\n  \"notify_list\": [\n    \"commodo voluptate eu\",\n    \"consectetur amet\"\n  ],\n  \"reflow_type\": \"fixed\",\n  \"restricted_roles\": [\n    \"id cupidatat\",\n    \"quis ullamco\"\n  ],\n  \"tags\": [\n    \"quis qui mollit ex\",\n    \"ullamco enim cupidatat\"\n  ],\n  \"template_variable_presets\": [\n    {\n      \"name\": \"Lorem ex enim\",\n      \"template_variables\": [\n        {\n          \"name\": \"sed \",\n          \"value\": \"quis eu\",\n          \"values\": [\n            \"in\"\n          ]\n        },\n        {\n          \"name\": \"non\",\n          \"value\": \"ea dolore esse elit Lorem\",\n          \"values\": [\n            \"sed voluptate nulla\"\n          ]\n        }\n      ]\n    },\n    {\n      \"name\": \"est \",\n      \"template_variables\": [\n        {\n          \"name\": \"ullamco sint\",\n          \"value\": \"ad ex irure\",\n          \"values\": [\n            \"Duis elit dolor\"\n          ]\n        },\n        {\n          \"name\": \"proident adipisicing culpa cons\",\n          \"value\": \"occaecat\",\n          \"values\": [\n            \"esse fugiat\"\n          ]\n        }\n      ]\n    }\n  ],\n  \"template_variables\": [\n    {\n      \"name\": \"host1\",\n      \"available_values\": [\n        \"my-host\",\n        \"host1\",\n        \"host2\"\n      ],\n      \"default\": \"my-host\",\n      \"defaults\": [\n        \"my-host-1\",\n        \"my-host-2\"\n      ],\n      \"prefix\": \"host\"\n    },\n    {\n      \"name\": \"host1\",\n      \"available_values\": [\n        \"my-host\",\n        \"host1\",\n        \"host2\"\n      ],\n      \"default\": \"my-host\",\n      \"defaults\": [\n        \"my-host-1\",\n        \"my-host-2\"\n      ],\n      \"prefix\": \"host\"\n    }\n  ],\n  \"url\": \"/dashboard/123-abc-456/example-dashboard-title\"\n}",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/api/v1/dashboard/:dashboard_id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "dashboard",
            ":dashboard_id"
          ],
          "variable": [
            {
              "key": "dashboard_id"
            }
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    \"Bad Request\",\n    \"Bad Request\"\n  ]\n}"
    },
    {
      "name": "Authentication Error",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"title\": \"\",\n  \"layout_type\": \"ordered\",\n  \"widgets\": [\n    {\n      \"definition\": {\n        \"type\": \"alert_graph\",\n        \"alert_id\": \"\",\n        \"viz_type\": \"timeseries\",\n        \"time\": {\n          \"live_span\": \"5m\"\n        },\n        \"title\": \"nisi et cupidatat sunt\",\n        \"title_align\": \"right\",\n        \"title_size\": \"officia anim occaecat aliq\"\n      },\n      \"id\": 45068649,\n      \"layout\": {\n        \"x\": 0,\n        \"y\": 0,\n        \"width\": 0,\n        \"height\": 0,\n        \"is_column_break\": true\n      }\n    },\n    {\n      \"definition\": {\n        \"type\": \"alert_graph\",\n        \"alert_id\": \"\",\n        \"viz_type\": \"timeseries\",\n        \"time\": {\n          \"live_span\": \"5m\"\n        },\n        \"title\": \"laborum dolor cillum ad\",\n        \"title_align\": \"center\",\n        \"title_size\": \"et\"\n      },\n      \"id\": -40196020,\n      \"layout\": {\n        \"x\": 0,\n        \"y\": 0,\n        \"width\": 0,\n        \"height\": 0,\n        \"is_column_break\": false\n      }\n    }\n  ],\n  \"author_handle\": \"test@datadoghq.com\",\n  \"author_name\": \"John Doe\",\n  \"created_at\": \"2017-08-17T07:10:36.438Z\",\n  \"description\": \"eiusmod do est velit enim\",\n  \"id\": \"123-abc-456\",\n  \"is_read_only\": false,\n  \"modified_at\": \"1996-07-08T08:32:43.112Z\",\n  \"notify_list\": [\n    \"commodo voluptate eu\",\n    \"consectetur amet\"\n  ],\n  \"reflow_type\": \"fixed\",\n  \"restricted_roles\": [\n    \"id cupidatat\",\n    \"quis ullamco\"\n  ],\n  \"tags\": [\n    \"quis qui mollit ex\",\n    \"ullamco enim cupidatat\"\n  ],\n  \"template_variable_presets\": [\n    {\n      \"name\": \"Lorem ex enim\",\n      \"template_variables\": [\n        {\n          \"name\": \"sed \",\n          \"value\": \"quis eu\",\n          \"values\": [\n            \"in\"\n          ]\n        },\n        {\n          \"name\": \"non\",\n          \"value\": \"ea dolore esse elit Lorem\",\n          \"values\": [\n            \"sed voluptate nulla\"\n          ]\n        }\n      ]\n    },\n    {\n      \"name\": \"est \",\n      \"template_variables\": [\n        {\n          \"name\": \"ullamco sint\",\n          \"value\": \"ad ex irure\",\n          \"values\": [\n            \"Duis elit dolor\"\n          ]\n        },\n        {\n          \"name\": \"proident adipisicing culpa cons\",\n          \"value\": \"occaecat\",\n          \"values\": [\n            \"esse fugiat\"\n          ]\n        }\n      ]\n    }\n  ],\n  \"template_variables\": [\n    {\n      \"name\": \"host1\",\n      \"available_values\": [\n        \"my-host\",\n        \"host1\",\n        \"host2\"\n      ],\n      \"default\": \"my-host\",\n      \"defaults\": [\n        \"my-host-1\",\n        \"my-host-2\"\n      ],\n      \"prefix\": \"host\"\n    },\n    {\n      \"name\": \"host1\",\n      \"available_values\": [\n        \"my-host\",\n        \"host1\",\n        \"host2\"\n      ],\n      \"default\": \"my-host\",\n      \"defaults\": [\n        \"my-host-1\",\n        \"my-host-2\"\n      ],\n      \"prefix\": \"host\"\n    }\n  ],\n  \"url\": \"/dashboard/123-abc-456/example-dashboard-title\"\n}",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/api/v1/dashboard/:dashboard_id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "dashboard",
            ":dashboard_id"
          ],
          "variable": [
            {
              "key": "dashboard_id"
            }
          ]
        }
      },
      "status": "Forbidden",
      "code": 403,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    \"Bad Request\",\n    \"Bad Request\"\n  ]\n}"
    },
    {
      "name": "Item Not Found",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"title\": \"\",\n  \"layout_type\": \"ordered\",\n  \"widgets\": [\n    {\n      \"definition\": {\n        \"type\": \"alert_graph\",\n        \"alert_id\": \"\",\n        \"viz_type\": \"timeseries\",\n        \"time\": {\n          \"live_span\": \"5m\"\n        },\n        \"title\": \"nisi et cupidatat sunt\",\n        \"title_align\": \"right\",\n        \"title_size\": \"officia anim occaecat aliq\"\n      },\n      \"id\": 45068649,\n      \"layout\": {\n        \"x\": 0,\n        \"y\": 0,\n        \"width\": 0,\n        \"height\": 0,\n        \"is_column_break\": true\n      }\n    },\n    {\n      \"definition\": {\n        \"type\": \"alert_graph\",\n        \"alert_id\": \"\",\n        \"viz_type\": \"timeseries\",\n        \"time\": {\n          \"live_span\": \"5m\"\n        },\n        \"title\": \"laborum dolor cillum ad\",\n        \"title_align\": \"center\",\n        \"title_size\": \"et\"\n      },\n      \"id\": -40196020,\n      \"layout\": {\n        \"x\": 0,\n        \"y\": 0,\n        \"width\": 0,\n        \"height\": 0,\n        \"is_column_break\": false\n      }\n    }\n  ],\n  \"author_handle\": \"test@datadoghq.com\",\n  \"author_name\": \"John Doe\",\n  \"created_at\": \"2017-08-17T07:10:36.438Z\",\n  \"description\": \"eiusmod do est velit enim\",\n  \"id\": \"123-abc-456\",\n  \"is_read_only\": false,\n  \"modified_at\": \"1996-07-08T08:32:43.112Z\",\n  \"notify_list\": [\n    \"commodo voluptate eu\",\n    \"consectetur amet\"\n  ],\n  \"reflow_type\": \"fixed\",\n  \"restricted_roles\": [\n    \"id cupidatat\",\n    \"quis ullamco\"\n  ],\n  \"tags\": [\n    \"quis qui mollit ex\",\n    \"ullamco enim cupidatat\"\n  ],\n  \"template_variable_presets\": [\n    {\n      \"name\": \"Lorem ex enim\",\n      \"template_variables\": [\n        {\n          \"name\": \"sed \",\n          \"value\": \"quis eu\",\n          \"values\": [\n            \"in\"\n          ]\n        },\n        {\n          \"name\": \"non\",\n          \"value\": \"ea dolore esse elit Lorem\",\n          \"values\": [\n            \"sed voluptate nulla\"\n          ]\n        }\n      ]\n    },\n    {\n      \"name\": \"est \",\n      \"template_variables\": [\n        {\n          \"name\": \"ullamco sint\",\n          \"value\": \"ad ex irure\",\n          \"values\": [\n            \"Duis elit dolor\"\n          ]\n        },\n        {\n          \"name\": \"proident adipisicing culpa cons\",\n          \"value\": \"occaecat\",\n          \"values\": [\n            \"esse fugiat\"\n          ]\n        }\n      ]\n    }\n  ],\n  \"template_variables\": [\n    {\n      \"name\": \"host1\",\n      \"available_values\": [\n        \"my-host\",\n        \"host1\",\n        \"host2\"\n      ],\n      \"default\": \"my-host\",\n      \"defaults\": [\n        \"my-host-1\",\n        \"my-host-2\"\n      ],\n      \"prefix\": \"host\"\n    },\n    {\n      \"name\": \"host1\",\n      \"available_values\": [\n        \"my-host\",\n        \"host1\",\n        \"host2\"\n      ],\n      \"default\": \"my-host\",\n      \"defaults\": [\n        \"my-host-1\",\n        \"my-host-2\"\n      ],\n      \"prefix\": \"host\"\n    }\n  ],\n  \"url\": \"/dashboard/123-abc-456/example-dashboard-title\"\n}",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/api/v1/dashboard/:dashboard_id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "dashboard",
            ":dashboard_id"
          ],
          "variable": [
            {
              "key": "dashboard_id"
            }
          ]
        }
      },
      "status": "Not Found",
      "code": 404,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    \"Bad Request\",\n    \"Bad Request\"\n  ]\n}"
    },
    {
      "name": "Too many requests",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"title\": \"\",\n  \"layout_type\": \"ordered\",\n  \"widgets\": [\n    {\n      \"definition\": {\n        \"type\": \"alert_graph\",\n        \"alert_id\": \"\",\n        \"viz_type\": \"timeseries\",\n        \"time\": {\n          \"live_span\": \"5m\"\n        },\n        \"title\": \"nisi et cupidatat sunt\",\n        \"title_align\": \"right\",\n        \"title_size\": \"officia anim occaecat aliq\"\n      },\n      \"id\": 45068649,\n      \"layout\": {\n        \"x\": 0,\n        \"y\": 0,\n        \"width\": 0,\n        \"height\": 0,\n        \"is_column_break\": true\n      }\n    },\n    {\n      \"definition\": {\n        \"type\": \"alert_graph\",\n        \"alert_id\": \"\",\n        \"viz_type\": \"timeseries\",\n        \"time\": {\n          \"live_span\": \"5m\"\n        },\n        \"title\": \"laborum dolor cillum ad\",\n        \"title_align\": \"center\",\n        \"title_size\": \"et\"\n      },\n      \"id\": -40196020,\n      \"layout\": {\n        \"x\": 0,\n        \"y\": 0,\n        \"width\": 0,\n        \"height\": 0,\n        \"is_column_break\": false\n      }\n    }\n  ],\n  \"author_handle\": \"test@datadoghq.com\",\n  \"author_name\": \"John Doe\",\n  \"created_at\": \"2017-08-17T07:10:36.438Z\",\n  \"description\": \"eiusmod do est velit enim\",\n  \"id\": \"123-abc-456\",\n  \"is_read_only\": false,\n  \"modified_at\": \"1996-07-08T08:32:43.112Z\",\n  \"notify_list\": [\n    \"commodo voluptate eu\",\n    \"consectetur amet\"\n  ],\n  \"reflow_type\": \"fixed\",\n  \"restricted_roles\": [\n    \"id cupidatat\",\n    \"quis ullamco\"\n  ],\n  \"tags\": [\n    \"quis qui mollit ex\",\n    \"ullamco enim cupidatat\"\n  ],\n  \"template_variable_presets\": [\n    {\n      \"name\": \"Lorem ex enim\",\n      \"template_variables\": [\n        {\n          \"name\": \"sed \",\n          \"value\": \"quis eu\",\n          \"values\": [\n            \"in\"\n          ]\n        },\n        {\n          \"name\": \"non\",\n          \"value\": \"ea dolore esse elit Lorem\",\n          \"values\": [\n            \"sed voluptate nulla\"\n          ]\n        }\n      ]\n    },\n    {\n      \"name\": \"est \",\n      \"template_variables\": [\n        {\n          \"name\": \"ullamco sint\",\n          \"value\": \"ad ex irure\",\n          \"values\": [\n            \"Duis elit dolor\"\n          ]\n        },\n        {\n          \"name\": \"proident adipisicing culpa cons\",\n          \"value\": \"occaecat\",\n          \"values\": [\n            \"esse fugiat\"\n          ]\n        }\n      ]\n    }\n  ],\n  \"template_variables\": [\n    {\n      \"name\": \"host1\",\n      \"available_values\": [\n        \"my-host\",\n        \"host1\",\n        \"host2\"\n      ],\n      \"default\": \"my-host\",\n      \"defaults\": [\n        \"my-host-1\",\n        \"my-host-2\"\n      ],\n      \"prefix\": \"host\"\n    },\n    {\n      \"name\": \"host1\",\n      \"available_values\": [\n        \"my-host\",\n        \"host1\",\n        \"host2\"\n      ],\n      \"default\": \"my-host\",\n      \"defaults\": [\n        \"my-host-1\",\n        \"my-host-2\"\n      ],\n      \"prefix\": \"host\"\n    }\n  ],\n  \"url\": \"/dashboard/123-abc-456/example-dashboard-title\"\n}",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/api/v1/dashboard/:dashboard_id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "dashboard",
            ":dashboard_id"
          ],
          "variable": [
            {
              "key": "dashboard_id"
            }
          ]
        }
      },
      "status": "Too Many Requests",
      "code": 429,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    \"Bad Request\",\n    \"Bad Request\"\n  ]\n}"
    }
  ]
}