Endpoint Update Tickets (Bulk)
Name
put_tickets
Description
Update tickets in bulk (job is queued) and wait until done. This is faster than one request at a time [API reference]
Related Tables
Parameters
Parameter | Required | Options | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
There are no parameters |
Output Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Description |
---|---|---|---|---|
job_id |
DT_WSTR
|
nvarchar(100)
|
100 | |
message |
DT_WSTR
|
nvarchar(2000)
|
2000 | |
total |
DT_I4
|
int
|
||
job_status |
DT_WSTR
|
nvarchar(50)
|
50 | |
url |
DT_WSTR
|
nvarchar(500)
|
500 | |
index |
DT_I4
|
int
|
||
error |
DT_WSTR
|
nvarchar(1000)
|
1000 | |
details |
DT_WSTR
|
nvarchar(4000)
|
4000 | |
ticket_id |
DT_I8
|
bigint
|
||
status |
DT_WSTR
|
nvarchar(50)
|
50 | |
success |
DT_BOOL
|
bit
|
Input Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Description |
---|---|---|---|---|
allow_attachments |
DT_BOOL
|
bit
|
||
allow_channelback |
DT_BOOL
|
bit
|
||
brand_id |
DT_I8
|
bigint
|
||
followup_ids |
DT_WSTR
|
nvarchar(1000)
|
1000 | |
fields |
DT_WSTR
|
nvarchar(1000)
|
1000 | |
group_id |
DT_I8
|
bigint
|
||
due_at |
DT_DBTIMESTAMP
|
datetime
|
||
collaborator_ids |
DT_WSTR
|
nvarchar(1000)
|
1000 | |
assignee_id |
DT_I8
|
bigint
|
||
forum_topic_id |
DT_WSTR
|
nvarchar(255)
|
255 | |
email_cc_ids |
DT_WSTR
|
nvarchar(1000)
|
1000 | |
follower_ids |
DT_WSTR
|
nvarchar(1000)
|
1000 | |
id |
DT_I8
|
bigint
|
||
sharing_agreement_ids |
DT_WSTR
|
nvarchar(255)
|
255 | |
organization_id |
DT_I8
|
bigint
|
||
is_public |
DT_BOOL
|
bit
|
||
problem_id |
DT_WSTR
|
nvarchar(255)
|
255 | |
submitter_id |
DT_I8
|
bigint
|
||
requester_email |
DT_WSTR
|
nvarchar(255)
|
255 | |
recipient |
DT_WSTR
|
nvarchar(255)
|
255 | |
status |
DT_WSTR
|
nvarchar(28)
|
28 | |
type |
DT_WSTR
|
nvarchar(255)
|
255 | |
priority |
DT_WSTR
|
nvarchar(24)
|
24 | |
comment_body |
DT_NTEXT
|
nvarchar(MAX)
|
||
comment_body_html |
DT_NTEXT
|
nvarchar(MAX)
|
||
requester_id |
DT_I8
|
bigint
|
||
comment_public |
DT_BOOL
|
bit
|
||
tags |
DT_WSTR
|
nvarchar(1000)
|
1000 | |
additional_tags |
DT_WSTR
|
nvarchar(1000)
|
1000 | |
remove_tags |
DT_WSTR
|
nvarchar(1000)
|
1000 | |
custom_fields |
DT_WSTR
|
nvarchar(1000)
|
1000 | |
external_id |
DT_WSTR
|
nvarchar(255)
|
255 | |
requester_name |
DT_WSTR
|
nvarchar(255)
|
255 | |
comment_author_id |
DT_I8
|
bigint
|
||
subject |
DT_WSTR
|
nvarchar(1012)
|
1012 |
Examples
SSIS
Use Zendesk Connector in API Source or in API Destination SSIS Data Flow components to read or write data.
API Destination
This Endpoint belongs to the Tickets (Bulk) table, therefore it is better to use it, instead of accessing the endpoint directly. Use this table and table-operation pair to update tickets:
There are no parameters to configure. |

ODBC application
Use these SQL queries in your ODBC application data source:
Update ticket with Add or remove tags
Update ticket with Add new tags or remove tags. Adding / removing tags available via special field names only in BULK mode so you must use Tickets_BULK table.
Update Tickets_Bulk
SET subject='New subject'
, additional_tags ='["new-tag1","new-tag2"]' --//add some tags
--, remove_tags='["old-tag1","old-tag2"]' --//removes some tags
--, tags='["tag1","tag2"]' --//overwrite all tags
, status='pending' --new, solved, closed
Where Id = 1234
put_tickets
endpoint belongs to
Tickets_Bulk
table(s), and can therefore be used via those table(s).
SQL Server
Use these SQL queries in SQL Server after you create a data source in Data Gateway:
Update ticket with Add or remove tags
Update ticket with Add new tags or remove tags. Adding / removing tags available via special field names only in BULK mode so you must use Tickets_BULK table.
DECLARE @MyQuery NVARCHAR(MAX) = 'Update Tickets_Bulk
SET subject=''New subject''
, additional_tags =''["new-tag1","new-tag2"]'' --//add some tags
--, remove_tags=''["old-tag1","old-tag2"]'' --//removes some tags
--, tags=''["tag1","tag2"]'' --//overwrite all tags
, status=''pending'' --new, solved, closed
Where Id = 1234';
EXEC (@MyQuery) AT [LS_TO_ZENDESK_IN_GATEWAY];
put_tickets
endpoint belongs to
Tickets_Bulk
table(s), and can therefore be used via those table(s).