Chilkat Online Tools

SQL Server / Support API / List Trigger Revisions

Back to Collection Items

-- Important: See this note about string length limitations for strings returned by sp_OAMethod calls.
--
CREATE PROCEDURE ChilkatSample
AS
BEGIN
    DECLARE @hr int
    -- Important: Do not use nvarchar(max).  See the warning about using nvarchar(max).
    DECLARE @sTmp0 nvarchar(4000)
    -- This example assumes the Chilkat API to have been previously unlocked.
    -- See Global Unlock Sample for sample code.

    DECLARE @http int
    -- Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
    EXEC @hr = sp_OACreate 'Chilkat.Http', @http OUT
    IF @hr <> 0
    BEGIN
        PRINT 'Failed to create ActiveX component'
        RETURN
    END

    DECLARE @success int

    EXEC sp_OASetProperty @http, 'BasicAuth', 1
    EXEC sp_OASetProperty @http, 'Login', 'login'
    EXEC sp_OASetProperty @http, 'Password', 'password'

    EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Accept', 'application/json'

    DECLARE @sbResponseBody int
    -- Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
    EXEC @hr = sp_OACreate 'Chilkat.StringBuilder', @sbResponseBody OUT

    EXEC sp_OAMethod @http, 'QuickGetSb', @success OUT, 'https://example.zendesk.com/api/v2/triggers/:trigger_id/revisions', @sbResponseBody
    IF @success = 0
      BEGIN
        EXEC sp_OAGetProperty @http, 'LastErrorText', @sTmp0 OUT
        PRINT @sTmp0
        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @sbResponseBody
        RETURN
      END

    DECLARE @jResp int
    -- Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
    EXEC @hr = sp_OACreate 'Chilkat.JsonObject', @jResp OUT

    EXEC sp_OAMethod @jResp, 'LoadSb', @success OUT, @sbResponseBody
    EXEC sp_OASetProperty @jResp, 'EmitCompact', 0


    PRINT 'Response Body:'
    EXEC sp_OAMethod @jResp, 'Emit', @sTmp0 OUT
    PRINT @sTmp0

    DECLARE @respStatusCode int
    EXEC sp_OAGetProperty @http, 'LastStatus', @respStatusCode OUT

    PRINT 'Response Status Code = ' + @respStatusCode
    IF @respStatusCode >= 400
      BEGIN

        PRINT 'Response Header:'
        EXEC sp_OAGetProperty @http, 'LastHeader', @sTmp0 OUT
        PRINT @sTmp0

        PRINT 'Failed.'
        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @sbResponseBody
        EXEC @hr = sp_OADestroy @jResp
        RETURN
      END

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

    -- {
    --   "after_cursor": "<string>",
    --   "after_url": "<string>",
    --   "before_cursor": "<string>",
    --   "before_url": "<string>",
    --   "count": "<integer>",
    --   "trigger_revisions": [
    --     {
    --       "author_id": "<integer>",
    --       "created_at": "<string>",
    --       "diff": {
    --         "actions": [
    --           {
    --             "field": [
    --               {
    --                 "change": "<string>",
    --                 "content": "<boolean>"
    --               },
    --               {
    --                 "change": "<string>",
    --                 "content": "<boolean>"
    --               }
    --             ],
    --             "value": [
    --               {
    --                 "change": "<string>",
    --                 "content": "<boolean>"
    --               },
    --               {
    --                 "change": "<string>",
    --                 "content": "<boolean>"
    --               }
    --             ]
    --           },
    --           {
    --             "field": [
    --               {
    --                 "change": "<string>",
    --                 "content": "<boolean>"
    --               },
    --               {
    --                 "change": "<string>",
    --                 "content": "<boolean>"
    --               }
    --             ],
    --             "value": [
    --               {
    --                 "change": "<string>",
    --                 "content": "<boolean>"
    --               },
    --               {
    --                 "change": "<string>",
    --                 "content": "<boolean>"
    --               }
    --             ]
    --           }
    --         ],
    --         "active": [
    --           {
    --             "change": "<string>",
    --             "content": "<boolean>"
    --           },
    --           {
    --             "change": "<string>",
    --             "content": "<boolean>"
    --           }
    --         ],
    --         "conditions": {
    --           "field": [
    --             {
    --               "change": "<string>",
    --               "content": "<boolean>"
    --             },
    --             {
    --               "change": "<string>",
    --               "content": "<boolean>"
    --             }
    --           ],
    --           "operator": [
    --             {
    --               "change": "<string>",
    --               "content": "<boolean>"
    --             },
    --             {
    --               "change": "<string>",
    --               "content": "<boolean>"
    --             }
    --           ],
    --           "value": [
    --             {
    --               "change": "<string>",
    --               "content": "<boolean>"
    --             },
    --             {
    --               "change": "<string>",
    --               "content": "<boolean>"
    --             }
    --           ]
    --         },
    --         "description": [
    --           {
    --             "change": "<string>",
    --             "content": "<boolean>"
    --           },
    --           {
    --             "change": "<string>",
    --             "content": "<boolean>"
    --           }
    --         ],
    --         "source_id": "<integer>",
    --         "target_id": "<integer>",
    --         "title": [
    --           {
    --             "change": "<string>",
    --             "content": "<boolean>"
    --           },
    --           {
    --             "change": "<string>",
    --             "content": "<boolean>"
    --           }
    --         ]
    --       },
    --       "id": "<integer>",
    --       "snapshot": {
    --         "actions": [
    --           {
    --             "field": "<string>",
    --             "value": "<string>"
    --           },
    --           {
    --             "field": "<string>",
    --             "value": "<string>"
    --           }
    --         ],
    --         "active": "<boolean>",
    --         "conditions": {
    --           "all": [
    --             {
    --               "field": "<string>",
    --               "operator": "<string>",
    --               "value": "<string>"
    --             },
    --             {
    --               "field": "<string>",
    --               "operator": "<string>",
    --               "value": "<string>"
    --             }
    --           ],
    --           "any": [
    --             {
    --               "field": "<string>",
    --               "operator": "<string>",
    --               "value": "<string>"
    --             },
    --             {
    --               "field": "<string>",
    --               "operator": "<string>",
    --               "value": "<string>"
    --             }
    --           ]
    --         },
    --         "description": "<string>",
    --         "title": "<string>"
    --       },
    --       "url": "<string>"
    --     },
    --     {
    --       "author_id": "<integer>",
    --       "created_at": "<string>",
    --       "diff": {
    --         "actions": [
    --           {
    --             "field": [
    --               {
    --                 "change": "<string>",
    --                 "content": "<boolean>"
    --               },
    --               {
    --                 "change": "<string>",
    --                 "content": "<boolean>"
    --               }
    --             ],
    --             "value": [
    --               {
    --                 "change": "<string>",
    --                 "content": "<boolean>"
    --               },
    --               {
    --                 "change": "<string>",
    --                 "content": "<boolean>"
    --               }
    --             ]
    --           },
    --           {
    --             "field": [
    --               {
    --                 "change": "<string>",
    --                 "content": "<boolean>"
    --               },
    --               {
    --                 "change": "<string>",
    --                 "content": "<boolean>"
    --               }
    --             ],
    --             "value": [
    --               {
    --                 "change": "<string>",
    --                 "content": "<boolean>"
    --               },
    --               {
    --                 "change": "<string>",
    --                 "content": "<boolean>"
    --               }
    --             ]
    --           }
    --         ],
    --         "active": [
    --           {
    --             "change": "<string>",
    --             "content": "<boolean>"
    --           },
    --           {
    --             "change": "<string>",
    --             "content": "<boolean>"
    --           }
    --         ],
    --         "conditions": {
    --           "field": [
    --             {
    --               "change": "<string>",
    --               "content": "<boolean>"
    --             },
    --             {
    --               "change": "<string>",
    --               "content": "<boolean>"
    --             }
    --           ],
    --           "operator": [
    --             {
    --               "change": "<string>",
    --               "content": "<boolean>"
    --             },
    --             {
    --               "change": "<string>",
    --               "content": "<boolean>"
    --             }
    --           ],
    --           "value": [
    --             {
    --               "change": "<string>",
    --               "content": "<boolean>"
    --             },
    --             {
    --               "change": "<string>",
    --               "content": "<boolean>"
    --             }
    --           ]
    --         },
    --         "description": [
    --           {
    --             "change": "<string>",
    --             "content": "<boolean>"
    --           },
    --           {
    --             "change": "<string>",
    --             "content": "<boolean>"
    --           }
    --         ],
    --         "source_id": "<integer>",
    --         "target_id": "<integer>",
    --         "title": [
    --           {
    --             "change": "<string>",
    --             "content": "<boolean>"
    --           },
    --           {
    --             "change": "<string>",
    --             "content": "<boolean>"
    --           }
    --         ]
    --       },
    --       "id": "<integer>",
    --       "snapshot": {
    --         "actions": [
    --           {
    --             "field": "<string>",
    --             "value": "<string>"
    --           },
    --           {
    --             "field": "<string>",
    --             "value": "<string>"
    --           }
    --         ],
    --         "active": "<boolean>",
    --         "conditions": {
    --           "all": [
    --             {
    --               "field": "<string>",
    --               "operator": "<string>",
    --               "value": "<string>"
    --             },
    --             {
    --               "field": "<string>",
    --               "operator": "<string>",
    --               "value": "<string>"
    --             }
    --           ],
    --           "any": [
    --             {
    --               "field": "<string>",
    --               "operator": "<string>",
    --               "value": "<string>"
    --             },
    --             {
    --               "field": "<string>",
    --               "operator": "<string>",
    --               "value": "<string>"
    --             }
    --           ]
    --         },
    --         "description": "<string>",
    --         "title": "<string>"
    --       },
    --       "url": "<string>"
    --     }
    --   ]
    -- }

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

    DECLARE @author_id nvarchar(4000)

    DECLARE @created_at nvarchar(4000)

    DECLARE @Source_id nvarchar(4000)

    DECLARE @Target_id nvarchar(4000)

    DECLARE @id nvarchar(4000)

    DECLARE @Active nvarchar(4000)

    DECLARE @Description nvarchar(4000)

    DECLARE @Title nvarchar(4000)

    DECLARE @url nvarchar(4000)

    DECLARE @j int

    DECLARE @count_j int

    DECLARE @k int

    DECLARE @count_k int

    DECLARE @change nvarchar(4000)

    DECLARE @content nvarchar(4000)

    DECLARE @field nvarchar(4000)

    DECLARE @value nvarchar(4000)

    DECLARE @operator nvarchar(4000)

    DECLARE @after_cursor nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @after_cursor OUT, 'after_cursor'
    DECLARE @after_url nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @after_url OUT, 'after_url'
    DECLARE @before_cursor nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @before_cursor OUT, 'before_cursor'
    DECLARE @before_url nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @before_url OUT, 'before_url'
    DECLARE @count nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @count OUT, 'count'
    DECLARE @i int
    SELECT @i = 0
    DECLARE @count_i int
    EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'trigger_revisions'
    WHILE @i < @count_i
      BEGIN
        EXEC sp_OASetProperty @jResp, 'I', @i
        EXEC sp_OAMethod @jResp, 'StringOf', @author_id OUT, 'trigger_revisions[i].author_id'
        EXEC sp_OAMethod @jResp, 'StringOf', @created_at OUT, 'trigger_revisions[i].created_at'
        EXEC sp_OAMethod @jResp, 'StringOf', @Source_id OUT, 'trigger_revisions[i].diff.source_id'
        EXEC sp_OAMethod @jResp, 'StringOf', @Target_id OUT, 'trigger_revisions[i].diff.target_id'
        EXEC sp_OAMethod @jResp, 'StringOf', @id OUT, 'trigger_revisions[i].id'
        EXEC sp_OAMethod @jResp, 'StringOf', @Active OUT, 'trigger_revisions[i].snapshot.active'
        EXEC sp_OAMethod @jResp, 'StringOf', @Description OUT, 'trigger_revisions[i].snapshot.description'
        EXEC sp_OAMethod @jResp, 'StringOf', @Title OUT, 'trigger_revisions[i].snapshot.title'
        EXEC sp_OAMethod @jResp, 'StringOf', @url OUT, 'trigger_revisions[i].url'
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'trigger_revisions[i].diff.actions'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            SELECT @k = 0
            EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_k OUT, 'trigger_revisions[i].diff.actions[j].field'
            WHILE @k < @count_k
              BEGIN
                EXEC sp_OASetProperty @jResp, 'K', @k
                EXEC sp_OAMethod @jResp, 'StringOf', @change OUT, 'trigger_revisions[i].diff.actions[j].field[k].change'
                EXEC sp_OAMethod @jResp, 'StringOf', @content OUT, 'trigger_revisions[i].diff.actions[j].field[k].content'
                SELECT @k = @k + 1
              END
            SELECT @k = 0
            EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_k OUT, 'trigger_revisions[i].diff.actions[j].value'
            WHILE @k < @count_k
              BEGIN
                EXEC sp_OASetProperty @jResp, 'K', @k
                EXEC sp_OAMethod @jResp, 'StringOf', @change OUT, 'trigger_revisions[i].diff.actions[j].value[k].change'
                EXEC sp_OAMethod @jResp, 'StringOf', @content OUT, 'trigger_revisions[i].diff.actions[j].value[k].content'
                SELECT @k = @k + 1
              END
            SELECT @j = @j + 1
          END
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'trigger_revisions[i].diff.active'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            EXEC sp_OAMethod @jResp, 'StringOf', @change OUT, 'trigger_revisions[i].diff.active[j].change'
            EXEC sp_OAMethod @jResp, 'StringOf', @content OUT, 'trigger_revisions[i].diff.active[j].content'
            SELECT @j = @j + 1
          END
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'trigger_revisions[i].diff.conditions.field'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            EXEC sp_OAMethod @jResp, 'StringOf', @change OUT, 'trigger_revisions[i].diff.conditions.field[j].change'
            EXEC sp_OAMethod @jResp, 'StringOf', @content OUT, 'trigger_revisions[i].diff.conditions.field[j].content'
            SELECT @j = @j + 1
          END
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'trigger_revisions[i].diff.conditions.operator'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            EXEC sp_OAMethod @jResp, 'StringOf', @change OUT, 'trigger_revisions[i].diff.conditions.operator[j].change'
            EXEC sp_OAMethod @jResp, 'StringOf', @content OUT, 'trigger_revisions[i].diff.conditions.operator[j].content'
            SELECT @j = @j + 1
          END
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'trigger_revisions[i].diff.conditions.value'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            EXEC sp_OAMethod @jResp, 'StringOf', @change OUT, 'trigger_revisions[i].diff.conditions.value[j].change'
            EXEC sp_OAMethod @jResp, 'StringOf', @content OUT, 'trigger_revisions[i].diff.conditions.value[j].content'
            SELECT @j = @j + 1
          END
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'trigger_revisions[i].diff.description'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            EXEC sp_OAMethod @jResp, 'StringOf', @change OUT, 'trigger_revisions[i].diff.description[j].change'
            EXEC sp_OAMethod @jResp, 'StringOf', @content OUT, 'trigger_revisions[i].diff.description[j].content'
            SELECT @j = @j + 1
          END
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'trigger_revisions[i].diff.title'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            EXEC sp_OAMethod @jResp, 'StringOf', @change OUT, 'trigger_revisions[i].diff.title[j].change'
            EXEC sp_OAMethod @jResp, 'StringOf', @content OUT, 'trigger_revisions[i].diff.title[j].content'
            SELECT @j = @j + 1
          END
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'trigger_revisions[i].snapshot.actions'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            EXEC sp_OAMethod @jResp, 'StringOf', @field OUT, 'trigger_revisions[i].snapshot.actions[j].field'
            EXEC sp_OAMethod @jResp, 'StringOf', @value OUT, 'trigger_revisions[i].snapshot.actions[j].value'
            SELECT @j = @j + 1
          END
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'trigger_revisions[i].snapshot.conditions.all'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            EXEC sp_OAMethod @jResp, 'StringOf', @field OUT, 'trigger_revisions[i].snapshot.conditions.all[j].field'
            EXEC sp_OAMethod @jResp, 'StringOf', @operator OUT, 'trigger_revisions[i].snapshot.conditions.all[j].operator'
            EXEC sp_OAMethod @jResp, 'StringOf', @value OUT, 'trigger_revisions[i].snapshot.conditions.all[j].value'
            SELECT @j = @j + 1
          END
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'trigger_revisions[i].snapshot.conditions.any'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            EXEC sp_OAMethod @jResp, 'StringOf', @field OUT, 'trigger_revisions[i].snapshot.conditions.any[j].field'
            EXEC sp_OAMethod @jResp, 'StringOf', @operator OUT, 'trigger_revisions[i].snapshot.conditions.any[j].operator'
            EXEC sp_OAMethod @jResp, 'StringOf', @value OUT, 'trigger_revisions[i].snapshot.conditions.any[j].value'
            SELECT @j = @j + 1
          END
        SELECT @i = @i + 1
      END

    EXEC @hr = sp_OADestroy @http
    EXEC @hr = sp_OADestroy @sbResponseBody
    EXEC @hr = sp_OADestroy @jResp


END
GO

Curl Command

curl  -u login:password -X GET
	-H "Accept: application/json"
https://example.zendesk.com/api/v2/triggers/:trigger_id/revisions

Postman Collection Item JSON

{
  "name": "List Trigger Revisions",
  "request": {
    "method": "GET",
    "header": [
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "url": {
      "raw": "{{baseUrl}}/api/v2/triggers/:trigger_id/revisions",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "v2",
        "triggers",
        ":trigger_id",
        "revisions"
      ],
      "variable": [
        {
          "key": "trigger_id",
          "value": "<integer>"
        }
      ]
    },
    "description": "List the revisions associated with a trigger. Trigger revision history is only available on Enterprise plans.\n\n#### Allowed For\n\n * Agents\n\n#### Sideloads\n\nThe following sideloads are supported:\n\n| Name  | Will sideload\n| ----- | -------------\n| users | The user that authored each revision\n\n#### Pagination\n\nThis endpoint uses cursor-based pagination. The records are ordered in\ndescending order by the `created_at` timestamp, then by `id` on duplicate\n`created_at` values.\n\nThe `cursor` parameter is a non-human-readable argument you can use to move\nforward or backward in time.\n\nEach JSON response will contain the following attributes to help you get\nmore results:\n\n- `after_url` requests more recent results\n- `before_url` requests older results\n- `after_cursor` is the cursor to build the request yourself\n- `before_cursor` is the cursor to build the request yourself\n\nThe properties are null if no more records are available.\n\nYou can request a maximum of 1000 records using the `limit` parameter. If\nno `limit` parameter is supplied, it will default to 1,000.\n"
  },
  "response": [
    {
      "name": "Success response",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "description": "Added as a part of security scheme: basic",
            "key": "Authorization",
            "value": "Basic <credentials>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v2/triggers/:trigger_id/revisions",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v2",
            "triggers",
            ":trigger_id",
            "revisions"
          ],
          "variable": [
            {
              "key": "trigger_id"
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"after_cursor\": \"<string>\",\n  \"after_url\": \"<string>\",\n  \"before_cursor\": \"<string>\",\n  \"before_url\": \"<string>\",\n  \"count\": \"<integer>\",\n  \"trigger_revisions\": [\n    {\n      \"author_id\": \"<integer>\",\n      \"created_at\": \"<string>\",\n      \"diff\": {\n        \"actions\": [\n          {\n            \"field\": [\n              {\n                \"change\": \"<string>\",\n                \"content\": \"<boolean>\"\n              },\n              {\n                \"change\": \"<string>\",\n                \"content\": \"<boolean>\"\n              }\n            ],\n            \"value\": [\n              {\n                \"change\": \"<string>\",\n                \"content\": \"<boolean>\"\n              },\n              {\n                \"change\": \"<string>\",\n                \"content\": \"<boolean>\"\n              }\n            ]\n          },\n          {\n            \"field\": [\n              {\n                \"change\": \"<string>\",\n                \"content\": \"<boolean>\"\n              },\n              {\n                \"change\": \"<string>\",\n                \"content\": \"<boolean>\"\n              }\n            ],\n            \"value\": [\n              {\n                \"change\": \"<string>\",\n                \"content\": \"<boolean>\"\n              },\n              {\n                \"change\": \"<string>\",\n                \"content\": \"<boolean>\"\n              }\n            ]\n          }\n        ],\n        \"active\": [\n          {\n            \"change\": \"<string>\",\n            \"content\": \"<boolean>\"\n          },\n          {\n            \"change\": \"<string>\",\n            \"content\": \"<boolean>\"\n          }\n        ],\n        \"conditions\": {\n          \"field\": [\n            {\n              \"change\": \"<string>\",\n              \"content\": \"<boolean>\"\n            },\n            {\n              \"change\": \"<string>\",\n              \"content\": \"<boolean>\"\n            }\n          ],\n          \"operator\": [\n            {\n              \"change\": \"<string>\",\n              \"content\": \"<boolean>\"\n            },\n            {\n              \"change\": \"<string>\",\n              \"content\": \"<boolean>\"\n            }\n          ],\n          \"value\": [\n            {\n              \"change\": \"<string>\",\n              \"content\": \"<boolean>\"\n            },\n            {\n              \"change\": \"<string>\",\n              \"content\": \"<boolean>\"\n            }\n          ]\n        },\n        \"description\": [\n          {\n            \"change\": \"<string>\",\n            \"content\": \"<boolean>\"\n          },\n          {\n            \"change\": \"<string>\",\n            \"content\": \"<boolean>\"\n          }\n        ],\n        \"source_id\": \"<integer>\",\n        \"target_id\": \"<integer>\",\n        \"title\": [\n          {\n            \"change\": \"<string>\",\n            \"content\": \"<boolean>\"\n          },\n          {\n            \"change\": \"<string>\",\n            \"content\": \"<boolean>\"\n          }\n        ]\n      },\n      \"id\": \"<integer>\",\n      \"snapshot\": {\n        \"actions\": [\n          {\n            \"field\": \"<string>\",\n            \"value\": \"<string>\"\n          },\n          {\n            \"field\": \"<string>\",\n            \"value\": \"<string>\"\n          }\n        ],\n        \"active\": \"<boolean>\",\n        \"conditions\": {\n          \"all\": [\n            {\n              \"field\": \"<string>\",\n              \"operator\": \"<string>\",\n              \"value\": \"<string>\"\n            },\n            {\n              \"field\": \"<string>\",\n              \"operator\": \"<string>\",\n              \"value\": \"<string>\"\n            }\n          ],\n          \"any\": [\n            {\n              \"field\": \"<string>\",\n              \"operator\": \"<string>\",\n              \"value\": \"<string>\"\n            },\n            {\n              \"field\": \"<string>\",\n              \"operator\": \"<string>\",\n              \"value\": \"<string>\"\n            }\n          ]\n        },\n        \"description\": \"<string>\",\n        \"title\": \"<string>\"\n      },\n      \"url\": \"<string>\"\n    },\n    {\n      \"author_id\": \"<integer>\",\n      \"created_at\": \"<string>\",\n      \"diff\": {\n        \"actions\": [\n          {\n            \"field\": [\n              {\n                \"change\": \"<string>\",\n                \"content\": \"<boolean>\"\n              },\n              {\n                \"change\": \"<string>\",\n                \"content\": \"<boolean>\"\n              }\n            ],\n            \"value\": [\n              {\n                \"change\": \"<string>\",\n                \"content\": \"<boolean>\"\n              },\n              {\n                \"change\": \"<string>\",\n                \"content\": \"<boolean>\"\n              }\n            ]\n          },\n          {\n            \"field\": [\n              {\n                \"change\": \"<string>\",\n                \"content\": \"<boolean>\"\n              },\n              {\n                \"change\": \"<string>\",\n                \"content\": \"<boolean>\"\n              }\n            ],\n            \"value\": [\n              {\n                \"change\": \"<string>\",\n                \"content\": \"<boolean>\"\n              },\n              {\n                \"change\": \"<string>\",\n                \"content\": \"<boolean>\"\n              }\n            ]\n          }\n        ],\n        \"active\": [\n          {\n            \"change\": \"<string>\",\n            \"content\": \"<boolean>\"\n          },\n          {\n            \"change\": \"<string>\",\n            \"content\": \"<boolean>\"\n          }\n        ],\n        \"conditions\": {\n          \"field\": [\n            {\n              \"change\": \"<string>\",\n              \"content\": \"<boolean>\"\n            },\n            {\n              \"change\": \"<string>\",\n              \"content\": \"<boolean>\"\n            }\n          ],\n          \"operator\": [\n            {\n              \"change\": \"<string>\",\n              \"content\": \"<boolean>\"\n            },\n            {\n              \"change\": \"<string>\",\n              \"content\": \"<boolean>\"\n            }\n          ],\n          \"value\": [\n            {\n              \"change\": \"<string>\",\n              \"content\": \"<boolean>\"\n            },\n            {\n              \"change\": \"<string>\",\n              \"content\": \"<boolean>\"\n            }\n          ]\n        },\n        \"description\": [\n          {\n            \"change\": \"<string>\",\n            \"content\": \"<boolean>\"\n          },\n          {\n            \"change\": \"<string>\",\n            \"content\": \"<boolean>\"\n          }\n        ],\n        \"source_id\": \"<integer>\",\n        \"target_id\": \"<integer>\",\n        \"title\": [\n          {\n            \"change\": \"<string>\",\n            \"content\": \"<boolean>\"\n          },\n          {\n            \"change\": \"<string>\",\n            \"content\": \"<boolean>\"\n          }\n        ]\n      },\n      \"id\": \"<integer>\",\n      \"snapshot\": {\n        \"actions\": [\n          {\n            \"field\": \"<string>\",\n            \"value\": \"<string>\"\n          },\n          {\n            \"field\": \"<string>\",\n            \"value\": \"<string>\"\n          }\n        ],\n        \"active\": \"<boolean>\",\n        \"conditions\": {\n          \"all\": [\n            {\n              \"field\": \"<string>\",\n              \"operator\": \"<string>\",\n              \"value\": \"<string>\"\n            },\n            {\n              \"field\": \"<string>\",\n              \"operator\": \"<string>\",\n              \"value\": \"<string>\"\n            }\n          ],\n          \"any\": [\n            {\n              \"field\": \"<string>\",\n              \"operator\": \"<string>\",\n              \"value\": \"<string>\"\n            },\n            {\n              \"field\": \"<string>\",\n              \"operator\": \"<string>\",\n              \"value\": \"<string>\"\n            }\n          ]\n        },\n        \"description\": \"<string>\",\n        \"title\": \"<string>\"\n      },\n      \"url\": \"<string>\"\n    }\n  ]\n}"
    }
  ]
}