Chilkat Online Tools

unicodeC / Support API / Recover Multiple Suspended Tickets

Back to Collection Items

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

void ChilkatSample(void)
    {
    HCkHttpW http;
    BOOL success;
    HCkHttpResponseW resp;
    HCkStringBuilderW sbResponseBody;
    HCkJsonObjectW jResp;
    int respStatusCode;
    const wchar_t *v_Email;
    const wchar_t *Id;
    const wchar_t *Name;
    const wchar_t *brand_id;
    const wchar_t *cause;
    const wchar_t *cause_id;
    const wchar_t *content;
    const wchar_t *created_at;
    const wchar_t *id;
    const wchar_t *message_id;
    const wchar_t *recipient;
    const wchar_t *subject;
    const wchar_t *ticket_id;
    const wchar_t *updated_at;
    const wchar_t *url;
    const wchar_t *Channel;
    const wchar_t *Address;
    const wchar_t *FromId;
    const wchar_t *FromName;
    const wchar_t *Title;
    const wchar_t *Rel;
    const wchar_t *ToAddress;
    const wchar_t *ToName;
    const wchar_t *Dolore58f;
    int j;
    int count_j;
    const wchar_t *content_type;
    const wchar_t *content_url;
    const wchar_t *deleted;
    const wchar_t *file_name;
    const wchar_t *height;
    const wchar_t *inline;
    const wchar_t *malware_access_override;
    const wchar_t *malware_scan_result;
    const wchar_t *mapped_content_url;
    const wchar_t *size;
    const wchar_t *width;
    int k;
    int count_k;
    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();

    CkHttpW_putBasicAuth(http,TRUE);
    CkHttpW_putLogin(http,L"login");
    CkHttpW_putPassword(http,L"password");

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

    resp = CkHttpW_QuickRequest(http,L"PUT",L"https://example.zendesk.com/api/v2/suspended_tickets/recover_many?ids=<string>");
    if (CkHttpW_getLastMethodSuccess(http) == FALSE) {
        wprintf(L"%s\n",CkHttpW_lastErrorText(http));
        CkHttpW_Dispose(http);
        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);
        CkStringBuilderW_Dispose(sbResponseBody);
        CkJsonObjectW_Dispose(jResp);
        return;
    }

    CkHttpResponseW_Dispose(resp);

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

    // {
    //   "tickets": [
    //     {
    //       "attachments": [
    //         {
    //           "content_type": "<string>",
    //           "content_url": "<string>",
    //           "deleted": "<boolean>",
    //           "file_name": "<string>",
    //           "height": "<string>",
    //           "id": "<integer>",
    //           "inline": "<boolean>",
    //           "malware_access_override": "<boolean>",
    //           "malware_scan_result": "<string>",
    //           "mapped_content_url": "<string>",
    //           "size": "<integer>",
    //           "url": "<string>",
    //           "width": "<string>",
    //           "thumbnails": [
    //             {
    //               "content_type": "<string>",
    //               "content_url": "<string>",
    //               "deleted": "<boolean>",
    //               "file_name": "<string>",
    //               "height": "<string>",
    //               "id": "<integer>",
    //               "inline": "<boolean>",
    //               "malware_access_override": "<boolean>",
    //               "malware_scan_result": "<string>",
    //               "mapped_content_url": "<string>",
    //               "size": "<integer>",
    //               "url": "<string>",
    //               "width": "<string>"
    //             },
    //             {
    //               "content_type": "<string>",
    //               "content_url": "<string>",
    //               "deleted": "<boolean>",
    //               "file_name": "<string>",
    //               "height": "<string>",
    //               "id": "<integer>",
    //               "inline": "<boolean>",
    //               "malware_access_override": "<boolean>",
    //               "malware_scan_result": "<string>",
    //               "mapped_content_url": "<string>",
    //               "size": "<integer>",
    //               "url": "<string>",
    //               "width": "<string>"
    //             }
    //           ]
    //         },
    //         {
    //           "content_type": "<string>",
    //           "content_url": "<string>",
    //           "deleted": "<boolean>",
    //           "file_name": "<string>",
    //           "height": "<string>",
    //           "id": "<integer>",
    //           "inline": "<boolean>",
    //           "malware_access_override": "<boolean>",
    //           "malware_scan_result": "<string>",
    //           "mapped_content_url": "<string>",
    //           "size": "<integer>",
    //           "url": "<string>",
    //           "width": "<string>",
    //           "thumbnails": [
    //             {
    //               "content_type": "<string>",
    //               "content_url": "<string>",
    //               "deleted": "<boolean>",
    //               "file_name": "<string>",
    //               "height": "<string>",
    //               "id": "<integer>",
    //               "inline": "<boolean>",
    //               "malware_access_override": "<boolean>",
    //               "malware_scan_result": "<string>",
    //               "mapped_content_url": "<string>",
    //               "size": "<integer>",
    //               "url": "<string>",
    //               "width": "<string>"
    //             },
    //             {
    //               "content_type": "<string>",
    //               "content_url": "<string>",
    //               "deleted": "<boolean>",
    //               "file_name": "<string>",
    //               "height": "<string>",
    //               "id": "<integer>",
    //               "inline": "<boolean>",
    //               "malware_access_override": "<boolean>",
    //               "malware_scan_result": "<string>",
    //               "mapped_content_url": "<string>",
    //               "size": "<integer>",
    //               "url": "<string>",
    //               "width": "<string>"
    //             }
    //           ]
    //         }
    //       ],
    //       "author": {
    //         "email": "<string>",
    //         "id": "<integer>",
    //         "name": "<string>"
    //       },
    //       "brand_id": "<integer>",
    //       "cause": "<string>",
    //       "cause_id": "<integer>",
    //       "content": "<string>",
    //       "created_at": "<dateTime>",
    //       "id": "<integer>",
    //       "message_id": "<string>",
    //       "recipient": "<string>",
    //       "subject": "<string>",
    //       "ticket_id": "<integer>",
    //       "updated_at": "<dateTime>",
    //       "url": "<string>",
    //       "via": {
    //         "channel": "<string>",
    //         "source": {
    //           "from": {
    //             "address": "<string>",
    //             "id": "<integer>",
    //             "name": "<string>",
    //             "title": "<string>"
    //           },
    //           "rel": "<string>",
    //           "to": {
    //             "address": "<string>",
    //             "name": "<string>"
    //           },
    //           "dolore58f": -60495356.51097781
    //         }
    //       }
    //     },
    //     {
    //       "attachments": [
    //         {
    //           "content_type": "<string>",
    //           "content_url": "<string>",
    //           "deleted": "<boolean>",
    //           "file_name": "<string>",
    //           "height": "<string>",
    //           "id": "<integer>",
    //           "inline": "<boolean>",
    //           "malware_access_override": "<boolean>",
    //           "malware_scan_result": "<string>",
    //           "mapped_content_url": "<string>",
    //           "size": "<integer>",
    //           "url": "<string>",
    //           "width": "<string>",
    //           "thumbnails": [
    //             {
    //               "content_type": "<string>",
    //               "content_url": "<string>",
    //               "deleted": "<boolean>",
    //               "file_name": "<string>",
    //               "height": "<string>",
    //               "id": "<integer>",
    //               "inline": "<boolean>",
    //               "malware_access_override": "<boolean>",
    //               "malware_scan_result": "<string>",
    //               "mapped_content_url": "<string>",
    //               "size": "<integer>",
    //               "url": "<string>",
    //               "width": "<string>"
    //             },
    //             {
    //               "content_type": "<string>",
    //               "content_url": "<string>",
    //               "deleted": "<boolean>",
    //               "file_name": "<string>",
    //               "height": "<string>",
    //               "id": "<integer>",
    //               "inline": "<boolean>",
    //               "malware_access_override": "<boolean>",
    //               "malware_scan_result": "<string>",
    //               "mapped_content_url": "<string>",
    //               "size": "<integer>",
    //               "url": "<string>",
    //               "width": "<string>"
    //             }
    //           ]
    //         },
    //         {
    //           "content_type": "<string>",
    //           "content_url": "<string>",
    //           "deleted": "<boolean>",
    //           "file_name": "<string>",
    //           "height": "<string>",
    //           "id": "<integer>",
    //           "inline": "<boolean>",
    //           "malware_access_override": "<boolean>",
    //           "malware_scan_result": "<string>",
    //           "mapped_content_url": "<string>",
    //           "size": "<integer>",
    //           "url": "<string>",
    //           "width": "<string>",
    //           "thumbnails": [
    //             {
    //               "content_type": "<string>",
    //               "content_url": "<string>",
    //               "deleted": "<boolean>",
    //               "file_name": "<string>",
    //               "height": "<string>",
    //               "id": "<integer>",
    //               "inline": "<boolean>",
    //               "malware_access_override": "<boolean>",
    //               "malware_scan_result": "<string>",
    //               "mapped_content_url": "<string>",
    //               "size": "<integer>",
    //               "url": "<string>",
    //               "width": "<string>"
    //             },
    //             {
    //               "content_type": "<string>",
    //               "content_url": "<string>",
    //               "deleted": "<boolean>",
    //               "file_name": "<string>",
    //               "height": "<string>",
    //               "id": "<integer>",
    //               "inline": "<boolean>",
    //               "malware_access_override": "<boolean>",
    //               "malware_scan_result": "<string>",
    //               "mapped_content_url": "<string>",
    //               "size": "<integer>",
    //               "url": "<string>",
    //               "width": "<string>"
    //             }
    //           ]
    //         }
    //       ],
    //       "author": {
    //         "email": "<string>",
    //         "id": "<integer>",
    //         "name": "<string>"
    //       },
    //       "brand_id": "<integer>",
    //       "cause": "<string>",
    //       "cause_id": "<integer>",
    //       "content": "<string>",
    //       "created_at": "<dateTime>",
    //       "id": "<integer>",
    //       "message_id": "<string>",
    //       "recipient": "<string>",
    //       "subject": "<string>",
    //       "ticket_id": "<integer>",
    //       "updated_at": "<dateTime>",
    //       "url": "<string>",
    //       "via": {
    //         "channel": "<string>",
    //         "source": {
    //           "from": {
    //             "address": "<string>",
    //             "id": "<integer>",
    //             "name": "<string>",
    //             "title": "<string>"
    //           },
    //           "rel": "<string>",
    //           "to": {
    //             "address": "<string>",
    //             "name": "<string>"
    //           }
    //         }
    //       }
    //     }
    //   ]
    // }

    // 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.

    i = 0;
    count_i = CkJsonObjectW_SizeOfArray(jResp,L"tickets");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        v_Email = CkJsonObjectW_stringOf(jResp,L"tickets[i].author.email");
        Id = CkJsonObjectW_stringOf(jResp,L"tickets[i].author.id");
        Name = CkJsonObjectW_stringOf(jResp,L"tickets[i].author.name");
        brand_id = CkJsonObjectW_stringOf(jResp,L"tickets[i].brand_id");
        cause = CkJsonObjectW_stringOf(jResp,L"tickets[i].cause");
        cause_id = CkJsonObjectW_stringOf(jResp,L"tickets[i].cause_id");
        content = CkJsonObjectW_stringOf(jResp,L"tickets[i].content");
        created_at = CkJsonObjectW_stringOf(jResp,L"tickets[i].created_at");
        id = CkJsonObjectW_stringOf(jResp,L"tickets[i].id");
        message_id = CkJsonObjectW_stringOf(jResp,L"tickets[i].message_id");
        recipient = CkJsonObjectW_stringOf(jResp,L"tickets[i].recipient");
        subject = CkJsonObjectW_stringOf(jResp,L"tickets[i].subject");
        ticket_id = CkJsonObjectW_stringOf(jResp,L"tickets[i].ticket_id");
        updated_at = CkJsonObjectW_stringOf(jResp,L"tickets[i].updated_at");
        url = CkJsonObjectW_stringOf(jResp,L"tickets[i].url");
        Channel = CkJsonObjectW_stringOf(jResp,L"tickets[i].via.channel");
        Address = CkJsonObjectW_stringOf(jResp,L"tickets[i].via.source.from.address");
        FromId = CkJsonObjectW_stringOf(jResp,L"tickets[i].via.source.from.id");
        FromName = CkJsonObjectW_stringOf(jResp,L"tickets[i].via.source.from.name");
        Title = CkJsonObjectW_stringOf(jResp,L"tickets[i].via.source.from.title");
        Rel = CkJsonObjectW_stringOf(jResp,L"tickets[i].via.source.rel");
        ToAddress = CkJsonObjectW_stringOf(jResp,L"tickets[i].via.source.to.address");
        ToName = CkJsonObjectW_stringOf(jResp,L"tickets[i].via.source.to.name");
        Dolore58f = CkJsonObjectW_stringOf(jResp,L"tickets[i].via.source.dolore58f");
        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"tickets[i].attachments");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            content_type = CkJsonObjectW_stringOf(jResp,L"tickets[i].attachments[j].content_type");
            content_url = CkJsonObjectW_stringOf(jResp,L"tickets[i].attachments[j].content_url");
            deleted = CkJsonObjectW_stringOf(jResp,L"tickets[i].attachments[j].deleted");
            file_name = CkJsonObjectW_stringOf(jResp,L"tickets[i].attachments[j].file_name");
            height = CkJsonObjectW_stringOf(jResp,L"tickets[i].attachments[j].height");
            id = CkJsonObjectW_stringOf(jResp,L"tickets[i].attachments[j].id");
            inline = CkJsonObjectW_stringOf(jResp,L"tickets[i].attachments[j].inline");
            malware_access_override = CkJsonObjectW_stringOf(jResp,L"tickets[i].attachments[j].malware_access_override");
            malware_scan_result = CkJsonObjectW_stringOf(jResp,L"tickets[i].attachments[j].malware_scan_result");
            mapped_content_url = CkJsonObjectW_stringOf(jResp,L"tickets[i].attachments[j].mapped_content_url");
            size = CkJsonObjectW_stringOf(jResp,L"tickets[i].attachments[j].size");
            url = CkJsonObjectW_stringOf(jResp,L"tickets[i].attachments[j].url");
            width = CkJsonObjectW_stringOf(jResp,L"tickets[i].attachments[j].width");
            k = 0;
            count_k = CkJsonObjectW_SizeOfArray(jResp,L"tickets[i].attachments[j].thumbnails");
            while (k < count_k) {
                CkJsonObjectW_putK(jResp,k);
                content_type = CkJsonObjectW_stringOf(jResp,L"tickets[i].attachments[j].thumbnails[k].content_type");
                content_url = CkJsonObjectW_stringOf(jResp,L"tickets[i].attachments[j].thumbnails[k].content_url");
                deleted = CkJsonObjectW_stringOf(jResp,L"tickets[i].attachments[j].thumbnails[k].deleted");
                file_name = CkJsonObjectW_stringOf(jResp,L"tickets[i].attachments[j].thumbnails[k].file_name");
                height = CkJsonObjectW_stringOf(jResp,L"tickets[i].attachments[j].thumbnails[k].height");
                id = CkJsonObjectW_stringOf(jResp,L"tickets[i].attachments[j].thumbnails[k].id");
                inline = CkJsonObjectW_stringOf(jResp,L"tickets[i].attachments[j].thumbnails[k].inline");
                malware_access_override = CkJsonObjectW_stringOf(jResp,L"tickets[i].attachments[j].thumbnails[k].malware_access_override");
                malware_scan_result = CkJsonObjectW_stringOf(jResp,L"tickets[i].attachments[j].thumbnails[k].malware_scan_result");
                mapped_content_url = CkJsonObjectW_stringOf(jResp,L"tickets[i].attachments[j].thumbnails[k].mapped_content_url");
                size = CkJsonObjectW_stringOf(jResp,L"tickets[i].attachments[j].thumbnails[k].size");
                url = CkJsonObjectW_stringOf(jResp,L"tickets[i].attachments[j].thumbnails[k].url");
                width = CkJsonObjectW_stringOf(jResp,L"tickets[i].attachments[j].thumbnails[k].width");
                k = k + 1;
            }

            j = j + 1;
        }

        i = i + 1;
    }



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

    }

Curl Command

curl  -u login:password -X PUT
	-H "Accept: application/json"
https://example.zendesk.com/api/v2/suspended_tickets/recover_many?ids=<string>

Postman Collection Item JSON

{
  "name": "Recover Multiple Suspended Tickets",
  "request": {
    "method": "PUT",
    "header": [
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "url": {
      "raw": "{{baseUrl}}/api/v2/suspended_tickets/recover_many?ids=<string>",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "v2",
        "suspended_tickets",
        "recover_many"
      ],
      "query": [
        {
          "key": "ids",
          "value": "<string>",
          "description": "(Required) A comma separated list of ids of suspended tickets to recover."
        }
      ]
    },
    "description": "Accepts up to 100 ids (the auto-generated id, not the ticket id.) Note that suspended tickets that fail to be recovered are still included in the response.\n\n#### Allowed For\n\n* Unrestricted agents\n"
  },
  "response": [
    {
      "name": "Success response",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "description": "Added as a part of security scheme: basic",
            "key": "Authorization",
            "value": "Basic <credentials>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v2/suspended_tickets/recover_many?ids=<string>",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v2",
            "suspended_tickets",
            "recover_many"
          ],
          "query": [
            {
              "key": "ids",
              "value": "<string>",
              "description": "(Required) A comma separated list of ids of suspended tickets to recover."
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"tickets\": [\n    {\n      \"attachments\": [\n        {\n          \"content_type\": \"<string>\",\n          \"content_url\": \"<string>\",\n          \"deleted\": \"<boolean>\",\n          \"file_name\": \"<string>\",\n          \"height\": \"<string>\",\n          \"id\": \"<integer>\",\n          \"inline\": \"<boolean>\",\n          \"malware_access_override\": \"<boolean>\",\n          \"malware_scan_result\": \"<string>\",\n          \"mapped_content_url\": \"<string>\",\n          \"size\": \"<integer>\",\n          \"url\": \"<string>\",\n          \"width\": \"<string>\",\n          \"thumbnails\": [\n            {\n              \"content_type\": \"<string>\",\n              \"content_url\": \"<string>\",\n              \"deleted\": \"<boolean>\",\n              \"file_name\": \"<string>\",\n              \"height\": \"<string>\",\n              \"id\": \"<integer>\",\n              \"inline\": \"<boolean>\",\n              \"malware_access_override\": \"<boolean>\",\n              \"malware_scan_result\": \"<string>\",\n              \"mapped_content_url\": \"<string>\",\n              \"size\": \"<integer>\",\n              \"url\": \"<string>\",\n              \"width\": \"<string>\"\n            },\n            {\n              \"content_type\": \"<string>\",\n              \"content_url\": \"<string>\",\n              \"deleted\": \"<boolean>\",\n              \"file_name\": \"<string>\",\n              \"height\": \"<string>\",\n              \"id\": \"<integer>\",\n              \"inline\": \"<boolean>\",\n              \"malware_access_override\": \"<boolean>\",\n              \"malware_scan_result\": \"<string>\",\n              \"mapped_content_url\": \"<string>\",\n              \"size\": \"<integer>\",\n              \"url\": \"<string>\",\n              \"width\": \"<string>\"\n            }\n          ]\n        },\n        {\n          \"content_type\": \"<string>\",\n          \"content_url\": \"<string>\",\n          \"deleted\": \"<boolean>\",\n          \"file_name\": \"<string>\",\n          \"height\": \"<string>\",\n          \"id\": \"<integer>\",\n          \"inline\": \"<boolean>\",\n          \"malware_access_override\": \"<boolean>\",\n          \"malware_scan_result\": \"<string>\",\n          \"mapped_content_url\": \"<string>\",\n          \"size\": \"<integer>\",\n          \"url\": \"<string>\",\n          \"width\": \"<string>\",\n          \"thumbnails\": [\n            {\n              \"content_type\": \"<string>\",\n              \"content_url\": \"<string>\",\n              \"deleted\": \"<boolean>\",\n              \"file_name\": \"<string>\",\n              \"height\": \"<string>\",\n              \"id\": \"<integer>\",\n              \"inline\": \"<boolean>\",\n              \"malware_access_override\": \"<boolean>\",\n              \"malware_scan_result\": \"<string>\",\n              \"mapped_content_url\": \"<string>\",\n              \"size\": \"<integer>\",\n              \"url\": \"<string>\",\n              \"width\": \"<string>\"\n            },\n            {\n              \"content_type\": \"<string>\",\n              \"content_url\": \"<string>\",\n              \"deleted\": \"<boolean>\",\n              \"file_name\": \"<string>\",\n              \"height\": \"<string>\",\n              \"id\": \"<integer>\",\n              \"inline\": \"<boolean>\",\n              \"malware_access_override\": \"<boolean>\",\n              \"malware_scan_result\": \"<string>\",\n              \"mapped_content_url\": \"<string>\",\n              \"size\": \"<integer>\",\n              \"url\": \"<string>\",\n              \"width\": \"<string>\"\n            }\n          ]\n        }\n      ],\n      \"author\": {\n        \"email\": \"<string>\",\n        \"id\": \"<integer>\",\n        \"name\": \"<string>\"\n      },\n      \"brand_id\": \"<integer>\",\n      \"cause\": \"<string>\",\n      \"cause_id\": \"<integer>\",\n      \"content\": \"<string>\",\n      \"created_at\": \"<dateTime>\",\n      \"id\": \"<integer>\",\n      \"message_id\": \"<string>\",\n      \"recipient\": \"<string>\",\n      \"subject\": \"<string>\",\n      \"ticket_id\": \"<integer>\",\n      \"updated_at\": \"<dateTime>\",\n      \"url\": \"<string>\",\n      \"via\": {\n        \"channel\": \"<string>\",\n        \"source\": {\n          \"from\": {\n            \"address\": \"<string>\",\n            \"id\": \"<integer>\",\n            \"name\": \"<string>\",\n            \"title\": \"<string>\"\n          },\n          \"rel\": \"<string>\",\n          \"to\": {\n            \"address\": \"<string>\",\n            \"name\": \"<string>\"\n          },\n          \"dolore58f\": -60495356.51097781\n        }\n      }\n    },\n    {\n      \"attachments\": [\n        {\n          \"content_type\": \"<string>\",\n          \"content_url\": \"<string>\",\n          \"deleted\": \"<boolean>\",\n          \"file_name\": \"<string>\",\n          \"height\": \"<string>\",\n          \"id\": \"<integer>\",\n          \"inline\": \"<boolean>\",\n          \"malware_access_override\": \"<boolean>\",\n          \"malware_scan_result\": \"<string>\",\n          \"mapped_content_url\": \"<string>\",\n          \"size\": \"<integer>\",\n          \"url\": \"<string>\",\n          \"width\": \"<string>\",\n          \"thumbnails\": [\n            {\n              \"content_type\": \"<string>\",\n              \"content_url\": \"<string>\",\n              \"deleted\": \"<boolean>\",\n              \"file_name\": \"<string>\",\n              \"height\": \"<string>\",\n              \"id\": \"<integer>\",\n              \"inline\": \"<boolean>\",\n              \"malware_access_override\": \"<boolean>\",\n              \"malware_scan_result\": \"<string>\",\n              \"mapped_content_url\": \"<string>\",\n              \"size\": \"<integer>\",\n              \"url\": \"<string>\",\n              \"width\": \"<string>\"\n            },\n            {\n              \"content_type\": \"<string>\",\n              \"content_url\": \"<string>\",\n              \"deleted\": \"<boolean>\",\n              \"file_name\": \"<string>\",\n              \"height\": \"<string>\",\n              \"id\": \"<integer>\",\n              \"inline\": \"<boolean>\",\n              \"malware_access_override\": \"<boolean>\",\n              \"malware_scan_result\": \"<string>\",\n              \"mapped_content_url\": \"<string>\",\n              \"size\": \"<integer>\",\n              \"url\": \"<string>\",\n              \"width\": \"<string>\"\n            }\n          ]\n        },\n        {\n          \"content_type\": \"<string>\",\n          \"content_url\": \"<string>\",\n          \"deleted\": \"<boolean>\",\n          \"file_name\": \"<string>\",\n          \"height\": \"<string>\",\n          \"id\": \"<integer>\",\n          \"inline\": \"<boolean>\",\n          \"malware_access_override\": \"<boolean>\",\n          \"malware_scan_result\": \"<string>\",\n          \"mapped_content_url\": \"<string>\",\n          \"size\": \"<integer>\",\n          \"url\": \"<string>\",\n          \"width\": \"<string>\",\n          \"thumbnails\": [\n            {\n              \"content_type\": \"<string>\",\n              \"content_url\": \"<string>\",\n              \"deleted\": \"<boolean>\",\n              \"file_name\": \"<string>\",\n              \"height\": \"<string>\",\n              \"id\": \"<integer>\",\n              \"inline\": \"<boolean>\",\n              \"malware_access_override\": \"<boolean>\",\n              \"malware_scan_result\": \"<string>\",\n              \"mapped_content_url\": \"<string>\",\n              \"size\": \"<integer>\",\n              \"url\": \"<string>\",\n              \"width\": \"<string>\"\n            },\n            {\n              \"content_type\": \"<string>\",\n              \"content_url\": \"<string>\",\n              \"deleted\": \"<boolean>\",\n              \"file_name\": \"<string>\",\n              \"height\": \"<string>\",\n              \"id\": \"<integer>\",\n              \"inline\": \"<boolean>\",\n              \"malware_access_override\": \"<boolean>\",\n              \"malware_scan_result\": \"<string>\",\n              \"mapped_content_url\": \"<string>\",\n              \"size\": \"<integer>\",\n              \"url\": \"<string>\",\n              \"width\": \"<string>\"\n            }\n          ]\n        }\n      ],\n      \"author\": {\n        \"email\": \"<string>\",\n        \"id\": \"<integer>\",\n        \"name\": \"<string>\"\n      },\n      \"brand_id\": \"<integer>\",\n      \"cause\": \"<string>\",\n      \"cause_id\": \"<integer>\",\n      \"content\": \"<string>\",\n      \"created_at\": \"<dateTime>\",\n      \"id\": \"<integer>\",\n      \"message_id\": \"<string>\",\n      \"recipient\": \"<string>\",\n      \"subject\": \"<string>\",\n      \"ticket_id\": \"<integer>\",\n      \"updated_at\": \"<dateTime>\",\n      \"url\": \"<string>\",\n      \"via\": {\n        \"channel\": \"<string>\",\n        \"source\": {\n          \"from\": {\n            \"address\": \"<string>\",\n            \"id\": \"<integer>\",\n            \"name\": \"<string>\",\n            \"title\": \"<string>\"\n          },\n          \"rel\": \"<string>\",\n          \"to\": {\n            \"address\": \"<string>\",\n            \"name\": \"<string>\"\n          }\n        }\n      }\n    }\n  ]\n}"
    }
  ]
}