From 21233526ffeba2e44fa6b70dac9d951377643abf Mon Sep 17 00:00:00 2001 From: Ralf Schmid Date: Tue, 8 Aug 2023 11:20:20 +0200 Subject: [PATCH 1/4] Redacted API > organization --- api/organization.rst | 339 ++++++++++++++++++++++--------------------- 1 file changed, 171 insertions(+), 168 deletions(-) diff --git a/api/organization.rst b/api/organization.rst index 2611a67d..bd494293 100644 --- a/api/organization.rst +++ b/api/organization.rst @@ -8,7 +8,7 @@ Required permission: ``ticket.agent`` **or** ``admin.organization`` .. note:: - Technically any, customers can only see their own organization + Technically, any customers can only see their own organization if applicable. ``GET``-Request sent: ``/api/v1/organizations`` @@ -21,88 +21,81 @@ Response: # HTTP-Code 200 Ok [ - { - "id": 1, - "name": "Zammad Foundation", - "shared": true, - "domain": "", - "domain_assignment": false, - "active": true, - "note": "", - "updated_by_id": 1, - "created_by_id": 1, - "created_at": "2021-11-03T11:51:13.683Z", - "updated_at": "2021-11-03T11:51:13.822Z", - "member_ids": [ - 2 - ] - }, - { - "id": 2, - "name": "Chrispresso Inc.", - "shared": true, - "domain": "", - "domain_assignment": false, - "active": true, - "note": "Manufacturer of individual coffee products.", - "updated_by_id": 1, - "created_by_id": 1, - "created_at": "2021-11-03T11:57:15.817Z", - "updated_at": "2021-11-03T11:57:15.817Z", - "member_ids": [ - 5, - 4, - 3 - ] - }, - { - "id": 3, - "name": "Awesome Customer Inc.", - "shared": true, - "domain": "", - "domain_assignment": false, - "active": true, - "note": "Global distributor of communication and security products, electrical and electronic wire & cable.", - "updated_by_id": 1, - "created_by_id": 1, - "created_at": "2021-11-03T11:57:15.825Z", - "updated_at": "2021-11-03T11:57:15.825Z", - "member_ids": [ - 8, - 7, - 6 - ] - }, - { - "id": 4, - "name": "Good Customer Inc.", - "shared": true, - "domain": "", - "domain_assignment": false, - "active": true, - "note": "Search the world's information, including webpages, images, videos and more. Good Customer has many special features to help you find exactly what you're looking for.", - "updated_by_id": 1, - "created_by_id": 1, - "created_at": "2021-11-03T11:57:15.839Z", - "updated_at": "2021-11-03T11:57:15.839Z", - "member_ids": [ - 9 - ] - }, - { - "id": 5, - "name": "Test", - "shared": true, - "domain": "", - "domain_assignment": false, - "active": true, - "note": "", - "updated_by_id": 3, - "created_by_id": 3, - "created_at": "2021-11-03T14:42:28.555Z", - "updated_at": "2021-11-03T15:04:03.149Z", - "member_ids": [] - } + { + "id": 1, + "name": "Zammad Foundation", + "shared": true, + "domain": "", + "domain_assignment": false, + "active": true, + "note": "", + "updated_by_id": 1, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:39.608Z", + "updated_at": "2023-08-04T12:02:00.018Z", + "vip": false, + "member_ids": [ + 2 + ], + "secondary_member_ids": [] + }, + { + "name": "Chrispresso Inc.", + "shared": true, + "domain": "", + "domain_assignment": false, + "active": true, + "note": "Manufacturer of individual coffee products.", + "vip": false, + "updated_by_id": 3, + "id": 2, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:48.617Z", + "updated_at": "2023-08-04T12:01:44.370Z", + "member_ids": [ + 3, + 5, + 4 + ], + "secondary_member_ids": [] + }, + { + "name": "Awesome Customer Inc.", + "shared": true, + "domain": "", + "domain_assignment": false, + "active": true, + "note": "Global distributor of communication and security products, electrical and electronic wire & cable.", + "vip": true, + "updated_by_id": 3, + "id": 3, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:48.632Z", + "updated_at": "2023-08-04T12:54:30.974Z", + "member_ids": [ + 8, + 7, + 6 + ], + "secondary_member_ids": [] + }, + { + "id": 4, + "name": "Good Customer Inc.", + "shared": true, + "domain": "", + "domain_assignment": false, + "active": true, + "note": "Search the world's information, including webpages, images, videos and more. Good Customer has many special features to help you find exactly what you're looking for.", + "updated_by_id": 1, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:48.645Z", + "updated_at": "2023-07-26T08:44:48.645Z", + "member_ids": [ + 9 + ], + "secondary_member_ids": [] + } ] Search @@ -123,58 +116,63 @@ Response: # HTTP-Code 200 Ok [ - { - "id": 4, - "name": "Good Customer Inc.", - "shared": true, - "domain": "", - "domain_assignment": false, - "active": true, - "note": "Search the world's information, including webpages, images, videos and more. Good Customer has many special features to help you find exactly what you're looking for.", - "updated_by_id": 1, - "created_by_id": 1, - "created_at": "2021-11-03T11:57:15.839Z", - "updated_at": "2021-11-03T11:57:15.839Z", - "member_ids": [ - 9 - ] - }, - { - "id": 3, - "name": "Awesome Customer Inc.", - "shared": true, - "domain": "", - "domain_assignment": false, - "active": true, - "note": "Global distributor of communication and security products, electrical and electronic wire & cable.", - "updated_by_id": 1, - "created_by_id": 1, - "created_at": "2021-11-03T11:57:15.825Z", - "updated_at": "2021-11-03T11:57:15.825Z", - "member_ids": [ - 8, - 7, - 6 - ] - }, - { - "id": 2, - "name": "Chrispresso Inc.", - "shared": true, - "domain": "", - "domain_assignment": false, - "active": true, - "note": "Manufacturer of individual coffee products.", - "updated_by_id": 1, - "created_by_id": 1, - "created_at": "2021-11-03T11:57:15.817Z", - "updated_at": "2021-11-03T11:57:15.817Z", - "member_ids": [ - 5, - 4, - 3 - ] - } + { + "name": "Awesome Customer Inc.", + "shared": true, + "domain": "", + "domain_assignment": false, + "active": true, + "note": "Global distributor of communication and security products, electrical and electronic wire & cable.", + "vip": true, + "updated_by_id": 3, + "id": 3, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:48.632Z", + "updated_at": "2023-08-04T12:54:30.974Z", + "member_ids": [ + 8, + 7, + 6 + ], + "secondary_member_ids": [] + }, + { + "name": "Chrispresso Inc.", + "shared": true, + "domain": "", + "domain_assignment": false, + "active": true, + "note": "Manufacturer of individual coffee products.", + "vip": false, + "updated_by_id": 3, + "id": 2, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:48.617Z", + "updated_at": "2023-08-04T12:01:44.370Z", + "member_ids": [ + 3, + 5, + 4 + ], + "secondary_member_ids": [] + }, + { + "id": 4, + "name": "Good Customer Inc.", + "shared": true, + "domain": "", + "domain_assignment": false, + "active": true, + "note": "Search the world's information, including webpages, images, videos and more. Good Customer has many special features to help you find exactly what you're looking for.", + "updated_by_id": 1, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:48.645Z", + "updated_at": "2023-07-26T08:44:48.645Z", + "member_ids": [ + 9 + ], + "secondary_member_ids": [] + } ] Show @@ -184,7 +182,7 @@ Required permission: ``ticket.agent`` **or** ``admin.organization`` .. note:: - Technically any - users in question can only see their own organization. + Technically any users in question can only see their own organization. ``GET``-Request sent: ``/api/v1/organizations/{id}`` @@ -196,22 +194,24 @@ Response: # HTTP-Code 200 Ok { - "id": 2, "name": "Chrispresso Inc.", "shared": true, "domain": "", "domain_assignment": false, "active": true, "note": "Manufacturer of individual coffee products.", - "updated_by_id": 1, + "vip": false, + "updated_by_id": 3, + "id": 2, "created_by_id": 1, - "created_at": "2021-11-03T11:57:15.817Z", - "updated_at": "2021-11-03T11:57:15.817Z", + "created_at": "2023-07-26T08:44:48.617Z", + "updated_at": "2023-08-04T12:01:44.370Z", "member_ids": [ + 3, 5, - 4, - 3 - ] + 4 + ], + "secondary_member_ids": [] } Create @@ -229,10 +229,10 @@ Required permission: ``admin.organization`` "domain": "example.com", "domain_assignment": true, "active": true, + "vip": true, "note": "Just a sample, aint that nice?", "members": [ "olivia@example.com", - "jdoe", "david@example.com" ] } @@ -245,22 +245,23 @@ Response: # HTTP-Code 201 Created { - "id": 6, - "name": "Sample Corp.", - "shared": false, - "domain": "example.com", - "domain_assignment": true, - "active": true, - "note": "Just a sample, aint that nice?", - "updated_by_id": 3, - "created_by_id": 3, - "created_at": "2021-11-03T17:38:39.527Z", - "updated_at": "2021-11-03T17:38:39.768Z", - "member_ids": [ - 10, - 16, - 11 - ] + "id": 5, + "name": "Sample Corp.", + "shared": false, + "domain": "example.com", + "domain_assignment": true, + "active": true, + "note": "Just a sample, aint that nice?", + "updated_by_id": 3, + "created_by_id": 3, + "created_at": "2023-08-08T09:12:42.023Z", + "updated_at": "2023-08-08T09:12:42.602Z", + "vip": true, + "member_ids": [ + 10, + 11 + ], + "secondary_member_ids": [] } Update @@ -278,7 +279,7 @@ Required permission: ``admin.organization`` "domain": "", "domain_assignment": false, "active": true, - "note": "This was a triump - I'm making a note here - H-U-G-E success!", + "note": "This was a triumph - I'm making a note here - H-U-G-E success!", "members": [ "olivia@example.com", "david@example.com" @@ -293,21 +294,23 @@ Response: # HTTP-Code 200 Ok { - "id": 6, "name": "Sample Corp.", "shared": false, "domain": "", "domain_assignment": false, "active": true, - "note": "This was a triump - I'm making a note here - H-U-G-E success!", + "note": "This was a triumph - I'm making a note here - H-U-G-E success!", "updated_by_id": 3, + "id": 5, "created_by_id": 3, - "created_at": "2021-11-03T17:38:39.527Z", - "updated_at": "2021-11-03T17:40:59.740Z", + "created_at": "2023-08-08T09:12:42.023Z", + "updated_at": "2023-08-08T09:16:58.922Z", + "vip": true, "member_ids": [ - 11, - 10 - ] + 10, + 11 + ], + "secondary_member_ids": [] } Delete From 75a1193324ae608ab582ef80a3b2edc1950f290f Mon Sep 17 00:00:00 2001 From: Ralf Schmid Date: Tue, 8 Aug 2023 13:58:02 +0200 Subject: [PATCH 2/4] Redacted API requests and responses --- api/ticket/links.rst | 1039 +++++++++++++++++++++++++++--------------- 1 file changed, 661 insertions(+), 378 deletions(-) diff --git a/api/ticket/links.rst b/api/ticket/links.rst index 790b972b..dd6d5196 100644 --- a/api/ticket/links.rst +++ b/api/ticket/links.rst @@ -13,7 +13,7 @@ Required permission: ``ticket.agent`` **or** ``admin`` { "link_object": "Ticket", - "link_object_value": "147469" + "link_object_value": "5" } Response: @@ -24,374 +24,654 @@ Response: # HTTP-Code 200 Ok { - "links": [ - { - "link_type": "normal", - "link_object": "Ticket", - "link_object_value": 147470 - }, - { - "link_type": "normal", - "link_object": "Ticket", - "link_object_value": 147471 - } - ], - "assets": { - "Ticket": { - "147470": { - "id": 147470, - "group_id": 1, - "priority_id": 2, - "state_id": 2, - "organization_id": null, - "number": "34147470", - "title": "Test Ticket #2", - "owner_id": 1, - "customer_id": 3, - "note": null, - "first_response_at": null, - "first_response_escalation_at": null, - "first_response_in_min": null, - "first_response_diff_in_min": null, - "close_at": null, - "close_escalation_at": null, - "close_in_min": null, - "close_diff_in_min": null, - "update_escalation_at": null, - "update_in_min": null, - "update_diff_in_min": null, - "last_contact_at": "2021-11-03T10:16:45.266Z", - "last_contact_agent_at": null, - "last_contact_customer_at": "2021-11-03T10:16:45.266Z", - "last_owner_update_at": null, - "create_article_type_id": 5, - "create_article_sender_id": 2, - "article_count": 1, - "escalation_at": null, - "pending_time": null, - "type": null, - "time_unit": null, - "preferences": {}, - "updated_by_id": 3, - "created_by_id": 3, - "created_at": "2021-11-03T10:16:45.092Z", - "updated_at": "2021-11-03T10:17:01.428Z", - "remote_access_permission_by": null, - "remote_access": "", - "affected_area": "", - "service_number": "", - "article_ids": [ - 464964 - ], - "ticket_time_accounting_ids": [] - }, - "147471": { - "id": 147471, - "group_id": 1, - "priority_id": 2, - "state_id": 2, - "organization_id": null, - "number": "34147471", - "title": "Test Ticket #3", - "owner_id": 1, - "customer_id": 3, - "note": null, - "first_response_at": null, - "first_response_escalation_at": null, - "first_response_in_min": null, - "first_response_diff_in_min": null, - "close_at": null, - "close_escalation_at": null, - "close_in_min": null, - "close_diff_in_min": null, - "update_escalation_at": null, - "update_in_min": null, - "update_diff_in_min": null, - "last_contact_at": "2021-11-03T10:16:51.995Z", - "last_contact_agent_at": null, - "last_contact_customer_at": "2021-11-03T10:16:51.995Z", - "last_owner_update_at": null, - "create_article_type_id": 5, - "create_article_sender_id": 2, - "article_count": 1, - "escalation_at": null, - "pending_time": null, - "type": null, - "time_unit": null, - "preferences": {}, - "updated_by_id": 3, - "created_by_id": 3, - "created_at": "2021-11-03T10:16:51.824Z", - "updated_at": "2021-11-03T10:16:57.862Z", - "remote_access_permission_by": null, - "remote_access": "", - "affected_area": "", - "service_number": "", - "article_ids": [ - 464965 - ], - "ticket_time_accounting_ids": [] - } - }, - "User": { - "3": { - "id": 3, - "organization_id": null, - "login": "test@test.de", - "firstname": "Max", - "lastname": "Mustermann", - "email": "test@test.de", - "image": null, - "image_source": null, - "web": "", - "phone": "", - "fax": "", - "mobile": "", - "department": null, - "street": "", - "zip": "", - "city": "", - "country": "", - "address": null, - "vip": false, - "verified": false, - "active": true, - "note": "", - "last_login": "2021-11-01T05:03:23.328Z", - "source": null, - "login_failed": 0, - "out_of_office": false, - "out_of_office_start_at": null, - "out_of_office_end_at": null, - "out_of_office_replacement_id": null, - "preferences": { - "notification_config": { - "matrix": { - "create": { - "criteria": { - "owned_by_me": true, - "owned_by_nobody": true, - "subscribed": true, - "no": false - }, - "channel": { - "email": true, - "online": true - } - }, - "update": { - "criteria": { - "owned_by_me": true, - "owned_by_nobody": true, - "subscribed": true, - "no": false - }, - "channel": { - "email": true, - "online": true - } - }, - "reminder_reached": { - "criteria": { - "owned_by_me": true, - "owned_by_nobody": false, - "subscribed": false, - "no": false - }, - "channel": { - "email": true, - "online": true - } - }, - "escalation": { - "criteria": { - "owned_by_me": true, - "owned_by_nobody": false, - "subscribed": false, - "no": false - }, - "channel": { - "email": true, - "online": true - } - } - } - }, - "locale": "de-de", - "intro": true - }, - "updated_by_id": 1, - "created_by_id": 1, - "created_at": "2021-10-29T13:25:59.261Z", - "updated_at": "2021-11-01T05:03:23.334Z", - "salutation": null, - "wawi_number": 0, - "guid": null, - "notification_optin": false, - "zr_number": null, - "role_ids": [ - 1, - 2 - ], - "organization_ids": [], - "authorization_ids": [], - "karma_user_ids": [], - "group_ids": { - "1": [ - "full" - ] - }, - "accounts": {} - }, - "1": { - "id": 1, - "organization_id": null, - "login": "-", - "firstname": "-", - "lastname": "", - "email": "", - "image": null, - "image_source": null, - "web": "", - "phone": "", - "fax": "", - "mobile": "", - "department": "", - "street": "", - "zip": "", - "city": "", - "country": "", - "address": "", - "vip": false, - "verified": false, - "active": false, - "note": "", - "last_login": null, - "source": null, - "login_failed": 0, - "out_of_office": false, - "out_of_office_start_at": null, - "out_of_office_end_at": null, - "out_of_office_replacement_id": null, - "preferences": {}, - "updated_by_id": 1, - "created_by_id": 1, - "created_at": "2021-10-29T13:11:53.378Z", - "updated_at": "2021-10-29T13:11:53.378Z", - "salutation": null, - "wawi_number": 0, - "guid": null, - "notification_optin": false, - "zr_number": null, - "role_ids": [], - "organization_ids": [], - "authorization_ids": [], - "karma_user_ids": [], - "group_ids": {}, - "accounts": {} - } - }, - "Role": { - "1": { - "id": 1, - "name": "Admin", - "preferences": {}, - "default_at_signup": false, - "active": true, - "note": "To configure your system.", - "updated_by_id": 3, - "created_by_id": 1, - "created_at": "2021-10-29T13:11:53.503Z", - "updated_at": "2021-10-30T21:44:00.923Z", - "permission_ids": [ - 1, - 41, - 51, - 61 - ], - "group_ids": {} - }, - "2": { - "id": 2, - "name": "Agent", - "preferences": {}, - "default_at_signup": false, - "active": true, - "note": "To work on Tickets.", - "updated_by_id": 3, - "created_by_id": 1, - "created_at": "2021-10-29T13:11:53.542Z", - "updated_at": "2021-10-30T18:26:29.027Z", - "permission_ids": [ - 41, - 53, - 56, - 58, - 62 - ], - "group_ids": {} - } - }, - "Group": { - "1": { - "id": 1, - "signature_id": 1, - "email_address_id": null, - "name": "Users", - "assignment_timeout": null, - "follow_up_possible": "yes", - "follow_up_assignment": true, - "active": true, - "note": "Standard Group/Pool for Tickets.", - "updated_by_id": 1, - "created_by_id": 1, - "created_at": "2021-10-29T13:11:54.863Z", - "updated_at": "2021-10-30T18:53:24.803Z", - "user_ids": [ - 3, - 2, - 5, - 55, - 65, - 83, - 90, - 101, - 105, - 112, - 118, - 132, - 153, - 168, - 203, - 295, - 493, - 515, - 528, - 535, - 565, - 618, - 730, - 755, - 839, - 859, - 912, - 914, - 983, - 1106, - 1138, - 1229, - 1287, - 1405, - 1410, - 1482, - 1486, - 1490, - 1543, - 1573 - ] - } - } - } + "links": [ + { + "link_type": "normal", + "link_object": "Ticket", + "link_object_value": 41 + } + ], + "assets": { + "Ticket": { + "41": { + "id": 41, + "group_id": 2, + "priority_id": 2, + "state_id": 4, + "organization_id": 1, + "number": "93039", + "title": "test", + "owner_id": 1, + "customer_id": 2, + "note": null, + "first_response_at": null, + "first_response_escalation_at": null, + "first_response_in_min": null, + "first_response_diff_in_min": null, + "close_at": "2023-08-04T14:37:07.884Z", + "close_escalation_at": null, + "close_in_min": null, + "close_diff_in_min": null, + "update_escalation_at": null, + "update_in_min": null, + "update_diff_in_min": null, + "last_close_at": "2023-08-04T14:37:07.883Z", + "last_contact_at": "2023-08-04T12:02:00.036Z", + "last_contact_agent_at": null, + "last_contact_customer_at": "2023-08-04T12:02:00.036Z", + "last_owner_update_at": null, + "create_article_type_id": 5, + "create_article_sender_id": 2, + "article_count": 1, + "escalation_at": null, + "pending_time": null, + "type": null, + "time_unit": null, + "preferences": {}, + "updated_by_id": 3, + "created_by_id": 3, + "created_at": "2023-08-04T12:01:59.897Z", + "updated_at": "2023-08-08T09:24:43.977Z", + "article_ids": [ + 64, + 63 + ], + "ticket_time_accounting_ids": [] + } + }, + "Group": { + "2": { + "id": 2, + "signature_id": null, + "email_address_id": 1, + "name": "2nd Level", + "assignment_timeout": null, + "follow_up_possible": "yes", + "reopen_time_in_days": null, + "follow_up_assignment": true, + "active": true, + "shared_drafts": true, + "note": "", + "updated_by_id": 3, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:48.589Z", + "updated_at": "2023-07-27T13:04:25.495Z", + "user_ids": [ + 3, + 4, + 5 + ] + }, + "3": { + "id": 3, + "signature_id": null, + "email_address_id": 1, + "name": "Service Desk", + "assignment_timeout": null, + "follow_up_possible": "yes", + "reopen_time_in_days": null, + "follow_up_assignment": true, + "active": true, + "shared_drafts": true, + "note": "", + "updated_by_id": 3, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:48.602Z", + "updated_at": "2023-07-26T09:28:36.505Z", + "user_ids": [ + 3, + 4, + 5 + ] + }, + "1": { + "id": 1, + "signature_id": 1, + "email_address_id": 1, + "name": "Sales", + "assignment_timeout": null, + "follow_up_possible": "yes", + "reopen_time_in_days": null, + "follow_up_assignment": true, + "active": true, + "shared_drafts": true, + "note": "Standard Group/Pool for Tickets.", + "updated_by_id": 3, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:38.651Z", + "updated_at": "2023-07-26T09:31:54.224Z", + "user_ids": [ + 3, + 4, + 5 + ] + } + }, + "User": { + "1": { + "id": 1, + "organization_id": null, + "login": "-", + "firstname": "-", + "lastname": "", + "email": "", + "image": null, + "image_source": null, + "web": "", + "phone": "", + "fax": "", + "mobile": "", + "department": "", + "street": "", + "zip": "", + "city": "", + "country": "", + "address": "", + "vip": false, + "verified": false, + "active": false, + "note": "", + "last_login": null, + "source": null, + "login_failed": 0, + "out_of_office": false, + "out_of_office_start_at": null, + "out_of_office_end_at": null, + "out_of_office_replacement_id": null, + "preferences": {}, + "updated_by_id": 1, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:37.217Z", + "updated_at": "2023-07-26T08:44:37.217Z", + "role_ids": [], + "two_factor_preference_ids": [], + "organization_ids": [], + "authorization_ids": [], + "overview_sorting_ids": [], + "group_ids": {} + }, + "3": { + "id": 3, + "organization_id": 2, + "login": "chris@chrispresso.com", + "firstname": "Christopher", + "lastname": "Miller", + "email": "chris@chrispresso.com", + "image": "7a6a0d1d94ad2037153cf3a6c1b49a53", + "image_source": null, + "web": "", + "phone": "", + "fax": "", + "mobile": "", + "department": null, + "street": "", + "zip": "", + "city": "", + "country": "", + "address": null, + "vip": false, + "verified": false, + "active": true, + "note": "", + "last_login": "2023-08-08T08:03:40.962Z", + "source": null, + "login_failed": 1, + "out_of_office": false, + "out_of_office_start_at": null, + "out_of_office_end_at": null, + "out_of_office_replacement_id": null, + "preferences": { + "locale": "en-us", + "notification_config": { + "matrix": { + "create": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": true, + "subscribed": true, + "no": false + }, + "channel": { + "email": true, + "online": true + } + }, + "update": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": true, + "subscribed": true, + "no": false + }, + "channel": { + "email": true, + "online": true + } + }, + "reminder_reached": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": false, + "subscribed": false, + "no": false + }, + "channel": { + "email": true, + "online": true + } + }, + "escalation": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": false, + "subscribed": false, + "no": false + }, + "channel": { + "email": true, + "online": true + } + } + } + }, + "intro": true, + "theme": "light" + }, + "updated_by_id": 3, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:48.807Z", + "updated_at": "2023-08-08T08:51:50.662Z", + "role_ids": [ + 1, + 2 + ], + "two_factor_preference_ids": [], + "organization_ids": [], + "authorization_ids": [], + "overview_sorting_ids": [], + "group_ids": { + "3": [ + "full" + ], + "1": [ + "full" + ], + "2": [ + "full" + ] + } + }, + "4": { + "id": 4, + "organization_id": 2, + "login": "jacob@chrispresso.com", + "firstname": "Jacob", + "lastname": "Smith", + "email": "jacob@chrispresso.com", + "image": "95afc1244af5cb8b77edcd7224c5d5f8", + "image_source": null, + "web": "", + "phone": "", + "fax": "", + "mobile": "", + "department": null, + "street": "", + "zip": "", + "city": "", + "country": "", + "address": null, + "vip": false, + "verified": false, + "active": true, + "note": "", + "last_login": null, + "source": null, + "login_failed": 0, + "out_of_office": false, + "out_of_office_start_at": null, + "out_of_office_end_at": null, + "out_of_office_replacement_id": null, + "preferences": { + "locale": "en-us", + "notification_config": { + "matrix": { + "create": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": true, + "subscribed": true, + "no": false + }, + "channel": { + "email": true, + "online": true + } + }, + "update": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": true, + "subscribed": true, + "no": false + }, + "channel": { + "email": true, + "online": true + } + }, + "reminder_reached": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": false, + "subscribed": false, + "no": false + }, + "channel": { + "email": true, + "online": true + } + }, + "escalation": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": false, + "subscribed": false, + "no": false + }, + "channel": { + "email": true, + "online": true + } + } + } + } + }, + "updated_by_id": 1, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:49.390Z", + "updated_at": "2023-07-26T08:44:49.585Z", + "role_ids": [ + 1, + 2 + ], + "two_factor_preference_ids": [], + "organization_ids": [], + "authorization_ids": [], + "overview_sorting_ids": [], + "group_ids": { + "3": [ + "full" + ], + "1": [ + "full" + ], + "2": [ + "full" + ] + } + }, + "5": { + "id": 5, + "organization_id": 2, + "login": "emma@chrispresso.com", + "firstname": "Emma", + "lastname": "Taylor", + "email": "emma@chrispresso.com", + "image": "b64fef91c29105b4a08a2a69be08eda3", + "image_source": null, + "web": "", + "phone": "", + "fax": "", + "mobile": "", + "department": null, + "street": "", + "zip": "", + "city": "", + "country": "", + "address": null, + "vip": false, + "verified": false, + "active": true, + "note": "", + "last_login": null, + "source": null, + "login_failed": 0, + "out_of_office": false, + "out_of_office_start_at": null, + "out_of_office_end_at": null, + "out_of_office_replacement_id": null, + "preferences": { + "locale": "en-us", + "notification_config": { + "matrix": { + "create": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": true, + "subscribed": true, + "no": false + }, + "channel": { + "email": true, + "online": true + } + }, + "update": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": true, + "subscribed": true, + "no": false + }, + "channel": { + "email": true, + "online": true + } + }, + "reminder_reached": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": false, + "subscribed": false, + "no": false + }, + "channel": { + "email": true, + "online": true + } + }, + "escalation": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": false, + "subscribed": false, + "no": false + }, + "channel": { + "email": true, + "online": true + } + } + } + } + }, + "updated_by_id": 1, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:49.766Z", + "updated_at": "2023-07-26T08:44:49.970Z", + "role_ids": [ + 2 + ], + "two_factor_preference_ids": [], + "organization_ids": [], + "authorization_ids": [], + "overview_sorting_ids": [], + "group_ids": { + "3": [ + "full" + ], + "1": [ + "full" + ], + "2": [ + "full" + ] + } + }, + "2": { + "id": 2, + "organization_id": 1, + "login": "nicole.braun@zammad.org", + "firstname": "Nicole", + "lastname": "Braun", + "email": "nicole.braun@zammad.org", + "image": null, + "image_source": null, + "web": "", + "phone": "", + "fax": "", + "mobile": "", + "department": "", + "street": "", + "zip": "", + "city": "", + "country": "", + "address": "", + "vip": false, + "verified": false, + "active": true, + "note": "", + "last_login": null, + "source": null, + "login_failed": 0, + "out_of_office": false, + "out_of_office_start_at": null, + "out_of_office_end_at": null, + "out_of_office_replacement_id": null, + "preferences": { + "tickets_closed": 22, + "tickets_open": 1 + }, + "updated_by_id": 3, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:39.646Z", + "updated_at": "2023-08-04T14:37:11.400Z", + "role_ids": [ + 3 + ], + "two_factor_preference_ids": [], + "organization_ids": [], + "authorization_ids": [], + "overview_sorting_ids": [], + "group_ids": {} + } + }, + "Role": { + "1": { + "id": 1, + "name": "Admin", + "preferences": {}, + "default_at_signup": false, + "active": true, + "note": "To configure your system.", + "updated_by_id": 1, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:37.326Z", + "updated_at": "2023-07-26T08:44:37.326Z", + "permission_ids": [ + 1, + 43, + 55, + 65 + ], + "knowledge_base_permission_ids": [], + "group_ids": {} + }, + "2": { + "id": 2, + "name": "Agent", + "preferences": {}, + "default_at_signup": false, + "active": true, + "note": "To work on Tickets.", + "updated_by_id": 1, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:37.362Z", + "updated_at": "2023-07-26T08:44:37.362Z", + "permission_ids": [ + 43, + 57, + 60, + 62, + 66 + ], + "knowledge_base_permission_ids": [], + "group_ids": {} + }, + "3": { + "id": 3, + "name": "Customer", + "preferences": {}, + "default_at_signup": true, + "active": true, + "note": "People who create Tickets ask for help.", + "updated_by_id": 1, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:37.379Z", + "updated_at": "2023-07-28T07:22:53.613Z", + "permission_ids": [ + 44, + 47, + 48, + 50, + 54, + 58 + ], + "knowledge_base_permission_ids": [], + "group_ids": {} + } + }, + "Organization": { + "2": { + "name": "Chrispresso Inc.", + "shared": true, + "domain": "", + "domain_assignment": false, + "active": true, + "note": "Manufacturer of individual coffee products.", + "vip": false, + "updated_by_id": 3, + "id": 2, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:48.617Z", + "updated_at": "2023-08-04T12:01:44.370Z", + "member_ids": [ + 3, + 4, + 5 + ], + "secondary_member_ids": [] + }, + "1": { + "id": 1, + "name": "Zammad Foundation", + "shared": true, + "domain": "", + "domain_assignment": false, + "active": true, + "note": "", + "updated_by_id": 1, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:39.608Z", + "updated_at": "2023-08-04T12:02:00.018Z", + "vip": false, + "member_ids": [ + 2 + ], + "secondary_member_ids": [] + } + } + } } @@ -408,11 +688,14 @@ Required permission: ``ticket.agent`` **or** ``admin`` { "link_type": "normal", "link_object_target": "Ticket", - "link_object_target_value": "147469", + "link_object_target_value": 11, "link_object_source": "Ticket", - "link_object_source_number": "34147471" + "link_object_source_number": "93010" } +.. note:: The value for ``link_object_target`` has to be the *ticket ID*. The + value for the ``link_object_source_number`` has to be ticket *ticket number*. + Response: .. code-block:: json @@ -421,14 +704,14 @@ Response: # HTTP-Code 201 Created { - "id": 5, + "id": 11, "link_type_id": 1, "link_object_source_id": 1, - "link_object_source_value": 147471, + "link_object_source_value": 10, "link_object_target_id": 1, - "link_object_target_value": 147469, - "created_at": "2021-11-03T10:40:14.528Z", - "updated_at": "2021-11-03T10:40:14.528Z" + "link_object_target_value": 11, + "created_at": "2023-08-08T11:46:44.108Z", + "updated_at": "2023-08-08T11:46:44.108Z" } Delete @@ -444,9 +727,9 @@ Required permission: ``ticket.agent`` **or** ``admin`` { "link_type": "normal", "link_object_source": "Ticket", - "link_object_source_value": 147471, + "link_object_source_value": 93010, "link_object_target": "Ticket", - "link_object_target_value": 147469 + "link_object_target_value": 11 } Response: From 9fa2fda431030ed65d949202dd29d33223ade7aa Mon Sep 17 00:00:00 2001 From: Ralf Schmid Date: Wed, 9 Aug 2023 11:32:17 +0200 Subject: [PATCH 3/4] Redacted organization and links --- api/organization.rst | 442 +++++++------- api/ticket/links.rst | 1298 +++++++++++++++++++++--------------------- 2 files changed, 875 insertions(+), 865 deletions(-) diff --git a/api/organization.rst b/api/organization.rst index bd494293..82004d39 100644 --- a/api/organization.rst +++ b/api/organization.rst @@ -8,7 +8,7 @@ Required permission: ``ticket.agent`` **or** ``admin.organization`` .. note:: - Technically, any customers can only see their own organization + Technically, customers can only see their own organization if applicable. ``GET``-Request sent: ``/api/v1/organizations`` @@ -21,81 +21,81 @@ Response: # HTTP-Code 200 Ok [ - { - "id": 1, - "name": "Zammad Foundation", - "shared": true, - "domain": "", - "domain_assignment": false, - "active": true, - "note": "", - "updated_by_id": 1, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:39.608Z", - "updated_at": "2023-08-04T12:02:00.018Z", - "vip": false, - "member_ids": [ - 2 - ], - "secondary_member_ids": [] - }, - { - "name": "Chrispresso Inc.", - "shared": true, - "domain": "", - "domain_assignment": false, - "active": true, - "note": "Manufacturer of individual coffee products.", - "vip": false, - "updated_by_id": 3, - "id": 2, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:48.617Z", - "updated_at": "2023-08-04T12:01:44.370Z", - "member_ids": [ - 3, - 5, - 4 - ], - "secondary_member_ids": [] - }, - { - "name": "Awesome Customer Inc.", - "shared": true, - "domain": "", - "domain_assignment": false, - "active": true, - "note": "Global distributor of communication and security products, electrical and electronic wire & cable.", - "vip": true, - "updated_by_id": 3, - "id": 3, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:48.632Z", - "updated_at": "2023-08-04T12:54:30.974Z", - "member_ids": [ - 8, - 7, - 6 - ], - "secondary_member_ids": [] - }, - { - "id": 4, - "name": "Good Customer Inc.", - "shared": true, - "domain": "", - "domain_assignment": false, - "active": true, - "note": "Search the world's information, including webpages, images, videos and more. Good Customer has many special features to help you find exactly what you're looking for.", - "updated_by_id": 1, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:48.645Z", - "updated_at": "2023-07-26T08:44:48.645Z", - "member_ids": [ - 9 - ], - "secondary_member_ids": [] - } + { + "id": 1, + "name": "Zammad Foundation", + "shared": true, + "domain": "", + "domain_assignment": false, + "active": true, + "note": "", + "updated_by_id": 1, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:39.608Z", + "updated_at": "2023-08-04T12:02:00.018Z", + "vip": false, + "member_ids": [ + 2 + ], + "secondary_member_ids": [] + }, + { + "name": "Chrispresso Inc.", + "shared": true, + "domain": "", + "domain_assignment": false, + "active": true, + "note": "Manufacturer of individual coffee products.", + "vip": false, + "updated_by_id": 3, + "id": 2, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:48.617Z", + "updated_at": "2023-08-04T12:01:44.370Z", + "member_ids": [ + 3, + 5, + 4 + ], + "secondary_member_ids": [] + }, + { + "name": "Awesome Customer Inc.", + "shared": true, + "domain": "", + "domain_assignment": false, + "active": true, + "note": "Global distributor of communication and security products, electrical and electronic wire & cable.", + "vip": true, + "updated_by_id": 3, + "id": 3, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:48.632Z", + "updated_at": "2023-08-04T12:54:30.974Z", + "member_ids": [ + 8, + 7, + 6 + ], + "secondary_member_ids": [] + }, + { + "id": 4, + "name": "Good Customer Inc.", + "shared": true, + "domain": "", + "domain_assignment": false, + "active": true, + "note": "Search the world's information, including webpages, images, videos and more. Good Customer has many special features to help you find exactly what you're looking for.", + "updated_by_id": 1, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:48.645Z", + "updated_at": "2023-07-26T08:44:48.645Z", + "member_ids": [ + 9 + ], + "secondary_member_ids": [] + } ] Search @@ -116,63 +116,63 @@ Response: # HTTP-Code 200 Ok [ - { - "name": "Awesome Customer Inc.", - "shared": true, - "domain": "", - "domain_assignment": false, - "active": true, - "note": "Global distributor of communication and security products, electrical and electronic wire & cable.", - "vip": true, - "updated_by_id": 3, - "id": 3, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:48.632Z", - "updated_at": "2023-08-04T12:54:30.974Z", - "member_ids": [ - 8, - 7, - 6 - ], - "secondary_member_ids": [] - }, - { - "name": "Chrispresso Inc.", - "shared": true, - "domain": "", - "domain_assignment": false, - "active": true, - "note": "Manufacturer of individual coffee products.", - "vip": false, - "updated_by_id": 3, - "id": 2, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:48.617Z", - "updated_at": "2023-08-04T12:01:44.370Z", - "member_ids": [ - 3, - 5, - 4 - ], - "secondary_member_ids": [] - }, - { - "id": 4, - "name": "Good Customer Inc.", - "shared": true, - "domain": "", - "domain_assignment": false, - "active": true, - "note": "Search the world's information, including webpages, images, videos and more. Good Customer has many special features to help you find exactly what you're looking for.", - "updated_by_id": 1, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:48.645Z", - "updated_at": "2023-07-26T08:44:48.645Z", - "member_ids": [ - 9 - ], - "secondary_member_ids": [] - } + { + "name": "Awesome Customer Inc.", + "shared": true, + "domain": "", + "domain_assignment": false, + "active": true, + "note": "Global distributor of communication and security products, electrical and electronic wire & cable.", + "vip": true, + "updated_by_id": 3, + "id": 3, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:48.632Z", + "updated_at": "2023-08-04T12:54:30.974Z", + "member_ids": [ + 8, + 7, + 6 + ], + "secondary_member_ids": [] + }, + { + "name": "Chrispresso Inc.", + "shared": true, + "domain": "", + "domain_assignment": false, + "active": true, + "note": "Manufacturer of individual coffee products.", + "vip": false, + "updated_by_id": 3, + "id": 2, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:48.617Z", + "updated_at": "2023-08-04T12:01:44.370Z", + "member_ids": [ + 3, + 5, + 4 + ], + "secondary_member_ids": [] + }, + { + "id": 4, + "name": "Good Customer Inc.", + "shared": true, + "domain": "", + "domain_assignment": false, + "active": true, + "note": "Search the world's information, including webpages, images, videos and more. Good Customer has many special features to help you find exactly what you're looking for.", + "updated_by_id": 1, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:48.645Z", + "updated_at": "2023-07-26T08:44:48.645Z", + "member_ids": [ + 9 + ], + "secondary_member_ids": [] + } ] Show @@ -193,26 +193,28 @@ Response: # HTTP-Code 200 Ok - { - "name": "Chrispresso Inc.", - "shared": true, - "domain": "", - "domain_assignment": false, - "active": true, - "note": "Manufacturer of individual coffee products.", - "vip": false, - "updated_by_id": 3, - "id": 2, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:48.617Z", - "updated_at": "2023-08-04T12:01:44.370Z", - "member_ids": [ - 3, - 5, - 4 - ], - "secondary_member_ids": [] - } + [ + { + "id": 2, + "name": "Chrispresso Inc.", + "shared": true, + "domain": "", + "domain_assignment": false, + "active": true, + "note": "Manufacturer of individual coffee products.", + "vip": false, + "updated_by_id": 3, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:48.617Z", + "updated_at": "2023-08-04T12:01:44.370Z", + "member_ids": [ + 3, + 5, + 4 + ], + "secondary_member_ids": [] + } + ] Create ====== @@ -223,19 +225,21 @@ Required permission: ``admin.organization`` .. code-block:: json - { - "name": "Sample Corp.", - "shared": false, - "domain": "example.com", - "domain_assignment": true, - "active": true, - "vip": true, - "note": "Just a sample, aint that nice?", - "members": [ - "olivia@example.com", - "david@example.com" - ] - } + [ + { + "name": "Sample Corp.", + "shared": false, + "domain": "example.com", + "domain_assignment": true, + "active": true, + "vip": true, + "note": "Just a sample, aint that nice?", + "members": [ + "olivia@example.com", + "david@example.com" + ] + } + ] Response: @@ -244,25 +248,27 @@ Response: # HTTP-Code 201 Created - { - "id": 5, - "name": "Sample Corp.", - "shared": false, - "domain": "example.com", - "domain_assignment": true, - "active": true, - "note": "Just a sample, aint that nice?", - "updated_by_id": 3, - "created_by_id": 3, - "created_at": "2023-08-08T09:12:42.023Z", - "updated_at": "2023-08-08T09:12:42.602Z", - "vip": true, - "member_ids": [ - 10, - 11 - ], - "secondary_member_ids": [] - } + [ + { + "id": 5, + "name": "Sample Corp.", + "shared": false, + "domain": "example.com", + "domain_assignment": true, + "active": true, + "note": "Just a sample, aint that nice?", + "updated_by_id": 3, + "created_by_id": 3, + "created_at": "2023-08-08T09:12:42.023Z", + "updated_at": "2023-08-08T09:12:42.602Z", + "vip": true, + "member_ids": [ + 10, + 11 + ], + "secondary_member_ids": [] + } + ] Update ====== @@ -273,18 +279,20 @@ Required permission: ``admin.organization`` .. code-block:: json - { - "name": "Sample Corp.", - "shared": false, - "domain": "", - "domain_assignment": false, - "active": true, - "note": "This was a triumph - I'm making a note here - H-U-G-E success!", - "members": [ - "olivia@example.com", - "david@example.com" - ] - } + [ + { + "name": "Sample Corp.", + "shared": false, + "domain": "", + "domain_assignment": false, + "active": true, + "note": "This was a triumph - I'm making a note here - H-U-G-E success!", + "members": [ + "olivia@example.com", + "david@example.com" + ] + } + ] Response: @@ -293,25 +301,27 @@ Response: # HTTP-Code 200 Ok - { - "name": "Sample Corp.", - "shared": false, - "domain": "", - "domain_assignment": false, - "active": true, - "note": "This was a triumph - I'm making a note here - H-U-G-E success!", - "updated_by_id": 3, - "id": 5, - "created_by_id": 3, - "created_at": "2023-08-08T09:12:42.023Z", - "updated_at": "2023-08-08T09:16:58.922Z", - "vip": true, - "member_ids": [ - 10, - 11 - ], - "secondary_member_ids": [] - } + [ + { + "id": 5, + "name": "Sample Corp.", + "shared": false, + "domain": "", + "domain_assignment": false, + "active": true, + "note": "This was a triumph - I'm making a note here - H-U-G-E success!", + "updated_by_id": 3, + "created_by_id": 3, + "created_at": "2023-08-08T09:12:42.023Z", + "updated_at": "2023-08-08T09:16:58.922Z", + "vip": true, + "member_ids": [ + 10, + 11 + ], + "secondary_member_ids": [] + } + ] Delete ====== diff --git a/api/ticket/links.rst b/api/ticket/links.rst index dd6d5196..5842099c 100644 --- a/api/ticket/links.rst +++ b/api/ticket/links.rst @@ -24,654 +24,654 @@ Response: # HTTP-Code 200 Ok { - "links": [ - { - "link_type": "normal", - "link_object": "Ticket", - "link_object_value": 41 - } - ], - "assets": { - "Ticket": { - "41": { - "id": 41, - "group_id": 2, - "priority_id": 2, - "state_id": 4, - "organization_id": 1, - "number": "93039", - "title": "test", - "owner_id": 1, - "customer_id": 2, - "note": null, - "first_response_at": null, - "first_response_escalation_at": null, - "first_response_in_min": null, - "first_response_diff_in_min": null, - "close_at": "2023-08-04T14:37:07.884Z", - "close_escalation_at": null, - "close_in_min": null, - "close_diff_in_min": null, - "update_escalation_at": null, - "update_in_min": null, - "update_diff_in_min": null, - "last_close_at": "2023-08-04T14:37:07.883Z", - "last_contact_at": "2023-08-04T12:02:00.036Z", - "last_contact_agent_at": null, - "last_contact_customer_at": "2023-08-04T12:02:00.036Z", - "last_owner_update_at": null, - "create_article_type_id": 5, - "create_article_sender_id": 2, - "article_count": 1, - "escalation_at": null, - "pending_time": null, - "type": null, - "time_unit": null, - "preferences": {}, - "updated_by_id": 3, - "created_by_id": 3, - "created_at": "2023-08-04T12:01:59.897Z", - "updated_at": "2023-08-08T09:24:43.977Z", - "article_ids": [ - 64, - 63 - ], - "ticket_time_accounting_ids": [] - } - }, - "Group": { - "2": { - "id": 2, - "signature_id": null, - "email_address_id": 1, - "name": "2nd Level", - "assignment_timeout": null, - "follow_up_possible": "yes", - "reopen_time_in_days": null, - "follow_up_assignment": true, - "active": true, - "shared_drafts": true, - "note": "", - "updated_by_id": 3, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:48.589Z", - "updated_at": "2023-07-27T13:04:25.495Z", - "user_ids": [ - 3, - 4, - 5 - ] - }, - "3": { - "id": 3, - "signature_id": null, - "email_address_id": 1, - "name": "Service Desk", - "assignment_timeout": null, - "follow_up_possible": "yes", - "reopen_time_in_days": null, - "follow_up_assignment": true, - "active": true, - "shared_drafts": true, - "note": "", - "updated_by_id": 3, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:48.602Z", - "updated_at": "2023-07-26T09:28:36.505Z", - "user_ids": [ - 3, - 4, - 5 - ] - }, - "1": { - "id": 1, - "signature_id": 1, - "email_address_id": 1, - "name": "Sales", - "assignment_timeout": null, - "follow_up_possible": "yes", - "reopen_time_in_days": null, - "follow_up_assignment": true, - "active": true, - "shared_drafts": true, - "note": "Standard Group/Pool for Tickets.", - "updated_by_id": 3, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:38.651Z", - "updated_at": "2023-07-26T09:31:54.224Z", - "user_ids": [ - 3, - 4, - 5 - ] - } - }, - "User": { - "1": { - "id": 1, - "organization_id": null, - "login": "-", - "firstname": "-", - "lastname": "", - "email": "", - "image": null, - "image_source": null, - "web": "", - "phone": "", - "fax": "", - "mobile": "", - "department": "", - "street": "", - "zip": "", - "city": "", - "country": "", - "address": "", - "vip": false, - "verified": false, - "active": false, - "note": "", - "last_login": null, - "source": null, - "login_failed": 0, - "out_of_office": false, - "out_of_office_start_at": null, - "out_of_office_end_at": null, - "out_of_office_replacement_id": null, - "preferences": {}, - "updated_by_id": 1, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:37.217Z", - "updated_at": "2023-07-26T08:44:37.217Z", - "role_ids": [], - "two_factor_preference_ids": [], - "organization_ids": [], - "authorization_ids": [], - "overview_sorting_ids": [], - "group_ids": {} - }, - "3": { - "id": 3, - "organization_id": 2, - "login": "chris@chrispresso.com", - "firstname": "Christopher", - "lastname": "Miller", - "email": "chris@chrispresso.com", - "image": "7a6a0d1d94ad2037153cf3a6c1b49a53", - "image_source": null, - "web": "", - "phone": "", - "fax": "", - "mobile": "", - "department": null, - "street": "", - "zip": "", - "city": "", - "country": "", - "address": null, - "vip": false, - "verified": false, - "active": true, - "note": "", - "last_login": "2023-08-08T08:03:40.962Z", - "source": null, - "login_failed": 1, - "out_of_office": false, - "out_of_office_start_at": null, - "out_of_office_end_at": null, - "out_of_office_replacement_id": null, - "preferences": { - "locale": "en-us", - "notification_config": { - "matrix": { - "create": { - "criteria": { - "owned_by_me": true, - "owned_by_nobody": true, - "subscribed": true, - "no": false - }, - "channel": { - "email": true, - "online": true - } - }, - "update": { - "criteria": { - "owned_by_me": true, - "owned_by_nobody": true, - "subscribed": true, - "no": false - }, - "channel": { - "email": true, - "online": true - } - }, - "reminder_reached": { - "criteria": { - "owned_by_me": true, - "owned_by_nobody": false, - "subscribed": false, - "no": false - }, - "channel": { - "email": true, - "online": true - } - }, - "escalation": { - "criteria": { - "owned_by_me": true, - "owned_by_nobody": false, - "subscribed": false, - "no": false - }, - "channel": { - "email": true, - "online": true - } - } - } - }, - "intro": true, - "theme": "light" - }, - "updated_by_id": 3, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:48.807Z", - "updated_at": "2023-08-08T08:51:50.662Z", - "role_ids": [ - 1, - 2 - ], - "two_factor_preference_ids": [], - "organization_ids": [], - "authorization_ids": [], - "overview_sorting_ids": [], - "group_ids": { - "3": [ - "full" - ], - "1": [ - "full" - ], - "2": [ - "full" - ] - } - }, - "4": { - "id": 4, - "organization_id": 2, - "login": "jacob@chrispresso.com", - "firstname": "Jacob", - "lastname": "Smith", - "email": "jacob@chrispresso.com", - "image": "95afc1244af5cb8b77edcd7224c5d5f8", - "image_source": null, - "web": "", - "phone": "", - "fax": "", - "mobile": "", - "department": null, - "street": "", - "zip": "", - "city": "", - "country": "", - "address": null, - "vip": false, - "verified": false, - "active": true, - "note": "", - "last_login": null, - "source": null, - "login_failed": 0, - "out_of_office": false, - "out_of_office_start_at": null, - "out_of_office_end_at": null, - "out_of_office_replacement_id": null, - "preferences": { - "locale": "en-us", - "notification_config": { - "matrix": { - "create": { - "criteria": { - "owned_by_me": true, - "owned_by_nobody": true, - "subscribed": true, - "no": false - }, - "channel": { - "email": true, - "online": true - } - }, - "update": { - "criteria": { - "owned_by_me": true, - "owned_by_nobody": true, - "subscribed": true, - "no": false - }, - "channel": { - "email": true, - "online": true - } - }, - "reminder_reached": { - "criteria": { - "owned_by_me": true, - "owned_by_nobody": false, - "subscribed": false, - "no": false - }, - "channel": { - "email": true, - "online": true - } - }, - "escalation": { - "criteria": { - "owned_by_me": true, - "owned_by_nobody": false, - "subscribed": false, - "no": false - }, - "channel": { - "email": true, - "online": true - } - } - } - } - }, - "updated_by_id": 1, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:49.390Z", - "updated_at": "2023-07-26T08:44:49.585Z", - "role_ids": [ - 1, - 2 - ], - "two_factor_preference_ids": [], - "organization_ids": [], - "authorization_ids": [], - "overview_sorting_ids": [], - "group_ids": { - "3": [ - "full" - ], - "1": [ - "full" - ], - "2": [ - "full" - ] - } - }, - "5": { - "id": 5, - "organization_id": 2, - "login": "emma@chrispresso.com", - "firstname": "Emma", - "lastname": "Taylor", - "email": "emma@chrispresso.com", - "image": "b64fef91c29105b4a08a2a69be08eda3", - "image_source": null, - "web": "", - "phone": "", - "fax": "", - "mobile": "", - "department": null, - "street": "", - "zip": "", - "city": "", - "country": "", - "address": null, - "vip": false, - "verified": false, - "active": true, - "note": "", - "last_login": null, - "source": null, - "login_failed": 0, - "out_of_office": false, - "out_of_office_start_at": null, - "out_of_office_end_at": null, - "out_of_office_replacement_id": null, - "preferences": { - "locale": "en-us", - "notification_config": { - "matrix": { - "create": { - "criteria": { - "owned_by_me": true, - "owned_by_nobody": true, - "subscribed": true, - "no": false - }, - "channel": { - "email": true, - "online": true - } - }, - "update": { - "criteria": { - "owned_by_me": true, - "owned_by_nobody": true, - "subscribed": true, - "no": false - }, - "channel": { - "email": true, - "online": true - } - }, - "reminder_reached": { - "criteria": { - "owned_by_me": true, - "owned_by_nobody": false, - "subscribed": false, - "no": false - }, - "channel": { - "email": true, - "online": true - } - }, - "escalation": { - "criteria": { - "owned_by_me": true, - "owned_by_nobody": false, - "subscribed": false, - "no": false - }, - "channel": { - "email": true, - "online": true - } - } - } - } - }, - "updated_by_id": 1, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:49.766Z", - "updated_at": "2023-07-26T08:44:49.970Z", - "role_ids": [ - 2 - ], - "two_factor_preference_ids": [], - "organization_ids": [], - "authorization_ids": [], - "overview_sorting_ids": [], - "group_ids": { - "3": [ - "full" - ], - "1": [ - "full" - ], - "2": [ - "full" - ] - } - }, - "2": { - "id": 2, - "organization_id": 1, - "login": "nicole.braun@zammad.org", - "firstname": "Nicole", - "lastname": "Braun", - "email": "nicole.braun@zammad.org", - "image": null, - "image_source": null, - "web": "", - "phone": "", - "fax": "", - "mobile": "", - "department": "", - "street": "", - "zip": "", - "city": "", - "country": "", - "address": "", - "vip": false, - "verified": false, - "active": true, - "note": "", - "last_login": null, - "source": null, - "login_failed": 0, - "out_of_office": false, - "out_of_office_start_at": null, - "out_of_office_end_at": null, - "out_of_office_replacement_id": null, - "preferences": { - "tickets_closed": 22, - "tickets_open": 1 - }, - "updated_by_id": 3, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:39.646Z", - "updated_at": "2023-08-04T14:37:11.400Z", - "role_ids": [ - 3 - ], - "two_factor_preference_ids": [], - "organization_ids": [], - "authorization_ids": [], - "overview_sorting_ids": [], - "group_ids": {} - } - }, - "Role": { - "1": { - "id": 1, - "name": "Admin", - "preferences": {}, - "default_at_signup": false, - "active": true, - "note": "To configure your system.", - "updated_by_id": 1, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:37.326Z", - "updated_at": "2023-07-26T08:44:37.326Z", - "permission_ids": [ - 1, - 43, - 55, - 65 - ], - "knowledge_base_permission_ids": [], - "group_ids": {} - }, - "2": { - "id": 2, - "name": "Agent", - "preferences": {}, - "default_at_signup": false, - "active": true, - "note": "To work on Tickets.", - "updated_by_id": 1, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:37.362Z", - "updated_at": "2023-07-26T08:44:37.362Z", - "permission_ids": [ - 43, - 57, - 60, - 62, - 66 - ], - "knowledge_base_permission_ids": [], - "group_ids": {} - }, - "3": { - "id": 3, - "name": "Customer", - "preferences": {}, - "default_at_signup": true, - "active": true, - "note": "People who create Tickets ask for help.", - "updated_by_id": 1, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:37.379Z", - "updated_at": "2023-07-28T07:22:53.613Z", - "permission_ids": [ - 44, - 47, - 48, - 50, - 54, - 58 - ], - "knowledge_base_permission_ids": [], - "group_ids": {} - } - }, - "Organization": { - "2": { - "name": "Chrispresso Inc.", - "shared": true, - "domain": "", - "domain_assignment": false, - "active": true, - "note": "Manufacturer of individual coffee products.", - "vip": false, - "updated_by_id": 3, - "id": 2, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:48.617Z", - "updated_at": "2023-08-04T12:01:44.370Z", - "member_ids": [ - 3, - 4, - 5 - ], - "secondary_member_ids": [] - }, - "1": { - "id": 1, - "name": "Zammad Foundation", - "shared": true, - "domain": "", - "domain_assignment": false, - "active": true, - "note": "", - "updated_by_id": 1, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:39.608Z", - "updated_at": "2023-08-04T12:02:00.018Z", - "vip": false, - "member_ids": [ - 2 - ], - "secondary_member_ids": [] - } - } - } + "links": [ + { + "link_type": "normal", + "link_object": "Ticket", + "link_object_value": 41 + } + ], + "assets": { + "Ticket": { + "41": { + "id": 41, + "group_id": 2, + "priority_id": 2, + "state_id": 4, + "organization_id": 1, + "number": "93039", + "title": "test", + "owner_id": 1, + "customer_id": 2, + "note": null, + "first_response_at": null, + "first_response_escalation_at": null, + "first_response_in_min": null, + "first_response_diff_in_min": null, + "close_at": "2023-08-04T14:37:07.884Z", + "close_escalation_at": null, + "close_in_min": null, + "close_diff_in_min": null, + "update_escalation_at": null, + "update_in_min": null, + "update_diff_in_min": null, + "last_close_at": "2023-08-04T14:37:07.883Z", + "last_contact_at": "2023-08-04T12:02:00.036Z", + "last_contact_agent_at": null, + "last_contact_customer_at": "2023-08-04T12:02:00.036Z", + "last_owner_update_at": null, + "create_article_type_id": 5, + "create_article_sender_id": 2, + "article_count": 1, + "escalation_at": null, + "pending_time": null, + "type": null, + "time_unit": null, + "preferences": {}, + "updated_by_id": 3, + "created_by_id": 3, + "created_at": "2023-08-04T12:01:59.897Z", + "updated_at": "2023-08-08T09:24:43.977Z", + "article_ids": [ + 64, + 63 + ], + "ticket_time_accounting_ids": [] + } + }, + "Group": { + "2": { + "id": 2, + "signature_id": null, + "email_address_id": 1, + "name": "2nd Level", + "assignment_timeout": null, + "follow_up_possible": "yes", + "reopen_time_in_days": null, + "follow_up_assignment": true, + "active": true, + "shared_drafts": true, + "note": "", + "updated_by_id": 3, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:48.589Z", + "updated_at": "2023-07-27T13:04:25.495Z", + "user_ids": [ + 3, + 4, + 5 + ] + }, + "3": { + "id": 3, + "signature_id": null, + "email_address_id": 1, + "name": "Service Desk", + "assignment_timeout": null, + "follow_up_possible": "yes", + "reopen_time_in_days": null, + "follow_up_assignment": true, + "active": true, + "shared_drafts": true, + "note": "", + "updated_by_id": 3, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:48.602Z", + "updated_at": "2023-07-26T09:28:36.505Z", + "user_ids": [ + 3, + 4, + 5 + ] + }, + "1": { + "id": 1, + "signature_id": 1, + "email_address_id": 1, + "name": "Sales", + "assignment_timeout": null, + "follow_up_possible": "yes", + "reopen_time_in_days": null, + "follow_up_assignment": true, + "active": true, + "shared_drafts": true, + "note": "Standard Group/Pool for Tickets.", + "updated_by_id": 3, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:38.651Z", + "updated_at": "2023-07-26T09:31:54.224Z", + "user_ids": [ + 3, + 4, + 5 + ] + } + }, + "User": { + "1": { + "id": 1, + "organization_id": null, + "login": "-", + "firstname": "-", + "lastname": "", + "email": "", + "image": null, + "image_source": null, + "web": "", + "phone": "", + "fax": "", + "mobile": "", + "department": "", + "street": "", + "zip": "", + "city": "", + "country": "", + "address": "", + "vip": false, + "verified": false, + "active": false, + "note": "", + "last_login": null, + "source": null, + "login_failed": 0, + "out_of_office": false, + "out_of_office_start_at": null, + "out_of_office_end_at": null, + "out_of_office_replacement_id": null, + "preferences": {}, + "updated_by_id": 1, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:37.217Z", + "updated_at": "2023-07-26T08:44:37.217Z", + "role_ids": [], + "two_factor_preference_ids": [], + "organization_ids": [], + "authorization_ids": [], + "overview_sorting_ids": [], + "group_ids": {} + }, + "3": { + "id": 3, + "organization_id": 2, + "login": "chris@chrispresso.com", + "firstname": "Christopher", + "lastname": "Miller", + "email": "chris@chrispresso.com", + "image": "7a6a0d1d94ad2037153cf3a6c1b49a53", + "image_source": null, + "web": "", + "phone": "", + "fax": "", + "mobile": "", + "department": null, + "street": "", + "zip": "", + "city": "", + "country": "", + "address": null, + "vip": false, + "verified": false, + "active": true, + "note": "", + "last_login": "2023-08-08T08:03:40.962Z", + "source": null, + "login_failed": 1, + "out_of_office": false, + "out_of_office_start_at": null, + "out_of_office_end_at": null, + "out_of_office_replacement_id": null, + "preferences": { + "locale": "en-us", + "notification_config": { + "matrix": { + "create": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": true, + "subscribed": true, + "no": false + }, + "channel": { + "email": true, + "online": true + } + }, + "update": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": true, + "subscribed": true, + "no": false + }, + "channel": { + "email": true, + "online": true + } + }, + "reminder_reached": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": false, + "subscribed": false, + "no": false + }, + "channel": { + "email": true, + "online": true + } + }, + "escalation": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": false, + "subscribed": false, + "no": false + }, + "channel": { + "email": true, + "online": true + } + } + } + }, + "intro": true, + "theme": "light" + }, + "updated_by_id": 3, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:48.807Z", + "updated_at": "2023-08-08T08:51:50.662Z", + "role_ids": [ + 1, + 2 + ], + "two_factor_preference_ids": [], + "organization_ids": [], + "authorization_ids": [], + "overview_sorting_ids": [], + "group_ids": { + "3": [ + "full" + ], + "1": [ + "full" + ], + "2": [ + "full" + ] + } + }, + "4": { + "id": 4, + "organization_id": 2, + "login": "jacob@chrispresso.com", + "firstname": "Jacob", + "lastname": "Smith", + "email": "jacob@chrispresso.com", + "image": "95afc1244af5cb8b77edcd7224c5d5f8", + "image_source": null, + "web": "", + "phone": "", + "fax": "", + "mobile": "", + "department": null, + "street": "", + "zip": "", + "city": "", + "country": "", + "address": null, + "vip": false, + "verified": false, + "active": true, + "note": "", + "last_login": null, + "source": null, + "login_failed": 0, + "out_of_office": false, + "out_of_office_start_at": null, + "out_of_office_end_at": null, + "out_of_office_replacement_id": null, + "preferences": { + "locale": "en-us", + "notification_config": { + "matrix": { + "create": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": true, + "subscribed": true, + "no": false + }, + "channel": { + "email": true, + "online": true + } + }, + "update": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": true, + "subscribed": true, + "no": false + }, + "channel": { + "email": true, + "online": true + } + }, + "reminder_reached": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": false, + "subscribed": false, + "no": false + }, + "channel": { + "email": true, + "online": true + } + }, + "escalation": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": false, + "subscribed": false, + "no": false + }, + "channel": { + "email": true, + "online": true + } + } + } + } + }, + "updated_by_id": 1, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:49.390Z", + "updated_at": "2023-07-26T08:44:49.585Z", + "role_ids": [ + 1, + 2 + ], + "two_factor_preference_ids": [], + "organization_ids": [], + "authorization_ids": [], + "overview_sorting_ids": [], + "group_ids": { + "3": [ + "full" + ], + "1": [ + "full" + ], + "2": [ + "full" + ] + } + }, + "5": { + "id": 5, + "organization_id": 2, + "login": "emma@chrispresso.com", + "firstname": "Emma", + "lastname": "Taylor", + "email": "emma@chrispresso.com", + "image": "b64fef91c29105b4a08a2a69be08eda3", + "image_source": null, + "web": "", + "phone": "", + "fax": "", + "mobile": "", + "department": null, + "street": "", + "zip": "", + "city": "", + "country": "", + "address": null, + "vip": false, + "verified": false, + "active": true, + "note": "", + "last_login": null, + "source": null, + "login_failed": 0, + "out_of_office": false, + "out_of_office_start_at": null, + "out_of_office_end_at": null, + "out_of_office_replacement_id": null, + "preferences": { + "locale": "en-us", + "notification_config": { + "matrix": { + "create": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": true, + "subscribed": true, + "no": false + }, + "channel": { + "email": true, + "online": true + } + }, + "update": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": true, + "subscribed": true, + "no": false + }, + "channel": { + "email": true, + "online": true + } + }, + "reminder_reached": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": false, + "subscribed": false, + "no": false + }, + "channel": { + "email": true, + "online": true + } + }, + "escalation": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": false, + "subscribed": false, + "no": false + }, + "channel": { + "email": true, + "online": true + } + } + } + } + }, + "updated_by_id": 1, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:49.766Z", + "updated_at": "2023-07-26T08:44:49.970Z", + "role_ids": [ + 2 + ], + "two_factor_preference_ids": [], + "organization_ids": [], + "authorization_ids": [], + "overview_sorting_ids": [], + "group_ids": { + "3": [ + "full" + ], + "1": [ + "full" + ], + "2": [ + "full" + ] + } + }, + "2": { + "id": 2, + "organization_id": 1, + "login": "nicole.braun@zammad.org", + "firstname": "Nicole", + "lastname": "Braun", + "email": "nicole.braun@zammad.org", + "image": null, + "image_source": null, + "web": "", + "phone": "", + "fax": "", + "mobile": "", + "department": "", + "street": "", + "zip": "", + "city": "", + "country": "", + "address": "", + "vip": false, + "verified": false, + "active": true, + "note": "", + "last_login": null, + "source": null, + "login_failed": 0, + "out_of_office": false, + "out_of_office_start_at": null, + "out_of_office_end_at": null, + "out_of_office_replacement_id": null, + "preferences": { + "tickets_closed": 22, + "tickets_open": 1 + }, + "updated_by_id": 3, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:39.646Z", + "updated_at": "2023-08-04T14:37:11.400Z", + "role_ids": [ + 3 + ], + "two_factor_preference_ids": [], + "organization_ids": [], + "authorization_ids": [], + "overview_sorting_ids": [], + "group_ids": {} + } + }, + "Role": { + "1": { + "id": 1, + "name": "Admin", + "preferences": {}, + "default_at_signup": false, + "active": true, + "note": "To configure your system.", + "updated_by_id": 1, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:37.326Z", + "updated_at": "2023-07-26T08:44:37.326Z", + "permission_ids": [ + 1, + 43, + 55, + 65 + ], + "knowledge_base_permission_ids": [], + "group_ids": {} + }, + "2": { + "id": 2, + "name": "Agent", + "preferences": {}, + "default_at_signup": false, + "active": true, + "note": "To work on Tickets.", + "updated_by_id": 1, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:37.362Z", + "updated_at": "2023-07-26T08:44:37.362Z", + "permission_ids": [ + 43, + 57, + 60, + 62, + 66 + ], + "knowledge_base_permission_ids": [], + "group_ids": {} + }, + "3": { + "id": 3, + "name": "Customer", + "preferences": {}, + "default_at_signup": true, + "active": true, + "note": "People who create Tickets ask for help.", + "updated_by_id": 1, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:37.379Z", + "updated_at": "2023-07-28T07:22:53.613Z", + "permission_ids": [ + 44, + 47, + 48, + 50, + 54, + 58 + ], + "knowledge_base_permission_ids": [], + "group_ids": {} + } + }, + "Organization": { + "2": { + "name": "Chrispresso Inc.", + "shared": true, + "domain": "", + "domain_assignment": false, + "active": true, + "note": "Manufacturer of individual coffee products.", + "vip": false, + "updated_by_id": 3, + "id": 2, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:48.617Z", + "updated_at": "2023-08-04T12:01:44.370Z", + "member_ids": [ + 3, + 4, + 5 + ], + "secondary_member_ids": [] + }, + "1": { + "id": 1, + "name": "Zammad Foundation", + "shared": true, + "domain": "", + "domain_assignment": false, + "active": true, + "note": "", + "updated_by_id": 1, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:39.608Z", + "updated_at": "2023-08-04T12:02:00.018Z", + "vip": false, + "member_ids": [ + 2 + ], + "secondary_member_ids": [] + } + } + } } @@ -694,7 +694,7 @@ Required permission: ``ticket.agent`` **or** ``admin`` } .. note:: The value for ``link_object_target`` has to be the *ticket ID*. The - value for the ``link_object_source_number`` has to be ticket *ticket number*. + value for the ``link_object_source_number`` has to be the *ticket number*. Response: From 634d297057b77120367808a70c396bea1c9688f4 Mon Sep 17 00:00:00 2001 From: Ralf Schmid Date: Wed, 9 Aug 2023 13:36:18 +0200 Subject: [PATCH 4/4] Redacted bugs --- api/organization.rst | 446 +++++++-------- api/ticket/links.rst | 1300 +++++++++++++++++++++--------------------- 2 files changed, 868 insertions(+), 878 deletions(-) diff --git a/api/organization.rst b/api/organization.rst index 82004d39..4317d9e5 100644 --- a/api/organization.rst +++ b/api/organization.rst @@ -6,7 +6,7 @@ List Required permission: ``ticket.agent`` **or** ``admin.organization`` - .. note:: + .. note:: Technically, customers can only see their own organization if applicable. @@ -21,81 +21,81 @@ Response: # HTTP-Code 200 Ok [ - { - "id": 1, - "name": "Zammad Foundation", - "shared": true, - "domain": "", - "domain_assignment": false, - "active": true, - "note": "", - "updated_by_id": 1, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:39.608Z", - "updated_at": "2023-08-04T12:02:00.018Z", - "vip": false, - "member_ids": [ - 2 - ], - "secondary_member_ids": [] - }, - { - "name": "Chrispresso Inc.", - "shared": true, - "domain": "", - "domain_assignment": false, - "active": true, - "note": "Manufacturer of individual coffee products.", - "vip": false, - "updated_by_id": 3, - "id": 2, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:48.617Z", - "updated_at": "2023-08-04T12:01:44.370Z", - "member_ids": [ - 3, - 5, - 4 - ], - "secondary_member_ids": [] - }, - { - "name": "Awesome Customer Inc.", - "shared": true, - "domain": "", - "domain_assignment": false, - "active": true, - "note": "Global distributor of communication and security products, electrical and electronic wire & cable.", - "vip": true, - "updated_by_id": 3, - "id": 3, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:48.632Z", - "updated_at": "2023-08-04T12:54:30.974Z", - "member_ids": [ - 8, - 7, - 6 - ], - "secondary_member_ids": [] - }, - { - "id": 4, - "name": "Good Customer Inc.", - "shared": true, - "domain": "", - "domain_assignment": false, - "active": true, - "note": "Search the world's information, including webpages, images, videos and more. Good Customer has many special features to help you find exactly what you're looking for.", - "updated_by_id": 1, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:48.645Z", - "updated_at": "2023-07-26T08:44:48.645Z", - "member_ids": [ - 9 - ], - "secondary_member_ids": [] - } + { + "id": 1, + "name": "Zammad Foundation", + "shared": true, + "domain": "", + "domain_assignment": false, + "active": true, + "note": "", + "updated_by_id": 1, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:39.608Z", + "updated_at": "2023-08-04T12:02:00.018Z", + "vip": false, + "member_ids": [ + 2 + ], + "secondary_member_ids": [] + }, + { + "name": "Chrispresso Inc.", + "shared": true, + "domain": "", + "domain_assignment": false, + "active": true, + "note": "Manufacturer of individual coffee products.", + "vip": false, + "updated_by_id": 3, + "id": 2, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:48.617Z", + "updated_at": "2023-08-04T12:01:44.370Z", + "member_ids": [ + 3, + 5, + 4 + ], + "secondary_member_ids": [] + }, + { + "name": "Awesome Customer Inc.", + "shared": true, + "domain": "", + "domain_assignment": false, + "active": true, + "note": "Global distributor of communication and security products, electrical and electronic wire & cable.", + "vip": true, + "updated_by_id": 3, + "id": 3, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:48.632Z", + "updated_at": "2023-08-04T12:54:30.974Z", + "member_ids": [ + 8, + 7, + 6 + ], + "secondary_member_ids": [] + }, + { + "id": 4, + "name": "Good Customer Inc.", + "shared": true, + "domain": "", + "domain_assignment": false, + "active": true, + "note": "Search the world's information, including webpages, images, videos and more. Good Customer has many special features to help you find exactly what you're looking for.", + "updated_by_id": 1, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:48.645Z", + "updated_at": "2023-07-26T08:44:48.645Z", + "member_ids": [ + 9 + ], + "secondary_member_ids": [] + } ] Search @@ -116,63 +116,63 @@ Response: # HTTP-Code 200 Ok [ - { - "name": "Awesome Customer Inc.", - "shared": true, - "domain": "", - "domain_assignment": false, - "active": true, - "note": "Global distributor of communication and security products, electrical and electronic wire & cable.", - "vip": true, - "updated_by_id": 3, - "id": 3, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:48.632Z", - "updated_at": "2023-08-04T12:54:30.974Z", - "member_ids": [ - 8, - 7, - 6 - ], - "secondary_member_ids": [] - }, - { - "name": "Chrispresso Inc.", - "shared": true, - "domain": "", - "domain_assignment": false, - "active": true, - "note": "Manufacturer of individual coffee products.", - "vip": false, - "updated_by_id": 3, - "id": 2, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:48.617Z", - "updated_at": "2023-08-04T12:01:44.370Z", - "member_ids": [ - 3, - 5, - 4 - ], - "secondary_member_ids": [] - }, - { - "id": 4, - "name": "Good Customer Inc.", - "shared": true, - "domain": "", - "domain_assignment": false, - "active": true, - "note": "Search the world's information, including webpages, images, videos and more. Good Customer has many special features to help you find exactly what you're looking for.", - "updated_by_id": 1, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:48.645Z", - "updated_at": "2023-07-26T08:44:48.645Z", - "member_ids": [ - 9 - ], - "secondary_member_ids": [] - } + { + "name": "Awesome Customer Inc.", + "shared": true, + "domain": "", + "domain_assignment": false, + "active": true, + "note": "Global distributor of communication and security products, electrical and electronic wire & cable.", + "vip": true, + "updated_by_id": 3, + "id": 3, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:48.632Z", + "updated_at": "2023-08-04T12:54:30.974Z", + "member_ids": [ + 8, + 7, + 6 + ], + "secondary_member_ids": [] + }, + { + "name": "Chrispresso Inc.", + "shared": true, + "domain": "", + "domain_assignment": false, + "active": true, + "note": "Manufacturer of individual coffee products.", + "vip": false, + "updated_by_id": 3, + "id": 2, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:48.617Z", + "updated_at": "2023-08-04T12:01:44.370Z", + "member_ids": [ + 3, + 5, + 4 + ], + "secondary_member_ids": [] + }, + { + "id": 4, + "name": "Good Customer Inc.", + "shared": true, + "domain": "", + "domain_assignment": false, + "active": true, + "note": "Search the world's information, including webpages, images, videos and more. Good Customer has many special features to help you find exactly what you're looking for.", + "updated_by_id": 1, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:48.645Z", + "updated_at": "2023-07-26T08:44:48.645Z", + "member_ids": [ + 9 + ], + "secondary_member_ids": [] + } ] Show @@ -180,7 +180,7 @@ Show Required permission: ``ticket.agent`` **or** ``admin.organization`` - .. note:: + .. note:: Technically any users in question can only see their own organization. @@ -193,28 +193,26 @@ Response: # HTTP-Code 200 Ok - [ - { - "id": 2, - "name": "Chrispresso Inc.", - "shared": true, - "domain": "", - "domain_assignment": false, - "active": true, - "note": "Manufacturer of individual coffee products.", - "vip": false, - "updated_by_id": 3, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:48.617Z", - "updated_at": "2023-08-04T12:01:44.370Z", - "member_ids": [ - 3, - 5, - 4 - ], - "secondary_member_ids": [] - } - ] + { + "id": 2, + "name": "Chrispresso Inc.", + "shared": true, + "domain": "", + "domain_assignment": false, + "active": true, + "note": "Manufacturer of individual coffee products.", + "vip": false, + "updated_by_id": 3, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:48.617Z", + "updated_at": "2023-08-04T12:01:44.370Z", + "member_ids": [ + 3, + 5, + 4 + ], + "secondary_member_ids": [] + } Create ====== @@ -225,21 +223,20 @@ Required permission: ``admin.organization`` .. code-block:: json - [ - { - "name": "Sample Corp.", - "shared": false, - "domain": "example.com", - "domain_assignment": true, - "active": true, - "vip": true, - "note": "Just a sample, aint that nice?", - "members": [ - "olivia@example.com", - "david@example.com" - ] - } - ] + { + "name": "Sample Corp.", + "shared": false, + "domain": "example.com", + "domain_assignment": true, + "active": true, + "vip": true, + "note": "Just a sample, aint that nice?", + "members": [ + "olivia@example.com", + "david@example.com" + ] + } + Response: @@ -248,27 +245,25 @@ Response: # HTTP-Code 201 Created - [ - { - "id": 5, - "name": "Sample Corp.", - "shared": false, - "domain": "example.com", - "domain_assignment": true, - "active": true, - "note": "Just a sample, aint that nice?", - "updated_by_id": 3, - "created_by_id": 3, - "created_at": "2023-08-08T09:12:42.023Z", - "updated_at": "2023-08-08T09:12:42.602Z", - "vip": true, - "member_ids": [ - 10, - 11 - ], - "secondary_member_ids": [] - } - ] + { + "id": 5, + "name": "Sample Corp.", + "shared": false, + "domain": "example.com", + "domain_assignment": true, + "active": true, + "note": "Just a sample, aint that nice?", + "updated_by_id": 3, + "created_by_id": 3, + "created_at": "2023-08-08T09:12:42.023Z", + "updated_at": "2023-08-08T09:12:42.602Z", + "vip": true, + "member_ids": [ + 10, + 11 + ], + "secondary_member_ids": [] + } Update ====== @@ -279,20 +274,18 @@ Required permission: ``admin.organization`` .. code-block:: json - [ - { - "name": "Sample Corp.", - "shared": false, - "domain": "", - "domain_assignment": false, - "active": true, - "note": "This was a triumph - I'm making a note here - H-U-G-E success!", - "members": [ - "olivia@example.com", - "david@example.com" - ] - } - ] + { + "name": "Sample Corp.", + "shared": false, + "domain": "", + "domain_assignment": false, + "active": true, + "note": "This was a triumph - I'm making a note here - H-U-G-E success!", + "members": [ + "olivia@example.com", + "david@example.com" + ] + } Response: @@ -301,28 +294,25 @@ Response: # HTTP-Code 200 Ok - [ - { - "id": 5, - "name": "Sample Corp.", - "shared": false, - "domain": "", - "domain_assignment": false, - "active": true, - "note": "This was a triumph - I'm making a note here - H-U-G-E success!", - "updated_by_id": 3, - "created_by_id": 3, - "created_at": "2023-08-08T09:12:42.023Z", - "updated_at": "2023-08-08T09:16:58.922Z", - "vip": true, - "member_ids": [ - 10, - 11 - ], - "secondary_member_ids": [] - } - ] - + { + "id": 5, + "name": "Sample Corp.", + "shared": false, + "domain": "", + "domain_assignment": false, + "active": true, + "note": "This was a triumph - I'm making a note here - H-U-G-E success!", + "updated_by_id": 3, + "created_by_id": 3, + "created_at": "2023-08-08T09:12:42.023Z", + "updated_at": "2023-08-08T09:16:58.922Z", + "vip": true, + "member_ids": [ + 10, + 11 + ], + "secondary_member_ids": [] + } Delete ====== diff --git a/api/ticket/links.rst b/api/ticket/links.rst index 5842099c..296d247e 100644 --- a/api/ticket/links.rst +++ b/api/ticket/links.rst @@ -12,7 +12,7 @@ Required permission: ``ticket.agent`` **or** ``admin`` :force: { - "link_object": "Ticket", + "link_object": "Ticket", "link_object_value": "5" } @@ -24,654 +24,654 @@ Response: # HTTP-Code 200 Ok { - "links": [ - { - "link_type": "normal", - "link_object": "Ticket", - "link_object_value": 41 - } - ], - "assets": { - "Ticket": { - "41": { - "id": 41, - "group_id": 2, - "priority_id": 2, - "state_id": 4, - "organization_id": 1, - "number": "93039", - "title": "test", - "owner_id": 1, - "customer_id": 2, - "note": null, - "first_response_at": null, - "first_response_escalation_at": null, - "first_response_in_min": null, - "first_response_diff_in_min": null, - "close_at": "2023-08-04T14:37:07.884Z", - "close_escalation_at": null, - "close_in_min": null, - "close_diff_in_min": null, - "update_escalation_at": null, - "update_in_min": null, - "update_diff_in_min": null, - "last_close_at": "2023-08-04T14:37:07.883Z", - "last_contact_at": "2023-08-04T12:02:00.036Z", - "last_contact_agent_at": null, - "last_contact_customer_at": "2023-08-04T12:02:00.036Z", - "last_owner_update_at": null, - "create_article_type_id": 5, - "create_article_sender_id": 2, - "article_count": 1, - "escalation_at": null, - "pending_time": null, - "type": null, - "time_unit": null, - "preferences": {}, - "updated_by_id": 3, - "created_by_id": 3, - "created_at": "2023-08-04T12:01:59.897Z", - "updated_at": "2023-08-08T09:24:43.977Z", - "article_ids": [ - 64, - 63 - ], - "ticket_time_accounting_ids": [] - } - }, - "Group": { - "2": { - "id": 2, - "signature_id": null, - "email_address_id": 1, - "name": "2nd Level", - "assignment_timeout": null, - "follow_up_possible": "yes", - "reopen_time_in_days": null, - "follow_up_assignment": true, - "active": true, - "shared_drafts": true, - "note": "", - "updated_by_id": 3, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:48.589Z", - "updated_at": "2023-07-27T13:04:25.495Z", - "user_ids": [ - 3, - 4, - 5 - ] - }, - "3": { - "id": 3, - "signature_id": null, - "email_address_id": 1, - "name": "Service Desk", - "assignment_timeout": null, - "follow_up_possible": "yes", - "reopen_time_in_days": null, - "follow_up_assignment": true, - "active": true, - "shared_drafts": true, - "note": "", - "updated_by_id": 3, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:48.602Z", - "updated_at": "2023-07-26T09:28:36.505Z", - "user_ids": [ - 3, - 4, - 5 - ] - }, - "1": { - "id": 1, - "signature_id": 1, - "email_address_id": 1, - "name": "Sales", - "assignment_timeout": null, - "follow_up_possible": "yes", - "reopen_time_in_days": null, - "follow_up_assignment": true, - "active": true, - "shared_drafts": true, - "note": "Standard Group/Pool for Tickets.", - "updated_by_id": 3, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:38.651Z", - "updated_at": "2023-07-26T09:31:54.224Z", - "user_ids": [ - 3, - 4, - 5 - ] - } - }, - "User": { - "1": { - "id": 1, - "organization_id": null, - "login": "-", - "firstname": "-", - "lastname": "", - "email": "", - "image": null, - "image_source": null, - "web": "", - "phone": "", - "fax": "", - "mobile": "", - "department": "", - "street": "", - "zip": "", - "city": "", - "country": "", - "address": "", - "vip": false, - "verified": false, - "active": false, - "note": "", - "last_login": null, - "source": null, - "login_failed": 0, - "out_of_office": false, - "out_of_office_start_at": null, - "out_of_office_end_at": null, - "out_of_office_replacement_id": null, - "preferences": {}, - "updated_by_id": 1, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:37.217Z", - "updated_at": "2023-07-26T08:44:37.217Z", - "role_ids": [], - "two_factor_preference_ids": [], - "organization_ids": [], - "authorization_ids": [], - "overview_sorting_ids": [], - "group_ids": {} - }, - "3": { - "id": 3, - "organization_id": 2, - "login": "chris@chrispresso.com", - "firstname": "Christopher", - "lastname": "Miller", - "email": "chris@chrispresso.com", - "image": "7a6a0d1d94ad2037153cf3a6c1b49a53", - "image_source": null, - "web": "", - "phone": "", - "fax": "", - "mobile": "", - "department": null, - "street": "", - "zip": "", - "city": "", - "country": "", - "address": null, - "vip": false, - "verified": false, - "active": true, - "note": "", - "last_login": "2023-08-08T08:03:40.962Z", - "source": null, - "login_failed": 1, - "out_of_office": false, - "out_of_office_start_at": null, - "out_of_office_end_at": null, - "out_of_office_replacement_id": null, - "preferences": { - "locale": "en-us", - "notification_config": { - "matrix": { - "create": { - "criteria": { - "owned_by_me": true, - "owned_by_nobody": true, - "subscribed": true, - "no": false - }, - "channel": { - "email": true, - "online": true - } - }, - "update": { - "criteria": { - "owned_by_me": true, - "owned_by_nobody": true, - "subscribed": true, - "no": false - }, - "channel": { - "email": true, - "online": true - } - }, - "reminder_reached": { - "criteria": { - "owned_by_me": true, - "owned_by_nobody": false, - "subscribed": false, - "no": false - }, - "channel": { - "email": true, - "online": true - } - }, - "escalation": { - "criteria": { - "owned_by_me": true, - "owned_by_nobody": false, - "subscribed": false, - "no": false - }, - "channel": { - "email": true, - "online": true - } - } - } - }, - "intro": true, - "theme": "light" - }, - "updated_by_id": 3, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:48.807Z", - "updated_at": "2023-08-08T08:51:50.662Z", - "role_ids": [ - 1, - 2 - ], - "two_factor_preference_ids": [], - "organization_ids": [], - "authorization_ids": [], - "overview_sorting_ids": [], - "group_ids": { - "3": [ - "full" - ], - "1": [ - "full" - ], - "2": [ - "full" - ] - } - }, - "4": { - "id": 4, - "organization_id": 2, - "login": "jacob@chrispresso.com", - "firstname": "Jacob", - "lastname": "Smith", - "email": "jacob@chrispresso.com", - "image": "95afc1244af5cb8b77edcd7224c5d5f8", - "image_source": null, - "web": "", - "phone": "", - "fax": "", - "mobile": "", - "department": null, - "street": "", - "zip": "", - "city": "", - "country": "", - "address": null, - "vip": false, - "verified": false, - "active": true, - "note": "", - "last_login": null, - "source": null, - "login_failed": 0, - "out_of_office": false, - "out_of_office_start_at": null, - "out_of_office_end_at": null, - "out_of_office_replacement_id": null, - "preferences": { - "locale": "en-us", - "notification_config": { - "matrix": { - "create": { - "criteria": { - "owned_by_me": true, - "owned_by_nobody": true, - "subscribed": true, - "no": false - }, - "channel": { - "email": true, - "online": true - } - }, - "update": { - "criteria": { - "owned_by_me": true, - "owned_by_nobody": true, - "subscribed": true, - "no": false - }, - "channel": { - "email": true, - "online": true - } - }, - "reminder_reached": { - "criteria": { - "owned_by_me": true, - "owned_by_nobody": false, - "subscribed": false, - "no": false - }, - "channel": { - "email": true, - "online": true - } - }, - "escalation": { - "criteria": { - "owned_by_me": true, - "owned_by_nobody": false, - "subscribed": false, - "no": false - }, - "channel": { - "email": true, - "online": true - } - } - } - } - }, - "updated_by_id": 1, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:49.390Z", - "updated_at": "2023-07-26T08:44:49.585Z", - "role_ids": [ - 1, - 2 - ], - "two_factor_preference_ids": [], - "organization_ids": [], - "authorization_ids": [], - "overview_sorting_ids": [], - "group_ids": { - "3": [ - "full" - ], - "1": [ - "full" - ], - "2": [ - "full" - ] - } - }, - "5": { - "id": 5, - "organization_id": 2, - "login": "emma@chrispresso.com", - "firstname": "Emma", - "lastname": "Taylor", - "email": "emma@chrispresso.com", - "image": "b64fef91c29105b4a08a2a69be08eda3", - "image_source": null, - "web": "", - "phone": "", - "fax": "", - "mobile": "", - "department": null, - "street": "", - "zip": "", - "city": "", - "country": "", - "address": null, - "vip": false, - "verified": false, - "active": true, - "note": "", - "last_login": null, - "source": null, - "login_failed": 0, - "out_of_office": false, - "out_of_office_start_at": null, - "out_of_office_end_at": null, - "out_of_office_replacement_id": null, - "preferences": { - "locale": "en-us", - "notification_config": { - "matrix": { - "create": { - "criteria": { - "owned_by_me": true, - "owned_by_nobody": true, - "subscribed": true, - "no": false - }, - "channel": { - "email": true, - "online": true - } - }, - "update": { - "criteria": { - "owned_by_me": true, - "owned_by_nobody": true, - "subscribed": true, - "no": false - }, - "channel": { - "email": true, - "online": true - } - }, - "reminder_reached": { - "criteria": { - "owned_by_me": true, - "owned_by_nobody": false, - "subscribed": false, - "no": false - }, - "channel": { - "email": true, - "online": true - } - }, - "escalation": { - "criteria": { - "owned_by_me": true, - "owned_by_nobody": false, - "subscribed": false, - "no": false - }, - "channel": { - "email": true, - "online": true - } - } - } - } - }, - "updated_by_id": 1, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:49.766Z", - "updated_at": "2023-07-26T08:44:49.970Z", - "role_ids": [ - 2 - ], - "two_factor_preference_ids": [], - "organization_ids": [], - "authorization_ids": [], - "overview_sorting_ids": [], - "group_ids": { - "3": [ - "full" - ], - "1": [ - "full" - ], - "2": [ - "full" - ] - } - }, - "2": { - "id": 2, - "organization_id": 1, - "login": "nicole.braun@zammad.org", - "firstname": "Nicole", - "lastname": "Braun", - "email": "nicole.braun@zammad.org", - "image": null, - "image_source": null, - "web": "", - "phone": "", - "fax": "", - "mobile": "", - "department": "", - "street": "", - "zip": "", - "city": "", - "country": "", - "address": "", - "vip": false, - "verified": false, - "active": true, - "note": "", - "last_login": null, - "source": null, - "login_failed": 0, - "out_of_office": false, - "out_of_office_start_at": null, - "out_of_office_end_at": null, - "out_of_office_replacement_id": null, - "preferences": { - "tickets_closed": 22, - "tickets_open": 1 - }, - "updated_by_id": 3, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:39.646Z", - "updated_at": "2023-08-04T14:37:11.400Z", - "role_ids": [ - 3 - ], - "two_factor_preference_ids": [], - "organization_ids": [], - "authorization_ids": [], - "overview_sorting_ids": [], - "group_ids": {} - } - }, - "Role": { - "1": { - "id": 1, - "name": "Admin", - "preferences": {}, - "default_at_signup": false, - "active": true, - "note": "To configure your system.", - "updated_by_id": 1, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:37.326Z", - "updated_at": "2023-07-26T08:44:37.326Z", - "permission_ids": [ - 1, - 43, - 55, - 65 - ], - "knowledge_base_permission_ids": [], - "group_ids": {} - }, - "2": { - "id": 2, - "name": "Agent", - "preferences": {}, - "default_at_signup": false, - "active": true, - "note": "To work on Tickets.", - "updated_by_id": 1, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:37.362Z", - "updated_at": "2023-07-26T08:44:37.362Z", - "permission_ids": [ - 43, - 57, - 60, - 62, - 66 - ], - "knowledge_base_permission_ids": [], - "group_ids": {} - }, - "3": { - "id": 3, - "name": "Customer", - "preferences": {}, - "default_at_signup": true, - "active": true, - "note": "People who create Tickets ask for help.", - "updated_by_id": 1, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:37.379Z", - "updated_at": "2023-07-28T07:22:53.613Z", - "permission_ids": [ - 44, - 47, - 48, - 50, - 54, - 58 - ], - "knowledge_base_permission_ids": [], - "group_ids": {} - } - }, - "Organization": { - "2": { - "name": "Chrispresso Inc.", - "shared": true, - "domain": "", - "domain_assignment": false, - "active": true, - "note": "Manufacturer of individual coffee products.", - "vip": false, - "updated_by_id": 3, - "id": 2, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:48.617Z", - "updated_at": "2023-08-04T12:01:44.370Z", - "member_ids": [ - 3, - 4, - 5 - ], - "secondary_member_ids": [] - }, - "1": { - "id": 1, - "name": "Zammad Foundation", - "shared": true, - "domain": "", - "domain_assignment": false, - "active": true, - "note": "", - "updated_by_id": 1, - "created_by_id": 1, - "created_at": "2023-07-26T08:44:39.608Z", - "updated_at": "2023-08-04T12:02:00.018Z", - "vip": false, - "member_ids": [ - 2 - ], - "secondary_member_ids": [] - } - } - } + "links": [ + { + "link_type": "normal", + "link_object": "Ticket", + "link_object_value": 41 + } + ], + "assets": { + "Ticket": { + "41": { + "id": 41, + "group_id": 2, + "priority_id": 2, + "state_id": 4, + "organization_id": 1, + "number": "93039", + "title": "test", + "owner_id": 1, + "customer_id": 2, + "note": null, + "first_response_at": null, + "first_response_escalation_at": null, + "first_response_in_min": null, + "first_response_diff_in_min": null, + "close_at": "2023-08-04T14:37:07.884Z", + "close_escalation_at": null, + "close_in_min": null, + "close_diff_in_min": null, + "update_escalation_at": null, + "update_in_min": null, + "update_diff_in_min": null, + "last_close_at": "2023-08-04T14:37:07.883Z", + "last_contact_at": "2023-08-04T12:02:00.036Z", + "last_contact_agent_at": null, + "last_contact_customer_at": "2023-08-04T12:02:00.036Z", + "last_owner_update_at": null, + "create_article_type_id": 5, + "create_article_sender_id": 2, + "article_count": 1, + "escalation_at": null, + "pending_time": null, + "type": null, + "time_unit": null, + "preferences": {}, + "updated_by_id": 3, + "created_by_id": 3, + "created_at": "2023-08-04T12:01:59.897Z", + "updated_at": "2023-08-08T09:24:43.977Z", + "article_ids": [ + 64, + 63 + ], + "ticket_time_accounting_ids": [] + } + }, + "Group": { + "2": { + "id": 2, + "signature_id": null, + "email_address_id": 1, + "name": "2nd Level", + "assignment_timeout": null, + "follow_up_possible": "yes", + "reopen_time_in_days": null, + "follow_up_assignment": true, + "active": true, + "shared_drafts": true, + "note": "", + "updated_by_id": 3, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:48.589Z", + "updated_at": "2023-07-27T13:04:25.495Z", + "user_ids": [ + 3, + 4, + 5 + ] + }, + "3": { + "id": 3, + "signature_id": null, + "email_address_id": 1, + "name": "Service Desk", + "assignment_timeout": null, + "follow_up_possible": "yes", + "reopen_time_in_days": null, + "follow_up_assignment": true, + "active": true, + "shared_drafts": true, + "note": "", + "updated_by_id": 3, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:48.602Z", + "updated_at": "2023-07-26T09:28:36.505Z", + "user_ids": [ + 3, + 4, + 5 + ] + }, + "1": { + "id": 1, + "signature_id": 1, + "email_address_id": 1, + "name": "Sales", + "assignment_timeout": null, + "follow_up_possible": "yes", + "reopen_time_in_days": null, + "follow_up_assignment": true, + "active": true, + "shared_drafts": true, + "note": "Standard Group/Pool for Tickets.", + "updated_by_id": 3, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:38.651Z", + "updated_at": "2023-07-26T09:31:54.224Z", + "user_ids": [ + 3, + 4, + 5 + ] + } + }, + "User": { + "1": { + "id": 1, + "organization_id": null, + "login": "-", + "firstname": "-", + "lastname": "", + "email": "", + "image": null, + "image_source": null, + "web": "", + "phone": "", + "fax": "", + "mobile": "", + "department": "", + "street": "", + "zip": "", + "city": "", + "country": "", + "address": "", + "vip": false, + "verified": false, + "active": false, + "note": "", + "last_login": null, + "source": null, + "login_failed": 0, + "out_of_office": false, + "out_of_office_start_at": null, + "out_of_office_end_at": null, + "out_of_office_replacement_id": null, + "preferences": {}, + "updated_by_id": 1, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:37.217Z", + "updated_at": "2023-07-26T08:44:37.217Z", + "role_ids": [], + "two_factor_preference_ids": [], + "organization_ids": [], + "authorization_ids": [], + "overview_sorting_ids": [], + "group_ids": {} + }, + "3": { + "id": 3, + "organization_id": 2, + "login": "chris@chrispresso.com", + "firstname": "Christopher", + "lastname": "Miller", + "email": "chris@chrispresso.com", + "image": "7a6a0d1d94ad2037153cf3a6c1b49a53", + "image_source": null, + "web": "", + "phone": "", + "fax": "", + "mobile": "", + "department": null, + "street": "", + "zip": "", + "city": "", + "country": "", + "address": null, + "vip": false, + "verified": false, + "active": true, + "note": "", + "last_login": "2023-08-08T08:03:40.962Z", + "source": null, + "login_failed": 1, + "out_of_office": false, + "out_of_office_start_at": null, + "out_of_office_end_at": null, + "out_of_office_replacement_id": null, + "preferences": { + "locale": "en-us", + "notification_config": { + "matrix": { + "create": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": true, + "subscribed": true, + "no": false + }, + "channel": { + "email": true, + "online": true + } + }, + "update": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": true, + "subscribed": true, + "no": false + }, + "channel": { + "email": true, + "online": true + } + }, + "reminder_reached": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": false, + "subscribed": false, + "no": false + }, + "channel": { + "email": true, + "online": true + } + }, + "escalation": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": false, + "subscribed": false, + "no": false + }, + "channel": { + "email": true, + "online": true + } + } + } + }, + "intro": true, + "theme": "light" + }, + "updated_by_id": 3, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:48.807Z", + "updated_at": "2023-08-08T08:51:50.662Z", + "role_ids": [ + 1, + 2 + ], + "two_factor_preference_ids": [], + "organization_ids": [], + "authorization_ids": [], + "overview_sorting_ids": [], + "group_ids": { + "3": [ + "full" + ], + "1": [ + "full" + ], + "2": [ + "full" + ] + } + }, + "4": { + "id": 4, + "organization_id": 2, + "login": "jacob@chrispresso.com", + "firstname": "Jacob", + "lastname": "Smith", + "email": "jacob@chrispresso.com", + "image": "95afc1244af5cb8b77edcd7224c5d5f8", + "image_source": null, + "web": "", + "phone": "", + "fax": "", + "mobile": "", + "department": null, + "street": "", + "zip": "", + "city": "", + "country": "", + "address": null, + "vip": false, + "verified": false, + "active": true, + "note": "", + "last_login": null, + "source": null, + "login_failed": 0, + "out_of_office": false, + "out_of_office_start_at": null, + "out_of_office_end_at": null, + "out_of_office_replacement_id": null, + "preferences": { + "locale": "en-us", + "notification_config": { + "matrix": { + "create": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": true, + "subscribed": true, + "no": false + }, + "channel": { + "email": true, + "online": true + } + }, + "update": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": true, + "subscribed": true, + "no": false + }, + "channel": { + "email": true, + "online": true + } + }, + "reminder_reached": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": false, + "subscribed": false, + "no": false + }, + "channel": { + "email": true, + "online": true + } + }, + "escalation": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": false, + "subscribed": false, + "no": false + }, + "channel": { + "email": true, + "online": true + } + } + } + } + }, + "updated_by_id": 1, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:49.390Z", + "updated_at": "2023-07-26T08:44:49.585Z", + "role_ids": [ + 1, + 2 + ], + "two_factor_preference_ids": [], + "organization_ids": [], + "authorization_ids": [], + "overview_sorting_ids": [], + "group_ids": { + "3": [ + "full" + ], + "1": [ + "full" + ], + "2": [ + "full" + ] + } + }, + "5": { + "id": 5, + "organization_id": 2, + "login": "emma@chrispresso.com", + "firstname": "Emma", + "lastname": "Taylor", + "email": "emma@chrispresso.com", + "image": "b64fef91c29105b4a08a2a69be08eda3", + "image_source": null, + "web": "", + "phone": "", + "fax": "", + "mobile": "", + "department": null, + "street": "", + "zip": "", + "city": "", + "country": "", + "address": null, + "vip": false, + "verified": false, + "active": true, + "note": "", + "last_login": null, + "source": null, + "login_failed": 0, + "out_of_office": false, + "out_of_office_start_at": null, + "out_of_office_end_at": null, + "out_of_office_replacement_id": null, + "preferences": { + "locale": "en-us", + "notification_config": { + "matrix": { + "create": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": true, + "subscribed": true, + "no": false + }, + "channel": { + "email": true, + "online": true + } + }, + "update": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": true, + "subscribed": true, + "no": false + }, + "channel": { + "email": true, + "online": true + } + }, + "reminder_reached": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": false, + "subscribed": false, + "no": false + }, + "channel": { + "email": true, + "online": true + } + }, + "escalation": { + "criteria": { + "owned_by_me": true, + "owned_by_nobody": false, + "subscribed": false, + "no": false + }, + "channel": { + "email": true, + "online": true + } + } + } + } + }, + "updated_by_id": 1, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:49.766Z", + "updated_at": "2023-07-26T08:44:49.970Z", + "role_ids": [ + 2 + ], + "two_factor_preference_ids": [], + "organization_ids": [], + "authorization_ids": [], + "overview_sorting_ids": [], + "group_ids": { + "3": [ + "full" + ], + "1": [ + "full" + ], + "2": [ + "full" + ] + } + }, + "2": { + "id": 2, + "organization_id": 1, + "login": "nicole.braun@zammad.org", + "firstname": "Nicole", + "lastname": "Braun", + "email": "nicole.braun@zammad.org", + "image": null, + "image_source": null, + "web": "", + "phone": "", + "fax": "", + "mobile": "", + "department": "", + "street": "", + "zip": "", + "city": "", + "country": "", + "address": "", + "vip": false, + "verified": false, + "active": true, + "note": "", + "last_login": null, + "source": null, + "login_failed": 0, + "out_of_office": false, + "out_of_office_start_at": null, + "out_of_office_end_at": null, + "out_of_office_replacement_id": null, + "preferences": { + "tickets_closed": 22, + "tickets_open": 1 + }, + "updated_by_id": 3, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:39.646Z", + "updated_at": "2023-08-04T14:37:11.400Z", + "role_ids": [ + 3 + ], + "two_factor_preference_ids": [], + "organization_ids": [], + "authorization_ids": [], + "overview_sorting_ids": [], + "group_ids": {} + } + }, + "Role": { + "1": { + "id": 1, + "name": "Admin", + "preferences": {}, + "default_at_signup": false, + "active": true, + "note": "To configure your system.", + "updated_by_id": 1, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:37.326Z", + "updated_at": "2023-07-26T08:44:37.326Z", + "permission_ids": [ + 1, + 43, + 55, + 65 + ], + "knowledge_base_permission_ids": [], + "group_ids": {} + }, + "2": { + "id": 2, + "name": "Agent", + "preferences": {}, + "default_at_signup": false, + "active": true, + "note": "To work on Tickets.", + "updated_by_id": 1, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:37.362Z", + "updated_at": "2023-07-26T08:44:37.362Z", + "permission_ids": [ + 43, + 57, + 60, + 62, + 66 + ], + "knowledge_base_permission_ids": [], + "group_ids": {} + }, + "3": { + "id": 3, + "name": "Customer", + "preferences": {}, + "default_at_signup": true, + "active": true, + "note": "People who create Tickets ask for help.", + "updated_by_id": 1, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:37.379Z", + "updated_at": "2023-07-28T07:22:53.613Z", + "permission_ids": [ + 44, + 47, + 48, + 50, + 54, + 58 + ], + "knowledge_base_permission_ids": [], + "group_ids": {} + } + }, + "Organization": { + "2": { + "name": "Chrispresso Inc.", + "shared": true, + "domain": "", + "domain_assignment": false, + "active": true, + "note": "Manufacturer of individual coffee products.", + "vip": false, + "updated_by_id": 3, + "id": 2, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:48.617Z", + "updated_at": "2023-08-04T12:01:44.370Z", + "member_ids": [ + 3, + 4, + 5 + ], + "secondary_member_ids": [] + }, + "1": { + "id": 1, + "name": "Zammad Foundation", + "shared": true, + "domain": "", + "domain_assignment": false, + "active": true, + "note": "", + "updated_by_id": 1, + "created_by_id": 1, + "created_at": "2023-07-26T08:44:39.608Z", + "updated_at": "2023-08-04T12:02:00.018Z", + "vip": false, + "member_ids": [ + 2 + ], + "secondary_member_ids": [] + } + } + } } @@ -694,7 +694,7 @@ Required permission: ``ticket.agent`` **or** ``admin`` } .. note:: The value for ``link_object_target`` has to be the *ticket ID*. The - value for the ``link_object_source_number`` has to be the *ticket number*. + value for the ``link_object_source_number`` has to be the *ticket number*. Response: