SQL Server / Support API / List Workspaces
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/workspaces', @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)
-- {
-- "workspaces": [
-- {
-- "activated": "<boolean>",
-- "apps": [
-- {
-- "ut_1": true
-- },
-- {
-- "Lorem_ec": "ut ipsum nulla voluptate",
-- "sed_a": 38535010.16636646
-- }
-- ],
-- "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>"
-- }
-- ]
-- },
-- "created_at": "<dateTime>",
-- "description": "<string>",
-- "id": "<integer>",
-- "macro_ids": [
-- "<integer>",
-- "<integer>"
-- ],
-- "macros": [
-- "<integer>",
-- "<integer>"
-- ],
-- "position": "<integer>",
-- "prefer_workspace_app_order": "<boolean>",
-- "selected_macros": [
-- {
-- "actions": [
-- {
-- "field": "<string>",
-- "value": "<string>"
-- },
-- {
-- "field": "<string>",
-- "value": "<string>"
-- }
-- ],
-- "title": "<string>",
-- "active": "<boolean>",
-- "created_at": "<dateTime>",
-- "default": "<boolean>",
-- "description": "<string>",
-- "id": "<integer>",
-- "position": "<integer>",
-- "restriction": {
-- "elit_0": 95926683,
-- "Loreme7": 1915356
-- },
-- "updated_at": "<dateTime>",
-- "url": "<string>",
-- "app_installation": "<string>",
-- "categories": "<string>",
-- "permissions": "<string>",
-- "usage_1h": "<integer>",
-- "usage_7d": "<integer>",
-- "usage_24h": "<integer>",
-- "usage_30d": "<integer>"
-- },
-- {
-- "actions": [
-- {
-- "field": "<string>",
-- "value": "<string>"
-- },
-- {
-- "field": "<string>",
-- "value": "<string>"
-- }
-- ],
-- "title": "<string>",
-- "active": "<boolean>",
-- "created_at": "<dateTime>",
-- "default": "<boolean>",
-- "description": "<string>",
-- "id": "<integer>",
-- "position": "<integer>",
-- "restriction": {
-- "ut_2": true,
-- "exf9": false,
-- "magna_5": false
-- },
-- "updated_at": "<dateTime>",
-- "url": "<string>",
-- "app_installation": "<string>",
-- "categories": "<string>",
-- "permissions": "<string>",
-- "usage_1h": "<integer>",
-- "usage_7d": "<integer>",
-- "usage_24h": "<integer>",
-- "usage_30d": "<integer>"
-- }
-- ],
-- "ticket_form_id": "<integer>",
-- "title": "<string>",
-- "updated_at": "<dateTime>",
-- "url": "<string>"
-- },
-- {
-- "activated": "<boolean>",
-- "apps": [
-- {
-- "laborum_": "esse elit mollit nulla",
-- "dolore_72": 44930495
-- },
-- {
-- "Duis_e27": false,
-- "do_7b": true,
-- "eu_6": true
-- }
-- ],
-- "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>"
-- }
-- ]
-- },
-- "created_at": "<dateTime>",
-- "description": "<string>",
-- "id": "<integer>",
-- "macro_ids": [
-- "<integer>",
-- "<integer>"
-- ],
-- "macros": [
-- "<integer>",
-- "<integer>"
-- ],
-- "position": "<integer>",
-- "prefer_workspace_app_order": "<boolean>",
-- "selected_macros": [
-- {
-- "actions": [
-- {
-- "field": "<string>",
-- "value": "<string>"
-- },
-- {
-- "field": "<string>",
-- "value": "<string>"
-- }
-- ],
-- "title": "<string>",
-- "active": "<boolean>",
-- "created_at": "<dateTime>",
-- "default": "<boolean>",
-- "description": "<string>",
-- "id": "<integer>",
-- "position": "<integer>",
-- "restriction": {
-- "nostrud_7": false,
-- "ex69c": -43731952,
-- "ut_a": "anim nostrud pariatur",
-- "mollit__": -87941840
-- },
-- "updated_at": "<dateTime>",
-- "url": "<string>",
-- "app_installation": "<string>",
-- "categories": "<string>",
-- "permissions": "<string>",
-- "usage_1h": "<integer>",
-- "usage_7d": "<integer>",
-- "usage_24h": "<integer>",
-- "usage_30d": "<integer>"
-- },
-- {
-- "actions": [
-- {
-- "field": "<string>",
-- "value": "<string>"
-- },
-- {
-- "field": "<string>",
-- "value": "<string>"
-- }
-- ],
-- "title": "<string>",
-- "active": "<boolean>",
-- "created_at": "<dateTime>",
-- "default": "<boolean>",
-- "description": "<string>",
-- "id": "<integer>",
-- "position": "<integer>",
-- "restriction": {
-- "deseruntc_": false,
-- "consequatd0": 17786909,
-- "id_4a": false
-- },
-- "updated_at": "<dateTime>",
-- "url": "<string>",
-- "app_installation": "<string>",
-- "categories": "<string>",
-- "permissions": "<string>",
-- "usage_1h": "<integer>",
-- "usage_7d": "<integer>",
-- "usage_24h": "<integer>",
-- "usage_30d": "<integer>"
-- }
-- ],
-- "ticket_form_id": "<integer>",
-- "title": "<string>",
-- "updated_at": "<dateTime>",
-- "url": "<string>"
-- }
-- ],
-- "count": "<integer>",
-- "next_page": "<string>",
-- "previous_page": "<string>"
-- }
-- Sample code for parsing the JSON response...
-- Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code
DECLARE @activated nvarchar(4000)
DECLARE @created_at nvarchar(4000)
DECLARE @description nvarchar(4000)
DECLARE @id nvarchar(4000)
DECLARE @position nvarchar(4000)
DECLARE @prefer_workspace_app_order nvarchar(4000)
DECLARE @ticket_form_id nvarchar(4000)
DECLARE @title nvarchar(4000)
DECLARE @updated_at nvarchar(4000)
DECLARE @url nvarchar(4000)
DECLARE @j int
DECLARE @count_j int
DECLARE @ut_1 int
DECLARE @Lorem_ec nvarchar(4000)
DECLARE @sed_a nvarchar(4000)
DECLARE @laborum_ nvarchar(4000)
DECLARE @dolore_72 int
DECLARE @Duis_e27 int
DECLARE @do_7b int
DECLARE @eu_6 int
DECLARE @field nvarchar(4000)
DECLARE @operator nvarchar(4000)
DECLARE @value nvarchar(4000)
DECLARE @strVal nvarchar(4000)
DECLARE @active nvarchar(4000)
DECLARE @default nvarchar(4000)
DECLARE @Elit_0 int
DECLARE @Loreme7 int
DECLARE @app_installation nvarchar(4000)
DECLARE @categories nvarchar(4000)
DECLARE @permissions nvarchar(4000)
DECLARE @usage_1h nvarchar(4000)
DECLARE @usage_7d nvarchar(4000)
DECLARE @usage_24h nvarchar(4000)
DECLARE @usage_30d nvarchar(4000)
DECLARE @Ut_2 int
DECLARE @Exf9 int
DECLARE @Magna_5 int
DECLARE @Nostrud_7 int
DECLARE @Ex69c int
DECLARE @Ut_a nvarchar(4000)
DECLARE @Mollit__ int
DECLARE @Deseruntc_ int
DECLARE @Consequatd0 int
DECLARE @Id_4a int
DECLARE @k int
DECLARE @count_k int
DECLARE @count nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @count OUT, 'count'
DECLARE @next_page nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @next_page OUT, 'next_page'
DECLARE @previous_page nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @previous_page OUT, 'previous_page'
DECLARE @i int
SELECT @i = 0
DECLARE @count_i int
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'workspaces'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @activated OUT, 'workspaces[i].activated'
EXEC sp_OAMethod @jResp, 'StringOf', @created_at OUT, 'workspaces[i].created_at'
EXEC sp_OAMethod @jResp, 'StringOf', @description OUT, 'workspaces[i].description'
EXEC sp_OAMethod @jResp, 'StringOf', @id OUT, 'workspaces[i].id'
EXEC sp_OAMethod @jResp, 'StringOf', @position OUT, 'workspaces[i].position'
EXEC sp_OAMethod @jResp, 'StringOf', @prefer_workspace_app_order OUT, 'workspaces[i].prefer_workspace_app_order'
EXEC sp_OAMethod @jResp, 'StringOf', @ticket_form_id OUT, 'workspaces[i].ticket_form_id'
EXEC sp_OAMethod @jResp, 'StringOf', @title OUT, 'workspaces[i].title'
EXEC sp_OAMethod @jResp, 'StringOf', @updated_at OUT, 'workspaces[i].updated_at'
EXEC sp_OAMethod @jResp, 'StringOf', @url OUT, 'workspaces[i].url'
SELECT @j = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'workspaces[i].apps'
WHILE @j < @count_j
BEGIN
EXEC sp_OASetProperty @jResp, 'J', @j
EXEC sp_OAMethod @jResp, 'BoolOf', @ut_1 OUT, 'workspaces[i].apps[j].ut_1'
EXEC sp_OAMethod @jResp, 'StringOf', @Lorem_ec OUT, 'workspaces[i].apps[j].Lorem_ec'
EXEC sp_OAMethod @jResp, 'StringOf', @sed_a OUT, 'workspaces[i].apps[j].sed_a'
EXEC sp_OAMethod @jResp, 'StringOf', @laborum_ OUT, 'workspaces[i].apps[j].laborum_'
EXEC sp_OAMethod @jResp, 'IntOf', @dolore_72 OUT, 'workspaces[i].apps[j].dolore_72'
EXEC sp_OAMethod @jResp, 'BoolOf', @Duis_e27 OUT, 'workspaces[i].apps[j].Duis_e27'
EXEC sp_OAMethod @jResp, 'BoolOf', @do_7b OUT, 'workspaces[i].apps[j].do_7b'
EXEC sp_OAMethod @jResp, 'BoolOf', @eu_6 OUT, 'workspaces[i].apps[j].eu_6'
SELECT @j = @j + 1
END
SELECT @j = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'workspaces[i].conditions.all'
WHILE @j < @count_j
BEGIN
EXEC sp_OASetProperty @jResp, 'J', @j
EXEC sp_OAMethod @jResp, 'StringOf', @field OUT, 'workspaces[i].conditions.all[j].field'
EXEC sp_OAMethod @jResp, 'StringOf', @operator OUT, 'workspaces[i].conditions.all[j].operator'
EXEC sp_OAMethod @jResp, 'StringOf', @value OUT, 'workspaces[i].conditions.all[j].value'
SELECT @j = @j + 1
END
SELECT @j = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'workspaces[i].conditions.any'
WHILE @j < @count_j
BEGIN
EXEC sp_OASetProperty @jResp, 'J', @j
EXEC sp_OAMethod @jResp, 'StringOf', @field OUT, 'workspaces[i].conditions.any[j].field'
EXEC sp_OAMethod @jResp, 'StringOf', @operator OUT, 'workspaces[i].conditions.any[j].operator'
EXEC sp_OAMethod @jResp, 'StringOf', @value OUT, 'workspaces[i].conditions.any[j].value'
SELECT @j = @j + 1
END
SELECT @j = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'workspaces[i].macro_ids'
WHILE @j < @count_j
BEGIN
EXEC sp_OASetProperty @jResp, 'J', @j
EXEC sp_OAMethod @jResp, 'StringOf', @strVal OUT, 'workspaces[i].macro_ids[j]'
SELECT @j = @j + 1
END
SELECT @j = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'workspaces[i].macros'
WHILE @j < @count_j
BEGIN
EXEC sp_OASetProperty @jResp, 'J', @j
EXEC sp_OAMethod @jResp, 'StringOf', @strVal OUT, 'workspaces[i].macros[j]'
SELECT @j = @j + 1
END
SELECT @j = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'workspaces[i].selected_macros'
WHILE @j < @count_j
BEGIN
EXEC sp_OASetProperty @jResp, 'J', @j
EXEC sp_OAMethod @jResp, 'StringOf', @title OUT, 'workspaces[i].selected_macros[j].title'
EXEC sp_OAMethod @jResp, 'StringOf', @active OUT, 'workspaces[i].selected_macros[j].active'
EXEC sp_OAMethod @jResp, 'StringOf', @created_at OUT, 'workspaces[i].selected_macros[j].created_at'
EXEC sp_OAMethod @jResp, 'StringOf', @default OUT, 'workspaces[i].selected_macros[j].default'
EXEC sp_OAMethod @jResp, 'StringOf', @description OUT, 'workspaces[i].selected_macros[j].description'
EXEC sp_OAMethod @jResp, 'StringOf', @id OUT, 'workspaces[i].selected_macros[j].id'
EXEC sp_OAMethod @jResp, 'StringOf', @position OUT, 'workspaces[i].selected_macros[j].position'
EXEC sp_OAMethod @jResp, 'IntOf', @Elit_0 OUT, 'workspaces[i].selected_macros[j].restriction.elit_0'
EXEC sp_OAMethod @jResp, 'IntOf', @Loreme7 OUT, 'workspaces[i].selected_macros[j].restriction.Loreme7'
EXEC sp_OAMethod @jResp, 'StringOf', @updated_at OUT, 'workspaces[i].selected_macros[j].updated_at'
EXEC sp_OAMethod @jResp, 'StringOf', @url OUT, 'workspaces[i].selected_macros[j].url'
EXEC sp_OAMethod @jResp, 'StringOf', @app_installation OUT, 'workspaces[i].selected_macros[j].app_installation'
EXEC sp_OAMethod @jResp, 'StringOf', @categories OUT, 'workspaces[i].selected_macros[j].categories'
EXEC sp_OAMethod @jResp, 'StringOf', @permissions OUT, 'workspaces[i].selected_macros[j].permissions'
EXEC sp_OAMethod @jResp, 'StringOf', @usage_1h OUT, 'workspaces[i].selected_macros[j].usage_1h'
EXEC sp_OAMethod @jResp, 'StringOf', @usage_7d OUT, 'workspaces[i].selected_macros[j].usage_7d'
EXEC sp_OAMethod @jResp, 'StringOf', @usage_24h OUT, 'workspaces[i].selected_macros[j].usage_24h'
EXEC sp_OAMethod @jResp, 'StringOf', @usage_30d OUT, 'workspaces[i].selected_macros[j].usage_30d'
EXEC sp_OAMethod @jResp, 'BoolOf', @Ut_2 OUT, 'workspaces[i].selected_macros[j].restriction.ut_2'
EXEC sp_OAMethod @jResp, 'BoolOf', @Exf9 OUT, 'workspaces[i].selected_macros[j].restriction.exf9'
EXEC sp_OAMethod @jResp, 'BoolOf', @Magna_5 OUT, 'workspaces[i].selected_macros[j].restriction.magna_5'
EXEC sp_OAMethod @jResp, 'BoolOf', @Nostrud_7 OUT, 'workspaces[i].selected_macros[j].restriction.nostrud_7'
EXEC sp_OAMethod @jResp, 'IntOf', @Ex69c OUT, 'workspaces[i].selected_macros[j].restriction.ex69c'
EXEC sp_OAMethod @jResp, 'StringOf', @Ut_a OUT, 'workspaces[i].selected_macros[j].restriction.ut_a'
EXEC sp_OAMethod @jResp, 'IntOf', @Mollit__ OUT, 'workspaces[i].selected_macros[j].restriction.mollit__'
EXEC sp_OAMethod @jResp, 'BoolOf', @Deseruntc_ OUT, 'workspaces[i].selected_macros[j].restriction.deseruntc_'
EXEC sp_OAMethod @jResp, 'IntOf', @Consequatd0 OUT, 'workspaces[i].selected_macros[j].restriction.consequatd0'
EXEC sp_OAMethod @jResp, 'BoolOf', @Id_4a OUT, 'workspaces[i].selected_macros[j].restriction.id_4a'
SELECT @k = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_k OUT, 'workspaces[i].selected_macros[j].actions'
WHILE @k < @count_k
BEGIN
EXEC sp_OASetProperty @jResp, 'K', @k
EXEC sp_OAMethod @jResp, 'StringOf', @field OUT, 'workspaces[i].selected_macros[j].actions[k].field'
EXEC sp_OAMethod @jResp, 'StringOf', @value OUT, 'workspaces[i].selected_macros[j].actions[k].value'
SELECT @k = @k + 1
END
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/workspaces
Postman Collection Item JSON
{
"name": "List Workspaces",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/api/v2/workspaces",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v2",
"workspaces"
]
},
"description": "#### Allowed For\n\n* Admins, Agents\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/workspaces",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v2",
"workspaces"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"workspaces\": [\n {\n \"activated\": \"<boolean>\",\n \"apps\": [\n {\n \"ut_1\": true\n },\n {\n \"Lorem_ec\": \"ut ipsum nulla voluptate\",\n \"sed_a\": 38535010.16636646\n }\n ],\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 \"created_at\": \"<dateTime>\",\n \"description\": \"<string>\",\n \"id\": \"<integer>\",\n \"macro_ids\": [\n \"<integer>\",\n \"<integer>\"\n ],\n \"macros\": [\n \"<integer>\",\n \"<integer>\"\n ],\n \"position\": \"<integer>\",\n \"prefer_workspace_app_order\": \"<boolean>\",\n \"selected_macros\": [\n {\n \"actions\": [\n {\n \"field\": \"<string>\",\n \"value\": \"<string>\"\n },\n {\n \"field\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"title\": \"<string>\",\n \"active\": \"<boolean>\",\n \"created_at\": \"<dateTime>\",\n \"default\": \"<boolean>\",\n \"description\": \"<string>\",\n \"id\": \"<integer>\",\n \"position\": \"<integer>\",\n \"restriction\": {\n \"elit_0\": 95926683,\n \"Loreme7\": 1915356\n },\n \"updated_at\": \"<dateTime>\",\n \"url\": \"<string>\",\n \"app_installation\": \"<string>\",\n \"categories\": \"<string>\",\n \"permissions\": \"<string>\",\n \"usage_1h\": \"<integer>\",\n \"usage_7d\": \"<integer>\",\n \"usage_24h\": \"<integer>\",\n \"usage_30d\": \"<integer>\"\n },\n {\n \"actions\": [\n {\n \"field\": \"<string>\",\n \"value\": \"<string>\"\n },\n {\n \"field\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"title\": \"<string>\",\n \"active\": \"<boolean>\",\n \"created_at\": \"<dateTime>\",\n \"default\": \"<boolean>\",\n \"description\": \"<string>\",\n \"id\": \"<integer>\",\n \"position\": \"<integer>\",\n \"restriction\": {\n \"ut_2\": true,\n \"exf9\": false,\n \"magna_5\": false\n },\n \"updated_at\": \"<dateTime>\",\n \"url\": \"<string>\",\n \"app_installation\": \"<string>\",\n \"categories\": \"<string>\",\n \"permissions\": \"<string>\",\n \"usage_1h\": \"<integer>\",\n \"usage_7d\": \"<integer>\",\n \"usage_24h\": \"<integer>\",\n \"usage_30d\": \"<integer>\"\n }\n ],\n \"ticket_form_id\": \"<integer>\",\n \"title\": \"<string>\",\n \"updated_at\": \"<dateTime>\",\n \"url\": \"<string>\"\n },\n {\n \"activated\": \"<boolean>\",\n \"apps\": [\n {\n \"laborum_\": \"esse elit mollit nulla\",\n \"dolore_72\": 44930495\n },\n {\n \"Duis_e27\": false,\n \"do_7b\": true,\n \"eu_6\": true\n }\n ],\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 \"created_at\": \"<dateTime>\",\n \"description\": \"<string>\",\n \"id\": \"<integer>\",\n \"macro_ids\": [\n \"<integer>\",\n \"<integer>\"\n ],\n \"macros\": [\n \"<integer>\",\n \"<integer>\"\n ],\n \"position\": \"<integer>\",\n \"prefer_workspace_app_order\": \"<boolean>\",\n \"selected_macros\": [\n {\n \"actions\": [\n {\n \"field\": \"<string>\",\n \"value\": \"<string>\"\n },\n {\n \"field\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"title\": \"<string>\",\n \"active\": \"<boolean>\",\n \"created_at\": \"<dateTime>\",\n \"default\": \"<boolean>\",\n \"description\": \"<string>\",\n \"id\": \"<integer>\",\n \"position\": \"<integer>\",\n \"restriction\": {\n \"nostrud_7\": false,\n \"ex69c\": -43731952,\n \"ut_a\": \"anim nostrud pariatur\",\n \"mollit__\": -87941840\n },\n \"updated_at\": \"<dateTime>\",\n \"url\": \"<string>\",\n \"app_installation\": \"<string>\",\n \"categories\": \"<string>\",\n \"permissions\": \"<string>\",\n \"usage_1h\": \"<integer>\",\n \"usage_7d\": \"<integer>\",\n \"usage_24h\": \"<integer>\",\n \"usage_30d\": \"<integer>\"\n },\n {\n \"actions\": [\n {\n \"field\": \"<string>\",\n \"value\": \"<string>\"\n },\n {\n \"field\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"title\": \"<string>\",\n \"active\": \"<boolean>\",\n \"created_at\": \"<dateTime>\",\n \"default\": \"<boolean>\",\n \"description\": \"<string>\",\n \"id\": \"<integer>\",\n \"position\": \"<integer>\",\n \"restriction\": {\n \"deseruntc_\": false,\n \"consequatd0\": 17786909,\n \"id_4a\": false\n },\n \"updated_at\": \"<dateTime>\",\n \"url\": \"<string>\",\n \"app_installation\": \"<string>\",\n \"categories\": \"<string>\",\n \"permissions\": \"<string>\",\n \"usage_1h\": \"<integer>\",\n \"usage_7d\": \"<integer>\",\n \"usage_24h\": \"<integer>\",\n \"usage_30d\": \"<integer>\"\n }\n ],\n \"ticket_form_id\": \"<integer>\",\n \"title\": \"<string>\",\n \"updated_at\": \"<dateTime>\",\n \"url\": \"<string>\"\n }\n ],\n \"count\": \"<integer>\",\n \"next_page\": \"<string>\",\n \"previous_page\": \"<string>\"\n}"
}
]
}