Zendesk
Since Camel 2.19
Both producer and consumer are supported
The Zendesk component provides access to all the zendesk.com APIs accessible using zendesk-java-client. It allows producing messages to manage Zendesk ticket, user, organization, etc.
Maven users will need to add the following dependency to their pom.xml for this component:
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-zendesk</artifactId>
<version>${camel-version}</version>
</dependency> Configuring Options
Camel components are configured on two separate levels:
-
component level
-
endpoint level
Configuring Component Options
At the component level, you set general and shared configurations that are, then, inherited by the endpoints. It is the highest configuration level.
For example, a component may have security settings, credentials for authentication, urls for network connection and so forth.
Some components only have a few options, and others may have many. Because components typically have pre-configured defaults that are commonly used, then you may often only need to configure a few options on a component; or none at all.
You can configure components using:
-
the Component DSL.
-
in a configuration file (
application.properties,*.yamlfiles, etc). -
directly in the Java code.
Configuring Endpoint Options
You usually spend more time setting up endpoints because they have many options. These options help you customize what you want the endpoint to do. The options are also categorized into whether the endpoint is used as a consumer (from), as a producer (to), or both.
Configuring endpoints is most often done directly in the endpoint URI as path and query parameters. You can also use the Endpoint DSL and DataFormat DSL as a type safe way of configuring endpoints and data formats in Java.
A good practice when configuring options is to use Property Placeholders.
Property placeholders provide a few benefits:
-
They help prevent using hardcoded urls, port numbers, sensitive information, and other settings.
-
They allow externalizing the configuration from the code.
-
They help the code to become more flexible and reusable.
The following two sections list all the options, firstly for the component followed by the endpoint.
Component Options
The Zendesk component supports the following options which are listed below.
| Name | Description | Default | Type |
|---|---|---|---|
The URL of the Zendesk account, such as https://yourcompany.zendesk.com. The client adds /api/v2 to it. | String | ||
Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. Important: This is only possible if the 3rd party component allows Camel to be alerted if an exception was thrown. Some components handle this internally only, and therefore bridgeErrorHandler is not possible. In other situations we may improve the Camel component to hook into the 3rd party component and make this possible for future releases. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | boolean | |
Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel’s routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. | false | boolean | |
Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. | true | boolean | |
Component configuration. | ZendeskConfiguration | ||
A Zendesk client to share. An endpoint uses it only when all its settings, the method included, are equal to those of the component configuration; otherwise the endpoint creates its own client. | Zendesk | ||
The OAuth access token, sent as a bearer token without username. Not used when password is set; takes precedence over token. | String | ||
The password of the Zendesk user, sent with username in basic authentication. Takes precedence over oauthToken and token. | String | ||
The Zendesk API token, sent with username as username/token in basic authentication. Not used when password or oauthToken is set. | String | ||
The email address of the Zendesk user, sent with password or token in basic authentication. Not used with oauthToken. | String |
Endpoint Options
The Zendesk endpoint is configured using URI syntax:
zendesk:methodName
With the following path and query parameters:
Path Parameters
| Name | Description | Default | Type |
|---|---|---|---|
Required The method of the Zendesk client to call, such as getTicket or createTicket. Enum values:
| ZendeskApiMethod |
Query Parameters
| Name | Description | Default | Type |
|---|---|---|---|
Sets the name of a parameter to be passed in the exchange In Body. | String | ||
The URL of the Zendesk account, such as https://yourcompany.zendesk.com. The client adds /api/v2 to it. | String | ||
If the polling consumer did not poll any files, you can enable this option to send an empty message (no body) instead. | false | boolean | |
Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. Important: This is only possible if the 3rd party component allows Camel to be alerted if an exception was thrown. Some components handle this internally only, and therefore bridgeErrorHandler is not possible. In other situations we may improve the Camel component to hook into the 3rd party component and make this possible for future releases. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | boolean | |
To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored. | ExceptionHandler | ||
Sets the exchange pattern when the consumer creates an exchange. Enum values:
| ExchangePattern | ||
A pluggable org.apache.camel.PollingConsumerPollingStrategy allowing you to provide your custom implementation to control error handling usually occurred during the poll operation before an Exchange have been created and being routed in Camel. | PollingConsumerPollStrategy | ||
Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel’s routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. | false | boolean | |
The number of subsequent error polls (failed due some error) that should happen before the backoffMultipler should kick-in. | int | ||
The number of subsequent idle polls that should happen before the backoffMultipler should kick-in. | int | ||
To let the scheduled polling consumer backoff if there has been a number of subsequent idles/errors in a row. The multiplier is then the number of polls that will be skipped before the next actual attempt is happening again. When this option is in use then backoffIdleThreshold and/or backoffErrorThreshold must also be configured. | int | ||
Milliseconds before the next poll. | 500 | long | |
If greedy is enabled, then the ScheduledPollConsumer will run immediately again, if the previous run polled 1 or more messages. | false | boolean | |
How long a poll may run before the health check of the consumer reports DOWN. The health check is otherwise based on the polls that are done, so it stays UP while a poll hangs, for example on a read without timeout from a connection that went silent. A poll includes routing the messages it polled, so set this above the longest poll you expect. The poll is not interrupted. The value is in millis (not affected by timeUnit). The default 0 turns this off. | 0 | long | |
Milliseconds before the first poll starts. | 1000 | long | |
Specifies a maximum limit of number of fires. So if you set it to 1, the scheduler will only fire once. If you set it to 5, it will only fire five times. A value of zero or negative means fire forever. | 0 | long | |
The consumer logs a start/complete log line when it polls. This option allows you to configure the logging level for that. Enum values:
| TRACE | LoggingLevel | |
Allows for configuring a custom/shared thread pool to use for the consumer. By default each consumer has its own single threaded thread pool. | ScheduledExecutorService | ||
To use a cron scheduler from either camel-spring or camel-quartz component. Use value spring or quartz for built in scheduler. | none | Object | |
To configure additional properties when using a custom scheduler or any of the Quartz, Spring based scheduler. This is a multi-value option with prefix: scheduler. | Map | ||
Whether the scheduler should be auto started. | true | boolean | |
Time unit for initialDelay and delay options. Enum values:
| MILLISECONDS | TimeUnit | |
Controls if fixed delay or fixed rate is used. See ScheduledExecutorService in JDK for details. | true | boolean | |
The OAuth access token, sent as a bearer token without username. Not used when password is set; takes precedence over token. | String | ||
The password of the Zendesk user, sent with username in basic authentication. Takes precedence over oauthToken and token. | String | ||
The Zendesk API token, sent with username as username/token in basic authentication. Not used when password or oauthToken is set. | String | ||
The email address of the Zendesk user, sent with password or token in basic authentication. Not used with oauthToken. | String |
API Parameters (1 APIs)
The Zendesk endpoint is an API-based component and has additional parameters based on which API name and API method is used. The API name and API method is located in the endpoint URI as the methodName path parameters:
zendesk:methodName
There are 1 API names as listed in the table below:
| API Name | Type | Description |
|---|---|---|
Both |
Each API is documented in the following sections to come.
API: DEFAULT
Both producer and consumer are supported
The DEFAULT API is defined in the syntax as follows:
zendesk:DEFAULT/methodName?[parameters] The 288 method(s) is(are) listed in the table below, followed by detailed syntax for each method. (API methods can have a shorthand alias name which can be used in the syntax instead of the name)
| Method | Alias | Description |
|---|---|---|
Adds tags to an organization, and returns all the tags of the organization | ||
Adds tags to a ticket, and returns all the tags of the ticket | ||
Adds tags to a forum topic, and returns all the tags of the topic | ||
Associates attachments with a Help Center article, up to 20 per call | ||
Changes the password of a user, given the current password; users can change only their own password | ||
Creates a Help Center article in the section given by the section ID of the article | ||
Creates a translation of a Help Center article | ||
Creates an automation | ||
Creates a Help Center category | ||
Creates a translation of a Help Center category | ||
Adds a comment to a ticket, and returns the updated ticket | ||
Creates a Help Center content tag | ||
Creates a dynamic content item | ||
Creates a variant of a dynamic content item | ||
Creates a forum | ||
Creates a group | ||
Creates a group membership, which adds an agent to a group | ||
Creates a macro | ||
Creates an organization, or updates it when an organization with the same ID or external ID exists | ||
Creates a user, or updates it when a user with the same email address or external ID exists | ||
Creates or updates users in a background job, and returns the job status | ||
Creates or updates users in a background job, and returns a future of the job status | ||
Creates an organization | ||
Creates an organization membership, which adds a user to an organization | ||
Creates organization memberships in a background job, and returns the job status | ||
Creates organization memberships in a background job, and returns a future of the job status | ||
Creates organizations in a background job, and returns the job status | ||
Creates organizations in a background job, and returns a future of the job status | ||
Creates a Help Center permission group, which defines which agents can edit and publish articles | ||
Creates a request, which is a ticket as the end user who requests it sees it | ||
Creates a satisfaction rating of a solved ticket, as the requester of the ticket | ||
Creates a Help Center section in the category given by the category ID of the section | ||
Creates a translation of a Help Center section | ||
Creates a target; Zendesk no longer supports URL and branded targets since October 2024 (use Zendesk webhooks instead), only email targets | ||
Creates a ticket | ||
Creates a ticket, and returns a future of the created ticket | ||
Creates a ticket field | ||
Creates a ticket form | ||
Creates a ticket from a tweet received by a monitored X (formerly Twitter) handle | ||
Creates a ticket with an idempotency key, and returns the ticket together with whether the request was a duplicate of an earlier one | ||
Creates a ticket with an idempotency key, and returns a future of the ticket together with whether the request was a duplicate of an earlier one | ||
Creates tickets in a background job, up to 100 per call, and returns the job status | ||
Creates tickets in a background job, up to 100 per call, and returns a future of the job status | ||
Creates a forum topic | ||
Creates a ticket trigger | ||
Uploads a file, and returns the upload with the token to attach the file to a ticket comment | ||
Uploads a file as an attachment of a Help Center article | ||
Creates a user | ||
Adds an identity, such as an email address or phone number, to a user | ||
Creates a Help Center user segment, which defines who can view Help Center content | ||
Creates users in a background job, and returns the job status | ||
Creates users in a background job, and returns a future of the job status | ||
Deletes a Help Center article | ||
Deletes an attachment of a Help Center article | ||
Deletes an attachment | ||
Deletes an automation | ||
Deletes a Help Center category | ||
Deletes a Help Center content tag | ||
Deletes a dynamic content item | ||
Deletes a variant of a dynamic content item | ||
Deletes a forum | ||
Deletes a group | ||
Deletes a group membership, which removes an agent from a group | ||
Deletes an organization | ||
Deletes an organization membership, which removes a user from an organization | ||
Deletes organization memberships | ||
Deletes organizations in a background job, and returns the job status | ||
Deletes a Help Center permission group | ||
Deletes a Help Center section | ||
Deletes a suspended ticket | ||
Deletes a target | ||
Deletes a ticket; a deleted ticket can be restored until it is deleted permanently | ||
Deletes a ticket field | ||
Deletes a ticket form | ||
Deletes tickets in a background job, up to 100 per call, and returns the job status | ||
Deletes a forum topic | ||
Deletes a Help Center translation of an article, section or category; the only translation of an item cannot be deleted | ||
Deletes a ticket trigger | ||
Deletes an upload that is not attached to a ticket comment yet | ||
Deletes a user; a deleted user can be deleted permanently afterwards | ||
Deletes an identity of a user | ||
Deletes a Help Center user segment | ||
Deletes users in a background job, and returns the job status | ||
Downloads the content of an attachment to a local file, and returns the path of the file | ||
Executes a view, and returns the first page of its rows with the columns of the view, as an Optional of an ExecutedViewPage | ||
Gets the active ticket triggers | ||
Gets a Help Center article | ||
Searches the Help Center articles | ||
Gets the subscriptions to a Help Center article | ||
Gets the translations of a Help Center article | ||
Gets the Help Center articles: all of them, or those of a locale, a category or a section | ||
Gets the Help Center articles of the en-us locale that have all the given labels | ||
Searches the Help Center articles that have any of the given labels | ||
Gets one page of the Help Center articles | ||
Gets the Help Center articles changed since a given time | ||
Gets the assignable group memberships, of all the groups or of one group | ||
Gets the groups that tickets can be assigned to | ||
Gets the approximate number of tickets assigned to a user | ||
Gets the details of an attachment, with the URL of its content | ||
Gets the attachments of a Help Center article | ||
Gets the user that the component authenticates as | ||
Gets the organizations whose names start with the given text | ||
Gets an automation | ||
Gets all the automations | ||
Gets all the brands | ||
Gets the requests on which the authenticated user is CC’d | ||
Gets all the Help Center categories | ||
Gets a Help Center category | ||
Gets the translations of a Help Center category | ||
Gets the approximate number of tickets on which a user is CC’d | ||
Gets the statuses of the compliance (GDPR) deletion of a user | ||
Gets a Help Center content tag | ||
Gets the Help Center content tags | ||
Gets the user that the component authenticates as | ||
Gets the custom agent roles | ||
Gets the custom ticket statuses | ||
Gets the deleted tickets that are not deleted permanently yet | ||
Gets a dynamic content item | ||
Gets a variant of a dynamic content item | ||
Gets the variants of a dynamic content item | ||
Gets all the dynamic content items | ||
Gets a forum | ||
Gets all the forums, or the forums of a category | ||
Gets a group | ||
Gets a group membership | ||
Gets the group memberships of a user | ||
Gets all the group memberships, or the memberships of a group | ||
Gets an organization membership of a user | ||
Gets the users of a group | ||
Gets all the groups | ||
Gets the locales enabled in the Help Center; deprecated in the SDK, use listHelpCenterLocales instead | ||
Gets the holidays of a business hours schedule | ||
Exports the tickets changed since a given time with the older ticket export endpoint, and returns the JSON response as a Map; prefer getTicketsIncrementally | ||
Gets the links between Zendesk tickets and Jira issues | ||
Gets the current state of a background job, such as one started by createTickets | ||
Gets the current state of a background job, and returns a future of the job status | ||
Gets the current state of several background jobs | ||
Gets the current state of several background jobs, and returns a future of the job statuses | ||
Gets the translation locales available for the account | ||
Gets a macro | ||
Gets all the macros | ||
Gets the open requests of the authenticated user | ||
Gets an organization | ||
Gets the custom organization fields | ||
Gets an organization membership | ||
Gets the organization memberships of a user | ||
Gets an organization membership of a user | ||
Gets all the organization memberships | ||
Gets the memberships of an organization | ||
Gets the organization memberships of a user | ||
Gets the requests of an organization | ||
Gets the tickets of an organization | ||
Gets the users of an organization | ||
Gets all the organizations, or the organizations with the given IDs | ||
Gets the organizations changed since a given time | ||
Gets a Help Center permission group | ||
Gets all the Help Center permission groups | ||
Gets the tickets that the authenticated user viewed recently | ||
Gets a request | ||
Gets a comment of a request | ||
Gets the comments of a request | ||
Gets the requests of the authenticated user | ||
Gets a satisfaction rating | ||
Gets all the satisfaction ratings | ||
Gets a business hours schedule | ||
Gets all the business hours schedules | ||
Searches the tickets, and returns one page of results with the total count and the URL of the next page, as an Optional of a TicketPage | ||
Gets a Help Center section | ||
Gets the subscriptions to a Help Center section | ||
Gets the translations of a Help Center section | ||
Gets the Help Center sections: all of them, or those of a category or a user segment | ||
Gets the solved requests of the authenticated user | ||
Gets the suspended tickets | ||
Gets a target | ||
Gets all the targets; Zendesk no longer supports URL and branded targets since October 2024, only email targets | ||
Gets a ticket | ||
Gets an audit of a ticket | ||
Gets the audits of a ticket, which record the changes of the ticket | ||
Gets the users CC’d on a ticket | ||
Gets the comments of a ticket | ||
Gets a ticket field | ||
Gets all the ticket fields | ||
Gets a ticket form | ||
Gets all the ticket forms | ||
Searches the tickets with the export search, which is not limited to 1000 results | ||
Gets the incidents linked to a problem ticket | ||
Gets a ticket metric | ||
Gets the metrics of a ticket | ||
Gets the metrics of all the tickets | ||
Gets all the tickets, or the tickets with the given IDs | ||
Gets the tickets with an external ID | ||
Gets the approximate number of tickets | ||
Gets the approximate number of tickets of an organization | ||
Searches the tickets, up to 1000 results; use getTicketFromSearchWithExport for more | ||
Gets the tickets changed since a given time; the overload with endTime is deprecated in the SDK | ||
Gets the time zones available for the account | ||
Gets a forum topic | ||
Gets topics: all the forum topics, those of a forum or with the given IDs, or the community topics of a user segment | ||
Gets the forum topics of a user | ||
Gets a ticket trigger | ||
Gets the ticket triggers | ||
Gets the monitored X (formerly Twitter) handles | ||
Gets a user | ||
Gets the tickets on which a user is CC’d | ||
Gets the custom user fields | ||
Gets the identities of a user, such as email addresses and phone numbers | ||
Gets an identity of a user | ||
Gets information related to a user, such as the numbers of tickets the user requested, is assigned or is CC’d on | ||
Gets the tickets requested by a user | ||
Gets the requests of a user | ||
Gets a Help Center user segment | ||
Gets all the Help Center user segments, or the user segments that a user belongs to | ||
Gets the Help Center user segments that apply to the current Guide plan of the account | ||
Gets the Help Center subscriptions of a user | ||
Gets all the users, or the users with the given IDs | ||
Gets the users with the given external IDs | ||
Gets the users with any of the given roles | ||
Gets the users changed since a given time | ||
Gets the tickets of a view | ||
Gets all the views | ||
Imports a ticket, with its comments and its original timestamps, without running triggers | ||
Imports a forum topic | ||
Gets the locales enabled in the Help Center and its default locale | ||
Gets the organizations with an external ID | ||
Searches the users by email address | ||
Gets the users with an external ID | ||
Shows the changes a macro would make to a new ticket, without saving anything | ||
Shows a ticket as it would be after applying a macro, without saving the changes | ||
Makes the comment of an audit of a ticket private | ||
Marks a ticket as spam and suspends its requester | ||
Merges an end user into another end user, and returns the user that remains | ||
Sends a notification to an installed Zendesk app | ||
Permanently deletes a deleted ticket in a background job, and returns the job status; this cannot be undone | ||
Permanently deletes deleted tickets in a background job, up to 100 per call, and returns the job status; this cannot be undone | ||
Permanently deletes a deleted user; this cannot be undone | ||
Creates a ticket in a background job of Zendesk, and returns a future of the job status | ||
Removes tags from an organization, and returns the remaining tags of the organization | ||
Removes tags from a ticket, and returns the remaining tags of the ticket | ||
Removes tags from a forum topic, and returns the remaining tags of the topic | ||
Sends a verification email to an email identity of a user | ||
Sets a new password for a user, as an admin | ||
Searches the ticket triggers by title | ||
Makes a group membership the default group of the agent | ||
Makes an organization membership the default organization of the user | ||
Sets the tags of an organization, replacing all its tags | ||
Sets the tags of a ticket, replacing all its tags | ||
Sets the tags of a forum topic, replacing all its tags | ||
Makes an identity the primary identity of a user, and returns all the identities of the user | ||
Gets the translation of a Help Center article in a locale | ||
Gets the translation of a Help Center category in a locale | ||
Gets the translation of a Help Center section in a locale | ||
Suspends a user, who can then no longer sign in | ||
Marks an audit of a ticket as trusted; this endpoint is no longer in the Zendesk API reference and may fail | ||
Removes a user from an organization | ||
Lifts the suspension of a user | ||
Updates a Help Center article | ||
Updates the translation of a Help Center article in a locale | ||
Updates an automation | ||
Updates a Help Center category | ||
Updates the translation of a Help Center category in a locale | ||
Updates a Help Center content tag | ||
Updates a dynamic content item | ||
Updates a variant of a dynamic content item | ||
Updates a forum | ||
Updates a group | ||
Updates the installation of a Zendesk app, such as its settings | ||
Updates a macro | ||
Updates an organization | ||
Updates organizations in a background job, and returns the job status | ||
Updates organizations in a background job, and returns a future of the job status | ||
Updates a Help Center permission group | ||
Updates a request, such as adding a comment as the end user | ||
Updates a Help Center section | ||
Updates the translation of a Help Center section in a locale | ||
Updates a ticket | ||
Updates a ticket field | ||
Updates a ticket form | ||
Updates tickets in a background job, up to 100 per call, and returns the job status | ||
Updates tickets in a background job, up to 100 per call, and returns a future of the job status | ||
Updates a forum topic | ||
Updates a ticket trigger | ||
Updates a user | ||
Updates an identity of a user | ||
Updates a Help Center user segment | ||
Updates users in a background job, and returns the job status | ||
Updates users in a background job, and returns a future of the job status | ||
Marks an identity of a user as verified | ||
Asks the OAuth token provider of the client for a token up front; does nothing for the client that the component builds from its options, only for a custom zendesk client with a token provider |
Method addTagToOrganisations
Signatures:
-
java.util.List<String> addTagToOrganisations(long id, String[] tags);
The zendesk/addTagToOrganisations API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the organization | Long |
tags | The tags to add | String[] |
Method addTagToTicket
Signatures:
-
java.util.List<String> addTagToTicket(long id, String[] tags);
The zendesk/addTagToTicket API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the ticket | Long |
tags | The tags to add | String[] |
Method addTagToTopics
Signatures:
-
java.util.List<String> addTagToTopics(long id, String[] tags);
The zendesk/addTagToTopics API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the topic | Long |
tags | The tags to add | String[] |
Method associateAttachmentsToArticle
Signatures:
-
void associateAttachmentsToArticle(String idArticle, java.util.List<org.zendesk.client.v2.model.Attachment> attachments);
The zendesk/associateAttachmentsToArticle API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
attachments | The attachments, uploaded before as article attachments that are not associated with an article; only their IDs are used | List |
idArticle | The ID of the article | String |
Method changeUserPassword
Signatures:
-
void changeUserPassword(org.zendesk.client.v2.model.User user, String oldPassword, String newPassword);
The zendesk/changeUserPassword API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
newPassword | The new password | String |
oldPassword | The current password of the user | String |
user | The user; only its ID is used | User |
Method createArticle
Signatures:
-
org.zendesk.client.v2.model.hc.Article createArticle(org.zendesk.client.v2.model.hc.Article article);
-
org.zendesk.client.v2.model.hc.Article createArticle(org.zendesk.client.v2.model.hc.Article article, boolean notifySubscribers);
The zendesk/createArticle API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
article | The article to create, with the ID of its section | Article |
notifySubscribers | Whether Zendesk sends email notifications about the new article to the subscribers of the section | Boolean |
Method createArticleTranslation
Signatures:
-
org.zendesk.client.v2.model.hc.Translation createArticleTranslation(Long articleId, org.zendesk.client.v2.model.hc.Translation translation);
The zendesk/createArticleTranslation API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
articleId | The ID of the article | Long |
translation | The translation to create, with its locale, title and body | Translation |
Method createAutomation
Signatures:
-
org.zendesk.client.v2.model.Automation createAutomation(org.zendesk.client.v2.model.Automation automation);
The zendesk/createAutomation API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
automation | The automation to create | Automation |
Method createCategory
Signatures:
-
org.zendesk.client.v2.model.hc.Category createCategory(org.zendesk.client.v2.model.hc.Category category);
The zendesk/createCategory API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
category | The category to create | Category |
Method createCategoryTranslation
Signatures:
-
org.zendesk.client.v2.model.hc.Translation createCategoryTranslation(Long categoryId, org.zendesk.client.v2.model.hc.Translation translation);
The zendesk/createCategoryTranslation API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
categoryId | The ID of the category | Long |
translation | The translation to create, with its locale and title | Translation |
Method createComment
Signatures:
-
org.zendesk.client.v2.model.Ticket createComment(long ticketId, org.zendesk.client.v2.model.Comment comment);
The zendesk/createComment API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
comment | The comment to add | Comment |
ticketId | The ID of the ticket | Long |
Method createContentTag
Signatures:
-
org.zendesk.client.v2.model.hc.ContentTag createContentTag(org.zendesk.client.v2.model.hc.ContentTag contentTag);
The zendesk/createContentTag API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
contentTag | The content tag to create | ContentTag |
Method createDynamicContentItem
Signatures:
-
org.zendesk.client.v2.model.dynamic.DynamicContentItem createDynamicContentItem(org.zendesk.client.v2.model.dynamic.DynamicContentItem item);
The zendesk/createDynamicContentItem API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
item | The dynamic content item to create, with its variants | DynamicContentItem |
Method createDynamicContentItemVariant
Signatures:
-
org.zendesk.client.v2.model.dynamic.DynamicContentItemVariant createDynamicContentItemVariant(Long itemId, org.zendesk.client.v2.model.dynamic.DynamicContentItemVariant variant);
The zendesk/createDynamicContentItemVariant API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
itemId | The ID of the dynamic content item | Long |
variant | The variant to create | DynamicContentItemVariant |
Method createForum
Signatures:
-
org.zendesk.client.v2.model.Forum createForum(org.zendesk.client.v2.model.Forum forum);
The zendesk/createForum API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
forum | The forum to create | Forum |
Method createGroup
Signatures:
-
org.zendesk.client.v2.model.Group createGroup(org.zendesk.client.v2.model.Group group);
The zendesk/createGroup API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
group | The group to create | Group |
Method createGroupMembership
Signatures:
-
org.zendesk.client.v2.model.GroupMembership createGroupMembership(long user_id, org.zendesk.client.v2.model.GroupMembership groupMembership);
-
org.zendesk.client.v2.model.GroupMembership createGroupMembership(org.zendesk.client.v2.model.GroupMembership groupMembership);
The zendesk/createGroupMembership API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
groupMembership | The group membership to create, with the IDs of the user and the group | GroupMembership |
user_id | The ID of the agent to add to the group | Long |
Method createMacro
Signatures:
-
org.zendesk.client.v2.model.Macro createMacro(org.zendesk.client.v2.model.Macro macro);
The zendesk/createMacro API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
macro | The macro to create | Macro |
Method createOrUpdateOrganization
Signatures:
-
org.zendesk.client.v2.model.Organization createOrUpdateOrganization(org.zendesk.client.v2.model.Organization organization);
The zendesk/createOrUpdateOrganization API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
organization | The organization to create or update | Organization |
Method createOrUpdateUser
Signatures:
-
org.zendesk.client.v2.model.User createOrUpdateUser(org.zendesk.client.v2.model.User user);
The zendesk/createOrUpdateUser API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
user | The user to create or update | User |
Method createOrUpdateUsers
Signatures:
-
org.zendesk.client.v2.model.JobStatus createOrUpdateUsers(java.util.List<org.zendesk.client.v2.model.User> usersList);
-
org.zendesk.client.v2.model.JobStatus createOrUpdateUsers(org.zendesk.client.v2.model.User[] users);
The zendesk/createOrUpdateUsers API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
users | The users to create or update | User[] |
usersList | The users to create or update | List |
Method createOrUpdateUsersAsync
Signatures:
-
org.asynchttpclient.ListenableFuture<org.zendesk.client.v2.model.JobStatus> createOrUpdateUsersAsync(java.util.List<org.zendesk.client.v2.model.User> usersList);
The zendesk/createOrUpdateUsersAsync API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
usersList | The users to create or update | List |
Method createOrganization
Signatures:
-
org.zendesk.client.v2.model.Organization createOrganization(org.zendesk.client.v2.model.Organization organization);
The zendesk/createOrganization API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
organization | The organization to create | Organization |
Method createOrganizationMembership
Signatures:
-
org.zendesk.client.v2.model.OrganizationMembership createOrganizationMembership(long user_id, org.zendesk.client.v2.model.OrganizationMembership organizationMembership);
-
org.zendesk.client.v2.model.OrganizationMembership createOrganizationMembership(org.zendesk.client.v2.model.OrganizationMembership organizationMembership);
The zendesk/createOrganizationMembership API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
organizationMembership | The organization membership to create, with the IDs of the user and the organization | OrganizationMembership |
user_id | The ID of the user to add to the organization | Long |
Method createOrganizationMemberships
Signatures:
-
org.zendesk.client.v2.model.JobStatus createOrganizationMemberships(java.util.List<org.zendesk.client.v2.model.OrganizationMembership> organizationMembershipList);
-
org.zendesk.client.v2.model.JobStatus createOrganizationMemberships(org.zendesk.client.v2.model.OrganizationMembership[] organizationMemberships);
The zendesk/createOrganizationMemberships API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
organizationMembershipList | The organization memberships to create | List |
organizationMemberships | The organization memberships to create | OrganizationMembership[] |
Method createOrganizationMembershipsAsync
Signatures:
-
org.asynchttpclient.ListenableFuture<org.zendesk.client.v2.model.JobStatus> createOrganizationMembershipsAsync(java.util.List<org.zendesk.client.v2.model.OrganizationMembership> organizationMembershipList);
The zendesk/createOrganizationMembershipsAsync API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
organizationMembershipList | The organization memberships to create | List |
Method createOrganizations
Signatures:
-
org.zendesk.client.v2.model.JobStatus createOrganizations(java.util.List<org.zendesk.client.v2.model.Organization> organizationList);
-
org.zendesk.client.v2.model.JobStatus createOrganizations(org.zendesk.client.v2.model.Organization[] organizations);
The zendesk/createOrganizations API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
organizationList | The organizations to create | List |
organizations | The organizations to create | Organization[] |
Method createOrganizationsAsync
Signatures:
-
org.asynchttpclient.ListenableFuture<org.zendesk.client.v2.model.JobStatus> createOrganizationsAsync(java.util.List<org.zendesk.client.v2.model.Organization> organizationList);
The zendesk/createOrganizationsAsync API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
organizationList | The organizations to create | List |
Method createPermissionGroup
Signatures:
-
org.zendesk.client.v2.model.hc.PermissionGroup createPermissionGroup(org.zendesk.client.v2.model.hc.PermissionGroup permissionGroup);
The zendesk/createPermissionGroup API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
permissionGroup | The permission group to create | PermissionGroup |
Method createRequest
Signatures:
-
org.zendesk.client.v2.model.Request createRequest(org.zendesk.client.v2.model.Request request);
The zendesk/createRequest API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
request | The request to create | Request |
Method createSatisfactionRating
Signatures:
-
org.zendesk.client.v2.model.SatisfactionRating createSatisfactionRating(long ticketId, org.zendesk.client.v2.model.SatisfactionRating satisfactionRating);
-
org.zendesk.client.v2.model.SatisfactionRating createSatisfactionRating(org.zendesk.client.v2.model.Ticket ticket, org.zendesk.client.v2.model.SatisfactionRating satisfactionRating);
The zendesk/createSatisfactionRating API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
satisfactionRating | The satisfaction rating to create, with its score and comment | SatisfactionRating |
ticket | The ticket; only its ID is used | Ticket |
ticketId | The ID of the ticket | Long |
Method createSection
Signatures:
-
org.zendesk.client.v2.model.hc.Section createSection(org.zendesk.client.v2.model.hc.Section section);
The zendesk/createSection API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
section | The section to create, with the ID of its category | Section |
Method createSectionTranslation
Signatures:
-
org.zendesk.client.v2.model.hc.Translation createSectionTranslation(Long sectionId, org.zendesk.client.v2.model.hc.Translation translation);
The zendesk/createSectionTranslation API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
sectionId | The ID of the section | Long |
translation | The translation to create, with its locale and title | Translation |
Method createTarget
Signatures:
-
org.zendesk.client.v2.model.targets.Target createTarget(org.zendesk.client.v2.model.targets.Target target);
The zendesk/createTarget API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
target | The target to create | Target |
Method createTicket
Signatures:
-
org.zendesk.client.v2.model.Ticket createTicket(org.zendesk.client.v2.model.Ticket ticket);
The zendesk/createTicket API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
ticket | The ticket to create | Ticket |
Method createTicketAsync
Signatures:
-
org.asynchttpclient.ListenableFuture<org.zendesk.client.v2.model.Ticket> createTicketAsync(org.zendesk.client.v2.model.Ticket ticket);
The zendesk/createTicketAsync API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
ticket | The ticket to create | Ticket |
Method createTicketField
Signatures:
-
org.zendesk.client.v2.model.Field createTicketField(org.zendesk.client.v2.model.Field field);
The zendesk/createTicketField API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
field | The ticket field to create | Field |
Method createTicketForm
Signatures:
-
org.zendesk.client.v2.model.TicketForm createTicketForm(org.zendesk.client.v2.model.TicketForm ticketForm);
The zendesk/createTicketForm API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
ticketForm | The ticket form to create | TicketForm |
Method createTicketFromTweet
Signatures:
-
org.zendesk.client.v2.model.Ticket createTicketFromTweet(long tweetId, long monitorId);
The zendesk/createTicketFromTweet API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
monitorId | The ID of the monitored X handle that received the tweet | Long |
tweetId | The ID of the tweet to create the ticket from | Long |
Method createTicketIdempotent
Signatures:
-
org.zendesk.client.v2.model.IdempotentResult<org.zendesk.client.v2.model.Ticket> createTicketIdempotent(org.zendesk.client.v2.model.Ticket ticket, String idempotencyKey);
The zendesk/createTicketIdempotent API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
idempotencyKey | The idempotency key, sent as the Idempotency-Key header: a repeated request with the same key returns the ticket of the first request instead of creating another one | String |
ticket | The ticket to create | Ticket |
Method createTicketIdempotentAsync
Signatures:
-
org.asynchttpclient.ListenableFuture<org.zendesk.client.v2.model.IdempotentResult<org.zendesk.client.v2.model.Ticket>> createTicketIdempotentAsync(org.zendesk.client.v2.model.Ticket ticket, String idempotencyKey);
The zendesk/createTicketIdempotentAsync API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
idempotencyKey | The idempotency key, sent as the Idempotency-Key header: a repeated request with the same key returns the ticket of the first request instead of creating another one | String |
ticket | The ticket to create | Ticket |
Method createTickets
Signatures:
-
org.zendesk.client.v2.model.JobStatus createTickets(java.util.List<org.zendesk.client.v2.model.Ticket> ticketList);
-
org.zendesk.client.v2.model.JobStatus createTickets(org.zendesk.client.v2.model.Ticket[] tickets);
The zendesk/createTickets API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
ticketList | The tickets to create | List |
tickets | The tickets to create | Ticket[] |
Method createTicketsAsync
Signatures:
-
org.asynchttpclient.ListenableFuture<org.zendesk.client.v2.model.JobStatus> createTicketsAsync(java.util.List<org.zendesk.client.v2.model.Ticket> ticketList);
The zendesk/createTicketsAsync API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
ticketList | The tickets to create | List |
Method createTopic
Signatures:
-
org.zendesk.client.v2.model.Topic createTopic(org.zendesk.client.v2.model.Topic topic);
The zendesk/createTopic API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
topic | The topic to create | Topic |
Method createTrigger
Signatures:
-
org.zendesk.client.v2.model.Trigger createTrigger(org.zendesk.client.v2.model.Trigger trigger);
The zendesk/createTrigger API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
trigger | The trigger to create | Trigger |
Method createUpload
Signatures:
-
org.zendesk.client.v2.model.Attachment.Upload createUpload(String fileName, String contentType, byte[] content);
-
org.zendesk.client.v2.model.Attachment.Upload createUpload(String fileName, byte[] content);
-
org.zendesk.client.v2.model.Attachment.Upload createUpload(String token, String fileName, String contentType, byte[] content);
The zendesk/createUpload API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
content | The content of the file | byte[] |
contentType | The media type of the file; application/binary when not set | String |
fileName | The name of the file | String |
token | The token of an earlier upload, to add this file to the same upload; a new upload is started when not set | String |
Method createUploadArticle
Signatures:
-
org.zendesk.client.v2.model.hc.ArticleAttachments createUploadArticle(long articleId0, java.io.File file);
-
org.zendesk.client.v2.model.hc.ArticleAttachments createUploadArticle(long articleId0, java.io.File file, boolean inline);
The zendesk/createUploadArticle API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
articleId0 | The ID of the article | Long |
file | The file to upload | File |
inline | Whether the file is an inline attachment, which the HTML body of the article can show, instead of an attachment listed with the article; false when not set | Boolean |
Method createUser
Signatures:
-
org.zendesk.client.v2.model.User createUser(org.zendesk.client.v2.model.User user);
The zendesk/createUser API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
user | The user to create | User |
Method createUserIdentity
Signatures:
-
org.zendesk.client.v2.model.Identity createUserIdentity(long userId, org.zendesk.client.v2.model.Identity identity);
-
org.zendesk.client.v2.model.Identity createUserIdentity(org.zendesk.client.v2.model.User user, org.zendesk.client.v2.model.Identity identity);
The zendesk/createUserIdentity API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
identity | The identity to add | Identity |
user | The user; only its ID is used | User |
userId | The ID of the user | Long |
Method createUserSegment
Signatures:
-
org.zendesk.client.v2.model.hc.UserSegment createUserSegment(org.zendesk.client.v2.model.hc.UserSegment userSegment);
The zendesk/createUserSegment API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
userSegment | The user segment to create | UserSegment |
Method createUsers
Signatures:
-
org.zendesk.client.v2.model.JobStatus createUsers(java.util.List<org.zendesk.client.v2.model.User> userList);
-
org.zendesk.client.v2.model.JobStatus createUsers(org.zendesk.client.v2.model.User[] users);
The zendesk/createUsers API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
userList | The users to create | List |
users | The users to create | User[] |
Method createUsersAsync
Signatures:
-
org.asynchttpclient.ListenableFuture<org.zendesk.client.v2.model.JobStatus> createUsersAsync(java.util.List<org.zendesk.client.v2.model.User> userList);
The zendesk/createUsersAsync API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
userList | The users to create | List |
Method deleteArticle
Signatures:
-
void deleteArticle(org.zendesk.client.v2.model.hc.Article article);
The zendesk/deleteArticle API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
article | The article to delete; only its ID is used | Article |
Method deleteArticleAttachment
Signatures:
-
void deleteArticleAttachment(long id);
-
void deleteArticleAttachment(org.zendesk.client.v2.model.hc.ArticleAttachments articleAttachments);
The zendesk/deleteArticleAttachment API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
articleAttachments | The article attachment to delete; only its ID is used | ArticleAttachments |
id | The ID of the article attachment | Long |
Method deleteAttachment
Signatures:
-
void deleteAttachment(long id);
-
void deleteAttachment(org.zendesk.client.v2.model.Attachment attachment);
The zendesk/deleteAttachment API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
attachment | The attachment; only its ID is used | Attachment |
id | The ID of the attachment | Long |
Method deleteAutomation
Signatures:
-
void deleteAutomation(long automationId0);
The zendesk/deleteAutomation API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
automationId0 | The ID of the automation | Long |
Method deleteCategory
Signatures:
-
void deleteCategory(org.zendesk.client.v2.model.hc.Category category);
The zendesk/deleteCategory API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
category | The category to delete; only its ID is used | Category |
Method deleteContentTag
Signatures:
-
void deleteContentTag(org.zendesk.client.v2.model.hc.ContentTag contentTag);
The zendesk/deleteContentTag API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
contentTag | The content tag to delete; only its ID is used | ContentTag |
Method deleteDynamicContentItem
Signatures:
-
void deleteDynamicContentItem(org.zendesk.client.v2.model.dynamic.DynamicContentItem item);
The zendesk/deleteDynamicContentItem API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
item | The dynamic content item to delete; only its ID is used | DynamicContentItem |
Method deleteDynamicContentItemVariant
Signatures:
-
void deleteDynamicContentItemVariant(Long itemId, org.zendesk.client.v2.model.dynamic.DynamicContentItemVariant variant);
The zendesk/deleteDynamicContentItemVariant API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
itemId | The ID of the dynamic content item | Long |
variant | The variant to delete; only its ID is used | DynamicContentItemVariant |
Method deleteForum
Signatures:
-
void deleteForum(org.zendesk.client.v2.model.Forum forum);
The zendesk/deleteForum API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
forum | The forum to delete; only its ID is used | Forum |
Method deleteGroup
Signatures:
-
void deleteGroup(long id);
-
void deleteGroup(org.zendesk.client.v2.model.Group group);
The zendesk/deleteGroup API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
group | The group to delete; only its ID is used | Group |
id | The ID of the group | Long |
Method deleteGroupMembership
Signatures:
-
void deleteGroupMembership(long id);
-
void deleteGroupMembership(long user_id, long group_membership_id);
-
void deleteGroupMembership(long user_id, org.zendesk.client.v2.model.GroupMembership groupMembership);
-
void deleteGroupMembership(org.zendesk.client.v2.model.GroupMembership groupMembership);
The zendesk/deleteGroupMembership API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
groupMembership | The group membership to delete; only its ID is used | GroupMembership |
group_membership_id | The ID of the group membership | Long |
id | The ID of the group membership | Long |
user_id | The ID of the user | Long |
Method deleteOrganization
Signatures:
-
void deleteOrganization(long id);
-
void deleteOrganization(org.zendesk.client.v2.model.Organization organization);
The zendesk/deleteOrganization API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the organization | Long |
organization | The organization to delete; only its ID is used | Organization |
Method deleteOrganizationMembership
Signatures:
-
void deleteOrganizationMembership(long id);
-
void deleteOrganizationMembership(long user_id, long organization_membership_id);
-
void deleteOrganizationMembership(long user_id, org.zendesk.client.v2.model.OrganizationMembership organizationMembership);
The zendesk/deleteOrganizationMembership API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the organization membership | Long |
organizationMembership | The organization membership to delete; only its ID is used | OrganizationMembership |
organization_membership_id | The ID of the organization membership | Long |
user_id | The ID of the user | Long |
Method deleteOrganizationMemberships
Signatures:
-
void deleteOrganizationMemberships(long id, long[] ids);
The zendesk/deleteOrganizationMemberships API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the first organization membership to delete | Long |
ids | The IDs of more organization memberships to delete | long[] |
Method deleteOrganizations
Signatures:
-
org.zendesk.client.v2.model.JobStatus deleteOrganizations(long[] ids);
The zendesk/deleteOrganizations API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
ids | The IDs of the organizations to delete | long[] |
Method deletePermissionGroup
Signatures:
-
void deletePermissionGroup(long id);
-
void deletePermissionGroup(org.zendesk.client.v2.model.hc.PermissionGroup permissionGroup);
The zendesk/deletePermissionGroup API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the permission group | Long |
permissionGroup | The permission group to delete; only its ID is used | PermissionGroup |
Method deleteSection
Signatures:
-
void deleteSection(org.zendesk.client.v2.model.hc.Section section);
The zendesk/deleteSection API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
section | The section to delete; only its ID is used | Section |
Method deleteSuspendedTicket
Signatures:
-
void deleteSuspendedTicket(long id);
-
void deleteSuspendedTicket(org.zendesk.client.v2.model.SuspendedTicket suspendedTicket);
The zendesk/deleteSuspendedTicket API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the suspended ticket | Long |
suspendedTicket | The suspended ticket to delete; only its ID is used | SuspendedTicket |
Method deleteTarget
Signatures:
-
void deleteTarget(long targetId);
The zendesk/deleteTarget API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
targetId | The ID of the target | Long |
Method deleteTicket
Signatures:
-
void deleteTicket(long id);
-
void deleteTicket(org.zendesk.client.v2.model.Ticket ticket);
The zendesk/deleteTicket API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the ticket | Long |
ticket | The ticket to delete; only its ID is used | Ticket |
Method deleteTicketField
Signatures:
-
void deleteTicketField(long id);
-
void deleteTicketField(org.zendesk.client.v2.model.Field field);
The zendesk/deleteTicketField API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
field | The ticket field to delete; only its ID is used | Field |
id | The ID of the ticket field | Long |
Method deleteTicketForm
Signatures:
-
void deleteTicketForm(long id);
-
void deleteTicketForm(org.zendesk.client.v2.model.TicketForm ticketForm);
The zendesk/deleteTicketForm API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the ticket form | Long |
ticketForm | The ticket form to delete; only its ID is used | TicketForm |
Method deleteTickets
Signatures:
-
org.zendesk.client.v2.model.JobStatus deleteTickets(long id, long[] ids);
The zendesk/deleteTickets API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the first ticket to delete | Long |
ids | The IDs of more tickets to delete | long[] |
Method deleteTopic
Signatures:
-
void deleteTopic(org.zendesk.client.v2.model.Topic topic);
The zendesk/deleteTopic API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
topic | The topic to delete; only its ID is used | Topic |
Method deleteTranslation
Signatures:
-
void deleteTranslation(Long translationId);
-
void deleteTranslation(org.zendesk.client.v2.model.hc.Translation translation);
The zendesk/deleteTranslation API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
translation | The translation to delete; only its ID is used | Translation |
translationId | The ID of the translation | Long |
Method deleteTrigger
Signatures:
-
void deleteTrigger(long triggerId);
The zendesk/deleteTrigger API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
triggerId | The ID of the trigger | Long |
Method deleteUpload
Signatures:
-
void deleteUpload(String token);
-
void deleteUpload(org.zendesk.client.v2.model.Attachment.Upload upload);
The zendesk/deleteUpload API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
token | The token of the upload | String |
upload | The upload to delete; only its token is used | Upload |
Method deleteUser
Signatures:
-
void deleteUser(long id);
-
void deleteUser(org.zendesk.client.v2.model.User user);
The zendesk/deleteUser API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the user | Long |
user | The user; only its ID is used | User |
Method deleteUserIdentity
Signatures:
-
void deleteUserIdentity(long userId, long identityId);
-
void deleteUserIdentity(org.zendesk.client.v2.model.User user, long identityId);
-
void deleteUserIdentity(org.zendesk.client.v2.model.User user, org.zendesk.client.v2.model.Identity identity);
The zendesk/deleteUserIdentity API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
identity | The identity of the user; only its ID is used | Identity |
identityId | The ID of the identity of the user | Long |
user | The user; only its ID is used | User |
userId | The ID of the user | Long |
Method deleteUserSegment
Signatures:
-
void deleteUserSegment(long id);
-
void deleteUserSegment(org.zendesk.client.v2.model.hc.UserSegment userSegment);
The zendesk/deleteUserSegment API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the user segment | Long |
userSegment | The user segment to delete; only its ID is used | UserSegment |
Method deleteUsers
Signatures:
-
org.zendesk.client.v2.model.JobStatus deleteUsers(long[] ids);
The zendesk/deleteUsers API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
ids | The IDs of the users to delete | long[] |
Method downloadAttachment
Signatures:
-
java.nio.file.Path downloadAttachment(long attachmentId, java.nio.file.Path destination);
-
java.nio.file.Path downloadAttachment(org.zendesk.client.v2.model.Attachment attachment, java.nio.file.Path destination);
The zendesk/downloadAttachment API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
attachment | The attachment; only its ID is used, and its details are fetched again to get the URL of the content | Attachment |
attachmentId | The ID of the attachment | Long |
destination | The local file to write the content to; an existing file is overwritten and missing parent directories are created | Path |
Method executeView
Signatures:
-
java.util.Optional<org.zendesk.client.v2.model.views.ExecutedViewPage<V>> executeView(long id, Class<org.zendesk.client.v2.model.views.ViewRow> clazz);
The zendesk/executeView API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
clazz | The class to read each row of the view into: ViewRow or a subclass of it | Class |
id | The ID of the view | Long |
Method getActiveTriggers
Signatures:
-
Iterable<org.zendesk.client.v2.model.Trigger> getActiveTriggers();
The zendesk/getActiveTriggers API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getArticle
Signatures:
-
org.zendesk.client.v2.model.hc.Article getArticle(long id);
The zendesk/getArticle API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the article | Long |
Method getArticleFromSearch
Signatures:
-
Iterable<org.zendesk.client.v2.model.hc.Article> getArticleFromSearch(String searchTerm);
-
Iterable<org.zendesk.client.v2.model.hc.Article> getArticleFromSearch(String searchTerm, Long sectionId);
The zendesk/getArticleFromSearch API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
searchTerm | The text to search for | String |
sectionId | The ID of the section to search in | Long |
Method getArticleSubscriptions
Signatures:
-
Iterable<org.zendesk.client.v2.model.hc.Subscription> getArticleSubscriptions(Long articleId);
-
Iterable<org.zendesk.client.v2.model.hc.Subscription> getArticleSubscriptions(Long articleId, String locale);
The zendesk/getArticleSubscriptions API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
articleId | The ID of the article | Long |
locale | The locale of the article, such as en-us | String |
Method getArticleTranslations
Signatures:
-
Iterable<org.zendesk.client.v2.model.hc.Translation> getArticleTranslations(Long articleId);
The zendesk/getArticleTranslations API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
articleId | The ID of the article | Long |
Method getArticles
Signatures:
-
Iterable<org.zendesk.client.v2.model.hc.Article> getArticles();
-
Iterable<org.zendesk.client.v2.model.hc.Article> getArticles(String locale);
-
Iterable<org.zendesk.client.v2.model.hc.Article> getArticles(org.zendesk.client.v2.model.hc.Category category);
-
Iterable<org.zendesk.client.v2.model.hc.Article> getArticles(org.zendesk.client.v2.model.hc.Category category, String locale);
-
Iterable<org.zendesk.client.v2.model.hc.Article> getArticles(org.zendesk.client.v2.model.hc.Section section);
-
Iterable<org.zendesk.client.v2.model.hc.Article> getArticles(org.zendesk.client.v2.model.hc.Section section, String locale);
The zendesk/getArticles API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
category | The category whose articles to get; only its ID is used | Category |
locale | The locale of the articles to get, such as en-us | String |
section | The section whose articles to get; only its ID is used | Section |
Method getArticlesFromAllLabels
Signatures:
-
Iterable<org.zendesk.client.v2.model.hc.Article> getArticlesFromAllLabels(java.util.List<String> labels);
The zendesk/getArticlesFromAllLabels API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
labels | The labels that the articles must all have, up to 10 | List |
Method getArticlesFromAnyLabels
Signatures:
-
Iterable<org.zendesk.client.v2.model.hc.Article> getArticlesFromAnyLabels(java.util.List<String> labels);
The zendesk/getArticlesFromAnyLabels API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
labels | The labels to search the articles by | List |
Method getArticlesFromPage
Signatures:
-
java.util.List<org.zendesk.client.v2.model.hc.Article> getArticlesFromPage(int page);
The zendesk/getArticlesFromPage API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
page | The number of the page, starting at 1 | Integer |
Method getArticlesIncrementally
Signatures:
-
Iterable<org.zendesk.client.v2.model.hc.Article> getArticlesIncrementally(java.util.Date startTime);
The zendesk/getArticlesIncrementally API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
startTime | The time to start the export from: only the items changed since then are returned | Date |
Method getAssignableGroupMemberships
Signatures:
-
Iterable<org.zendesk.client.v2.model.GroupMembership> getAssignableGroupMemberships();
-
Iterable<org.zendesk.client.v2.model.GroupMembership> getAssignableGroupMemberships(long group_id);
The zendesk/getAssignableGroupMemberships API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
group_id | The ID of the group | Long |
Method getAssignableGroups
Signatures:
-
Iterable<org.zendesk.client.v2.model.Group> getAssignableGroups();
The zendesk/getAssignableGroups API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getAssignedTicketsCountForUser
Signatures:
-
org.zendesk.client.v2.model.TicketCount getAssignedTicketsCountForUser(long id);
The zendesk/getAssignedTicketsCountForUser API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the user | Long |
Method getAttachment
Signatures:
-
org.zendesk.client.v2.model.Attachment getAttachment(long id);
-
org.zendesk.client.v2.model.Attachment getAttachment(org.zendesk.client.v2.model.Attachment attachment);
The zendesk/getAttachment API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
attachment | The attachment; only its ID is used | Attachment |
id | The ID of the attachment | Long |
Method getAttachmentsFromArticle
Signatures:
-
java.util.List<org.zendesk.client.v2.model.hc.ArticleAttachments> getAttachmentsFromArticle(Long articleId);
The zendesk/getAttachmentsFromArticle API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
articleId | The ID of the article | Long |
Method getAuthenticatedUser
Signatures:
-
org.zendesk.client.v2.model.User getAuthenticatedUser();
The zendesk/getAuthenticatedUser API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getAutoCompleteOrganizations
Signatures:
-
Iterable<org.zendesk.client.v2.model.Organization> getAutoCompleteOrganizations(String name);
The zendesk/getAutoCompleteOrganizations API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
name | The start of the organization name, at least 2 characters | String |
Method getAutomation
Signatures:
-
org.zendesk.client.v2.model.Automation getAutomation(long id);
The zendesk/getAutomation API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the automation | Long |
Method getAutomations
Signatures:
-
Iterable<org.zendesk.client.v2.model.Automation> getAutomations();
The zendesk/getAutomations API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getBrands
Signatures:
-
Iterable<org.zendesk.client.v2.model.Brand> getBrands();
The zendesk/getBrands API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getCCRequests
Signatures:
-
Iterable<org.zendesk.client.v2.model.Request> getCCRequests();
The zendesk/getCCRequests API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getCategories
Signatures:
-
Iterable<org.zendesk.client.v2.model.hc.Category> getCategories();
The zendesk/getCategories API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getCategory
Signatures:
-
org.zendesk.client.v2.model.hc.Category getCategory(long id);
The zendesk/getCategory API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the category | Long |
Method getCategoryTranslations
Signatures:
-
Iterable<org.zendesk.client.v2.model.hc.Translation> getCategoryTranslations(Long categoryId);
The zendesk/getCategoryTranslations API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
categoryId | The ID of the category | Long |
Method getCcdTicketsCountForUser
Signatures:
-
org.zendesk.client.v2.model.TicketCount getCcdTicketsCountForUser(long id);
The zendesk/getCcdTicketsCountForUser API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the user | Long |
Method getComplianceDeletionStatuses
Signatures:
-
Iterable<org.zendesk.client.v2.model.ComplianceDeletionStatus> getComplianceDeletionStatuses(long userId);
The zendesk/getComplianceDeletionStatuses API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
userId | The ID of the user | Long |
Method getContentTag
Signatures:
-
org.zendesk.client.v2.model.hc.ContentTag getContentTag(String contentTagId);
The zendesk/getContentTag API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
contentTagId | The ID of the content tag | String |
Method getContentTags
Signatures:
-
Iterable<org.zendesk.client.v2.model.hc.ContentTag> getContentTags();
-
Iterable<org.zendesk.client.v2.model.hc.ContentTag> getContentTags(int pageSize);
-
Iterable<org.zendesk.client.v2.model.hc.ContentTag> getContentTags(int pageSize, String namePrefix);
The zendesk/getContentTags API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
namePrefix | Only the content tags whose names start with this prefix are returned | String |
pageSize | The number of content tags per page; 10 when not set | Integer |
Method getCurrentUser
Signatures:
-
org.zendesk.client.v2.model.User getCurrentUser();
The zendesk/getCurrentUser API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getCustomAgentRoles
Signatures:
-
Iterable<org.zendesk.client.v2.model.AgentRole> getCustomAgentRoles();
The zendesk/getCustomAgentRoles API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getCustomTicketStatuses
Signatures:
-
Iterable<org.zendesk.client.v2.model.CustomTicketStatus> getCustomTicketStatuses();
The zendesk/getCustomTicketStatuses API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getDeletedTickets
Signatures:
-
Iterable<org.zendesk.client.v2.model.DeletedTicket> getDeletedTickets();
-
Iterable<org.zendesk.client.v2.model.DeletedTicket> getDeletedTickets(String sortBy, org.zendesk.client.v2.model.SortOrder sortOrder);
The zendesk/getDeletedTickets API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
sortBy | The field to sort by: id, subject, deleted_at, created_at, updated_at, status, requester, requester.name, group, assignee or assignee.name | String |
sortOrder | The sort order, ASCENDING or DESCENDING | SortOrder |
Method getDynamicContentItem
Signatures:
-
org.zendesk.client.v2.model.dynamic.DynamicContentItem getDynamicContentItem(long id);
The zendesk/getDynamicContentItem API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the dynamic content item | Long |
Method getDynamicContentItemVariant
Signatures:
-
org.zendesk.client.v2.model.dynamic.DynamicContentItemVariant getDynamicContentItemVariant(Long itemId, long id);
The zendesk/getDynamicContentItemVariant API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the variant | Long |
itemId | The ID of the dynamic content item | Long |
Method getDynamicContentItemVariants
Signatures:
-
Iterable<org.zendesk.client.v2.model.dynamic.DynamicContentItemVariant> getDynamicContentItemVariants(org.zendesk.client.v2.model.dynamic.DynamicContentItem item);
The zendesk/getDynamicContentItemVariants API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
item | The dynamic content item; only its ID is used | DynamicContentItem |
Method getDynamicContentItems
Signatures:
-
Iterable<org.zendesk.client.v2.model.dynamic.DynamicContentItem> getDynamicContentItems();
The zendesk/getDynamicContentItems API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getForum
Signatures:
-
org.zendesk.client.v2.model.Forum getForum(long id);
The zendesk/getForum API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the forum | Long |
Method getForums
Signatures:
-
Iterable<org.zendesk.client.v2.model.Forum> getForums();
-
java.util.List<org.zendesk.client.v2.model.Forum> getForums(long category_id);
The zendesk/getForums API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
category_id | The ID of the category of the forums | Long |
Method getGroup
Signatures:
-
org.zendesk.client.v2.model.Group getGroup(long id);
The zendesk/getGroup API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the group | Long |
Method getGroupMembership
Signatures:
-
org.zendesk.client.v2.model.GroupMembership getGroupMembership(long id);
-
org.zendesk.client.v2.model.GroupMembership getGroupMembership(long user_id, long group_membership_id);
The zendesk/getGroupMembership API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
group_membership_id | The ID of the group membership | Long |
id | The ID of the group membership | Long |
user_id | The ID of the user | Long |
Method getGroupMembershipByUser
Signatures:
-
Iterable<org.zendesk.client.v2.model.GroupMembership> getGroupMembershipByUser(long user_id);
The zendesk/getGroupMembershipByUser API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
user_id | The ID of the user | Long |
Method getGroupMemberships
Signatures:
-
Iterable<org.zendesk.client.v2.model.GroupMembership> getGroupMemberships();
-
Iterable<org.zendesk.client.v2.model.GroupMembership> getGroupMemberships(long group_id);
The zendesk/getGroupMemberships API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
group_id | The ID of the group | Long |
Method getGroupOrganization
Signatures:
-
org.zendesk.client.v2.model.OrganizationMembership getGroupOrganization(long user_id, long organization_membership_id);
The zendesk/getGroupOrganization API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
organization_membership_id | The ID of the organization membership | Long |
user_id | The ID of the user | Long |
Method getGroupUsers
Signatures:
-
Iterable<org.zendesk.client.v2.model.User> getGroupUsers(long id);
The zendesk/getGroupUsers API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the group | Long |
Method getGroups
Signatures:
-
Iterable<org.zendesk.client.v2.model.Group> getGroups();
The zendesk/getGroups API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getHelpCenterLocales
Signatures:
-
java.util.List<String> getHelpCenterLocales();
The zendesk/getHelpCenterLocales API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getHolidaysForSchedule
Signatures:
-
Iterable<org.zendesk.client.v2.model.schedules.Holiday> getHolidaysForSchedule(Long scheduleId);
-
Iterable<org.zendesk.client.v2.model.schedules.Holiday> getHolidaysForSchedule(org.zendesk.client.v2.model.schedules.Schedule schedule);
The zendesk/getHolidaysForSchedule API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
schedule | The business hours schedule; only its ID is used | Schedule |
scheduleId | The ID of the business hours schedule | Long |
Method getIncrementalTicketsResult
Signatures:
-
java.util.Map getIncrementalTicketsResult(long unixEpochTime);
The zendesk/getIncrementalTicketsResult API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
unixEpochTime | The time to start the export from, in seconds since the Unix epoch | Long |
Method getJiraLinks
Signatures:
-
Iterable<org.zendesk.client.v2.model.JiraLink> getJiraLinks();
The zendesk/getJiraLinks API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getJobStatus
Signatures:
-
org.zendesk.client.v2.model.JobStatus getJobStatus(org.zendesk.client.v2.model.JobStatus status);
The zendesk/getJobStatus API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
status | The job status, as returned by a bulk or async method; only its ID is used | JobStatus |
Method getJobStatusAsync
Signatures:
-
org.asynchttpclient.ListenableFuture<org.zendesk.client.v2.model.JobStatus> getJobStatusAsync(org.zendesk.client.v2.model.JobStatus status);
The zendesk/getJobStatusAsync API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
status | The job status, as returned by a bulk or async method; only its ID is used | JobStatus |
Method getJobStatuses
Signatures:
-
java.util.List<org.zendesk.client.v2.model.JobStatus> getJobStatuses(java.util.List<org.zendesk.client.v2.model.JobStatus> statuses);
The zendesk/getJobStatuses API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
statuses | The job statuses, as returned by bulk or async methods; only their IDs are used | List |
Method getJobStatusesAsync
Signatures:
-
org.asynchttpclient.ListenableFuture<java.util.List<org.zendesk.client.v2.model.JobStatus>> getJobStatusesAsync(java.util.List<org.zendesk.client.v2.model.JobStatus> statuses);
The zendesk/getJobStatusesAsync API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
statuses | The job statuses, as returned by bulk or async methods; only their IDs are used | List |
Method getLocales
Signatures:
-
Iterable<org.zendesk.client.v2.model.Locale> getLocales();
The zendesk/getLocales API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getMacro
Signatures:
-
org.zendesk.client.v2.model.Macro getMacro(long macroId);
The zendesk/getMacro API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
macroId | The ID of the macro | Long |
Method getMacros
Signatures:
-
Iterable<org.zendesk.client.v2.model.Macro> getMacros();
The zendesk/getMacros API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getOpenRequests
Signatures:
-
Iterable<org.zendesk.client.v2.model.Request> getOpenRequests();
The zendesk/getOpenRequests API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getOrganization
Signatures:
-
org.zendesk.client.v2.model.Organization getOrganization(long id);
The zendesk/getOrganization API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the organization | Long |
Method getOrganizationFields
Signatures:
-
Iterable<org.zendesk.client.v2.model.OrganizationField> getOrganizationFields();
The zendesk/getOrganizationFields API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getOrganizationMembership
Signatures:
-
org.zendesk.client.v2.model.OrganizationMembership getOrganizationMembership(long id);
The zendesk/getOrganizationMembership API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the organization membership | Long |
Method getOrganizationMembershipByUser
Signatures:
-
Iterable<org.zendesk.client.v2.model.OrganizationMembership> getOrganizationMembershipByUser(long user_id);
The zendesk/getOrganizationMembershipByUser API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
user_id | The ID of the user | Long |
Method getOrganizationMembershipForUser
Signatures:
-
org.zendesk.client.v2.model.OrganizationMembership getOrganizationMembershipForUser(long user_id, long id);
The zendesk/getOrganizationMembershipForUser API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the organization membership | Long |
user_id | The ID of the user | Long |
Method getOrganizationMemberships
Signatures:
-
Iterable<org.zendesk.client.v2.model.OrganizationMembership> getOrganizationMemberships();
The zendesk/getOrganizationMemberships API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getOrganizationMembershipsForOrg
Signatures:
-
Iterable<org.zendesk.client.v2.model.OrganizationMembership> getOrganizationMembershipsForOrg(long organization_id);
The zendesk/getOrganizationMembershipsForOrg API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
organization_id | The ID of the organization | Long |
Method getOrganizationMembershipsForUser
Signatures:
-
Iterable<org.zendesk.client.v2.model.OrganizationMembership> getOrganizationMembershipsForUser(long user_id);
The zendesk/getOrganizationMembershipsForUser API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
user_id | The ID of the user | Long |
Method getOrganizationRequests
Signatures:
-
Iterable<org.zendesk.client.v2.model.Request> getOrganizationRequests(long organizationId);
The zendesk/getOrganizationRequests API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
organizationId | The ID of the organization | Long |
Method getOrganizationTickets
Signatures:
-
Iterable<org.zendesk.client.v2.model.Ticket> getOrganizationTickets(long organizationId);
The zendesk/getOrganizationTickets API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
organizationId | The ID of the organization | Long |
Method getOrganizationUsers
Signatures:
-
Iterable<org.zendesk.client.v2.model.User> getOrganizationUsers(long id);
The zendesk/getOrganizationUsers API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the organization | Long |
Method getOrganizations
Signatures:
-
Iterable<org.zendesk.client.v2.model.Organization> getOrganizations();
-
java.util.List<org.zendesk.client.v2.model.Organization> getOrganizations(long id, long[] ids);
The zendesk/getOrganizations API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the first organization to get | Long |
ids | The IDs of more organizations to get | long[] |
Method getOrganizationsIncrementally
Signatures:
-
Iterable<org.zendesk.client.v2.model.Organization> getOrganizationsIncrementally(java.util.Date startTime);
The zendesk/getOrganizationsIncrementally API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
startTime | The time to start the export from: only the items changed since then are returned | Date |
Method getPermissionGroup
Signatures:
-
org.zendesk.client.v2.model.hc.PermissionGroup getPermissionGroup(long id);
The zendesk/getPermissionGroup API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the permission group | Long |
Method getPermissionGroups
Signatures:
-
Iterable<org.zendesk.client.v2.model.hc.PermissionGroup> getPermissionGroups();
The zendesk/getPermissionGroups API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getRecentTickets
Signatures:
-
Iterable<org.zendesk.client.v2.model.Ticket> getRecentTickets();
The zendesk/getRecentTickets API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getRequest
Signatures:
-
org.zendesk.client.v2.model.Request getRequest(long id);
The zendesk/getRequest API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the request | Long |
Method getRequestComment
Signatures:
-
org.zendesk.client.v2.model.Comment getRequestComment(long requestId, long commentId);
-
org.zendesk.client.v2.model.Comment getRequestComment(org.zendesk.client.v2.model.Request request, long commentId);
-
org.zendesk.client.v2.model.Comment getRequestComment(org.zendesk.client.v2.model.Request request, org.zendesk.client.v2.model.Comment comment);
The zendesk/getRequestComment API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
comment | The comment; only its ID is used | Comment |
commentId | The ID of the comment | Long |
request | The request; only its ID is used | Request |
requestId | The ID of the request | Long |
Method getRequestComments
Signatures:
-
Iterable<org.zendesk.client.v2.model.Comment> getRequestComments(long id);
-
Iterable<org.zendesk.client.v2.model.Comment> getRequestComments(org.zendesk.client.v2.model.Request request);
The zendesk/getRequestComments API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the request | Long |
request | The request; only its ID is used | Request |
Method getRequests
Signatures:
-
Iterable<org.zendesk.client.v2.model.Request> getRequests();
The zendesk/getRequests API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getSatisfactionRating
Signatures:
-
org.zendesk.client.v2.model.SatisfactionRating getSatisfactionRating(long id);
The zendesk/getSatisfactionRating API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the satisfaction rating | Long |
Method getSatisfactionRatings
Signatures:
-
Iterable<org.zendesk.client.v2.model.SatisfactionRating> getSatisfactionRatings();
The zendesk/getSatisfactionRatings API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getSchedule
Signatures:
-
org.zendesk.client.v2.model.schedules.Schedule getSchedule(Long scheduleId);
-
org.zendesk.client.v2.model.schedules.Schedule getSchedule(org.zendesk.client.v2.model.schedules.Schedule schedule);
The zendesk/getSchedule API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
schedule | The business hours schedule; only its ID is used | Schedule |
scheduleId | The ID of the business hours schedule | Long |
Method getSchedules
Signatures:
-
Iterable<org.zendesk.client.v2.model.schedules.Schedule> getSchedules();
The zendesk/getSchedules API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getSearchTicketResults
Signatures:
-
java.util.Optional<org.zendesk.client.v2.model.TicketPage> getSearchTicketResults(String query, java.util.Map<String, Object> queryParams, String sortBy, org.zendesk.client.v2.model.SortOrder sortOrder);
The zendesk/getSearchTicketResults API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
query | The search query; type:ticket is added to it | String |
queryParams | More query parameters of the search, such as page and per_page | Map |
sortBy | The field to sort by, such as created_at, updated_at, priority, status or ticket_type; used only when sortOrder is set too | String |
sortOrder | The sort order, ASCENDING or DESCENDING; used only when sortBy is set too | SortOrder |
Method getSection
Signatures:
-
org.zendesk.client.v2.model.hc.Section getSection(long id);
The zendesk/getSection API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the section | Long |
Method getSectionSubscriptions
Signatures:
-
Iterable<org.zendesk.client.v2.model.hc.Subscription> getSectionSubscriptions(Long sectionId);
-
Iterable<org.zendesk.client.v2.model.hc.Subscription> getSectionSubscriptions(Long sectionId, String locale);
The zendesk/getSectionSubscriptions API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
locale | The locale of the section, such as en-us | String |
sectionId | The ID of the section | Long |
Method getSectionTranslations
Signatures:
-
Iterable<org.zendesk.client.v2.model.hc.Translation> getSectionTranslations(Long sectionId);
The zendesk/getSectionTranslations API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
sectionId | The ID of the section | Long |
Method getSections
Signatures:
-
Iterable<org.zendesk.client.v2.model.hc.Section> getSections();
-
Iterable<org.zendesk.client.v2.model.hc.Section> getSections(org.zendesk.client.v2.model.hc.Category category);
-
Iterable<org.zendesk.client.v2.model.hc.Section> getSections(org.zendesk.client.v2.model.hc.UserSegment userSegment);
The zendesk/getSections API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
category | The category whose sections to get; only its ID is used | Category |
userSegment | The user segment whose sections to get; only its ID is used | UserSegment |
Method getSolvedRequests
Signatures:
-
Iterable<org.zendesk.client.v2.model.Request> getSolvedRequests();
The zendesk/getSolvedRequests API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getSuspendedTickets
Signatures:
-
Iterable<org.zendesk.client.v2.model.SuspendedTicket> getSuspendedTickets();
The zendesk/getSuspendedTickets API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getTarget
Signatures:
-
org.zendesk.client.v2.model.targets.Target getTarget(long id);
The zendesk/getTarget API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the target | Long |
Method getTargets
Signatures:
-
Iterable<org.zendesk.client.v2.model.targets.Target> getTargets();
The zendesk/getTargets API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getTicket
Signatures:
-
org.zendesk.client.v2.model.Ticket getTicket(long id);
The zendesk/getTicket API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the ticket | Long |
Method getTicketAudit
Signatures:
-
org.zendesk.client.v2.model.Audit getTicketAudit(long ticketId, long auditId);
-
org.zendesk.client.v2.model.Audit getTicketAudit(org.zendesk.client.v2.model.Ticket ticket, long id);
-
org.zendesk.client.v2.model.Audit getTicketAudit(org.zendesk.client.v2.model.Ticket ticket, org.zendesk.client.v2.model.Audit audit);
The zendesk/getTicketAudit API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
audit | The audit of the ticket; only its ID is used | Audit |
auditId | The ID of the audit of the ticket | Long |
id | The ID of the audit | Long |
ticket | The ticket; only its ID is used | Ticket |
ticketId | The ID of the ticket | Long |
Method getTicketAudits
Signatures:
-
Iterable<org.zendesk.client.v2.model.Audit> getTicketAudits(Long ticketId0);
-
Iterable<org.zendesk.client.v2.model.Audit> getTicketAudits(org.zendesk.client.v2.model.Ticket ticket);
The zendesk/getTicketAudits API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
ticket | The ticket; only its ID is used | Ticket |
ticketId0 | The ID of the ticket | Long |
Method getTicketCollaborators
Signatures:
-
java.util.List<org.zendesk.client.v2.model.User> getTicketCollaborators(long id);
The zendesk/getTicketCollaborators API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the ticket | Long |
Method getTicketComments
Signatures:
-
Iterable<org.zendesk.client.v2.model.Comment> getTicketComments(long id);
-
Iterable<org.zendesk.client.v2.model.Comment> getTicketComments(long id, org.zendesk.client.v2.model.SortOrder order);
The zendesk/getTicketComments API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the ticket | Long |
order | The sort order of the comments by creation time, ASCENDING or DESCENDING | SortOrder |
Method getTicketField
Signatures:
-
org.zendesk.client.v2.model.Field getTicketField(long id);
The zendesk/getTicketField API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the ticket field | Long |
Method getTicketFields
Signatures:
-
Iterable<org.zendesk.client.v2.model.Field> getTicketFields();
The zendesk/getTicketFields API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getTicketForm
Signatures:
-
org.zendesk.client.v2.model.TicketForm getTicketForm(long id);
The zendesk/getTicketForm API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the ticket form | Long |
Method getTicketForms
Signatures:
-
java.util.List<org.zendesk.client.v2.model.TicketForm> getTicketForms();
The zendesk/getTicketForms API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getTicketFromSearchWithExport
Signatures:
-
Iterable<org.zendesk.client.v2.model.Ticket> getTicketFromSearchWithExport(String searchTerm);
-
Iterable<org.zendesk.client.v2.model.Ticket> getTicketFromSearchWithExport(String searchTerm, int pageSize);
The zendesk/getTicketFromSearchWithExport API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
pageSize | The number of tickets per page, at most 1000; 100 when not set | Integer |
searchTerm | The search query; only tickets are searched | String |
Method getTicketIncidents
Signatures:
-
Iterable<org.zendesk.client.v2.model.Ticket> getTicketIncidents(long id);
The zendesk/getTicketIncidents API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the problem ticket | Long |
Method getTicketMetric
Signatures:
-
org.zendesk.client.v2.model.Metric getTicketMetric(long id);
The zendesk/getTicketMetric API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the ticket metric | Long |
Method getTicketMetricByTicket
Signatures:
-
org.zendesk.client.v2.model.Metric getTicketMetricByTicket(long id);
The zendesk/getTicketMetricByTicket API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the ticket | Long |
Method getTicketMetrics
Signatures:
-
Iterable<org.zendesk.client.v2.model.Metric> getTicketMetrics();
The zendesk/getTicketMetrics API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getTickets
Signatures:
-
Iterable<org.zendesk.client.v2.model.Ticket> getTickets();
-
java.util.List<org.zendesk.client.v2.model.Ticket> getTickets(long id, long[] ids);
The zendesk/getTickets API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the first ticket to get | Long |
ids | The IDs of more tickets to get, up to 100 in all | long[] |
Method getTicketsByExternalId
Signatures:
-
Iterable<org.zendesk.client.v2.model.Ticket> getTicketsByExternalId(String externalId);
-
Iterable<org.zendesk.client.v2.model.Ticket> getTicketsByExternalId(String externalId, boolean includeArchived);
The zendesk/getTicketsByExternalId API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
externalId | The external ID of the tickets | String |
includeArchived | Whether to search the archived tickets too when no ticket has the external ID; false when not set | Boolean |
Method getTicketsCount
Signatures:
-
org.zendesk.client.v2.model.TicketCount getTicketsCount();
The zendesk/getTicketsCount API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getTicketsCountForOrganization
Signatures:
-
org.zendesk.client.v2.model.TicketCount getTicketsCountForOrganization(long id);
The zendesk/getTicketsCountForOrganization API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the organization | Long |
Method getTicketsFromSearch
Signatures:
-
Iterable<org.zendesk.client.v2.model.Ticket> getTicketsFromSearch(String searchTerm);
The zendesk/getTicketsFromSearch API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
searchTerm | The search query; only tickets are searched | String |
Method getTicketsIncrementally
Signatures:
-
Iterable<org.zendesk.client.v2.model.Ticket> getTicketsIncrementally(java.util.Date startTime);
-
Iterable<org.zendesk.client.v2.model.Ticket> getTicketsIncrementally(java.util.Date startTime, java.util.Date endTime);
The zendesk/getTicketsIncrementally API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
endTime | Deprecated: Zendesk has no end time for the incremental export and ignores it | Date |
startTime | The time to start the export from: only the items changed since then are returned | Date |
Method getTimeZones
Signatures:
-
java.util.List<org.zendesk.client.v2.model.TimeZone> getTimeZones();
The zendesk/getTimeZones API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getTopic
Signatures:
-
org.zendesk.client.v2.model.Topic getTopic(long id);
The zendesk/getTopic API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the topic | Long |
Method getTopics
Signatures:
-
Iterable<org.zendesk.client.v2.model.Topic> getTopics();
-
Iterable<org.zendesk.client.v2.model.Topic> getTopics(org.zendesk.client.v2.model.hc.UserSegment userSegment);
-
java.util.List<org.zendesk.client.v2.model.Topic> getTopics(long forum_id);
-
java.util.List<org.zendesk.client.v2.model.Topic> getTopics(long id, long[] ids);
The zendesk/getTopics API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
forum_id | The ID of the forum whose topics to get | Long |
id | The ID of the first topic to get | Long |
ids | The IDs of more topics to get | long[] |
userSegment | The user segment whose topics to get; only its ID is used | UserSegment |
Method getTopicsByUser
Signatures:
-
java.util.List<org.zendesk.client.v2.model.Topic> getTopicsByUser(long user_id);
The zendesk/getTopicsByUser API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
user_id | The ID of the user | Long |
Method getTrigger
Signatures:
-
org.zendesk.client.v2.model.Trigger getTrigger(long id);
The zendesk/getTrigger API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the trigger | Long |
Method getTriggers
Signatures:
-
Iterable<org.zendesk.client.v2.model.Trigger> getTriggers();
-
Iterable<org.zendesk.client.v2.model.Trigger> getTriggers(String categoryId0, boolean active, String sortBy, org.zendesk.client.v2.model.SortOrder sortOrder);
The zendesk/getTriggers API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
active | Whether to return only the active triggers (true) or only the inactive triggers (false) | Boolean |
categoryId0 | The ID of the trigger category to filter by | String |
sortBy | The field to sort by: alphabetical, created_at, updated_at, usage_1h, usage_24h or usage_7d; by position when not set | String |
sortOrder | The sort order, ASCENDING or DESCENDING | SortOrder |
Method getTwitterMonitors
Signatures:
-
Iterable<org.zendesk.client.v2.model.TwitterMonitor> getTwitterMonitors();
The zendesk/getTwitterMonitors API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getUser
Signatures:
-
org.zendesk.client.v2.model.User getUser(long id);
The zendesk/getUser API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the user | Long |
Method getUserCCDTickets
Signatures:
-
Iterable<org.zendesk.client.v2.model.Ticket> getUserCCDTickets(long userId);
The zendesk/getUserCCDTickets API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
userId | The ID of the user | Long |
Method getUserFields
Signatures:
-
Iterable<org.zendesk.client.v2.model.UserField> getUserFields();
The zendesk/getUserFields API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getUserIdentities
Signatures:
-
java.util.List<org.zendesk.client.v2.model.Identity> getUserIdentities(long userId);
-
java.util.List<org.zendesk.client.v2.model.Identity> getUserIdentities(org.zendesk.client.v2.model.User user);
The zendesk/getUserIdentities API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
user | The user; only its ID is used | User |
userId | The ID of the user | Long |
Method getUserIdentity
Signatures:
-
org.zendesk.client.v2.model.Identity getUserIdentity(long userId, long identityId);
-
org.zendesk.client.v2.model.Identity getUserIdentity(org.zendesk.client.v2.model.User user, long identityId);
-
org.zendesk.client.v2.model.Identity getUserIdentity(org.zendesk.client.v2.model.User user, org.zendesk.client.v2.model.Identity identity);
The zendesk/getUserIdentity API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
identity | The identity of the user; only its ID is used | Identity |
identityId | The ID of the identity of the user | Long |
user | The user; only its ID is used | User |
userId | The ID of the user | Long |
Method getUserRelatedInfo
Signatures:
-
org.zendesk.client.v2.model.UserRelatedInfo getUserRelatedInfo(long userId);
The zendesk/getUserRelatedInfo API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
userId | The ID of the user | Long |
Method getUserRequestedTickets
Signatures:
-
Iterable<org.zendesk.client.v2.model.Ticket> getUserRequestedTickets(long userId);
The zendesk/getUserRequestedTickets API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
userId | The ID of the user | Long |
Method getUserRequests
Signatures:
-
Iterable<org.zendesk.client.v2.model.Request> getUserRequests(long id);
-
Iterable<org.zendesk.client.v2.model.Request> getUserRequests(org.zendesk.client.v2.model.User user);
The zendesk/getUserRequests API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the user | Long |
user | The user; only its ID is used | User |
Method getUserSegment
Signatures:
-
org.zendesk.client.v2.model.hc.UserSegment getUserSegment(long id);
The zendesk/getUserSegment API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the user segment | Long |
Method getUserSegments
Signatures:
-
Iterable<org.zendesk.client.v2.model.hc.UserSegment> getUserSegments();
-
Iterable<org.zendesk.client.v2.model.hc.UserSegment> getUserSegments(long id);
The zendesk/getUserSegments API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the user | Long |
Method getUserSegmentsApplicable
Signatures:
-
Iterable<org.zendesk.client.v2.model.hc.UserSegment> getUserSegmentsApplicable();
The zendesk/getUserSegmentsApplicable API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method getUserSubscriptions
Signatures:
-
Iterable<org.zendesk.client.v2.model.hc.Subscription> getUserSubscriptions(Long userId0);
-
Iterable<org.zendesk.client.v2.model.hc.Subscription> getUserSubscriptions(org.zendesk.client.v2.model.User user);
The zendesk/getUserSubscriptions API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
user | The user; only its ID is used | User |
userId0 | The ID of the user | Long |
Method getUsers
Signatures:
-
Iterable<org.zendesk.client.v2.model.User> getUsers();
-
java.util.List<org.zendesk.client.v2.model.User> getUsers(long id, long[] ids);
The zendesk/getUsers API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the first user to get | Long |
ids | The IDs of more users to get, up to 100 in all | long[] |
Method getUsersByExternalIds
Signatures:
-
java.util.List<org.zendesk.client.v2.model.User> getUsersByExternalIds(String externalId, String[] externalIds);
-
java.util.List<org.zendesk.client.v2.model.User> getUsersByExternalIds(long externalId0, long[] externalId0s);
The zendesk/getUsersByExternalIds API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
externalId | The external ID of the first user to get | String |
externalId0 | The external ID of the first user to get | Long |
externalId0s | The external IDs of more users to get | long[] |
externalIds | The external IDs of more users to get | String[] |
Method getUsersByRole
Signatures:
-
Iterable<org.zendesk.client.v2.model.User> getUsersByRole(String role, String[] roles);
The zendesk/getUsersByRole API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
role | The role of the users to get: end-user, agent or admin | String |
roles | More roles of the users to get | String[] |
Method getUsersIncrementally
Signatures:
-
Iterable<org.zendesk.client.v2.model.User> getUsersIncrementally(java.util.Date startTime);
The zendesk/getUsersIncrementally API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
startTime | The time to start the export from: only the items changed since then are returned | Date |
Method getView
Signatures:
-
Iterable<org.zendesk.client.v2.model.Ticket> getView(long id);
The zendesk/getView API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the view | Long |
Method getViews
Signatures:
-
Iterable<org.zendesk.client.v2.model.View> getViews();
The zendesk/getViews API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method importTicket
Signatures:
-
org.zendesk.client.v2.model.Ticket importTicket(org.zendesk.client.v2.model.TicketImport ticketImport);
The zendesk/importTicket API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
ticketImport | The ticket to import | TicketImport |
Method importTopic
Signatures:
-
org.zendesk.client.v2.model.Topic importTopic(org.zendesk.client.v2.model.Topic topic);
The zendesk/importTopic API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
topic | The topic to import | Topic |
Method listHelpCenterLocales
Signatures:
-
org.zendesk.client.v2.model.hc.Locales listHelpCenterLocales();
The zendesk/listHelpCenterLocales API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
Method lookupOrganizationsByExternalId
Signatures:
-
Iterable<org.zendesk.client.v2.model.Organization> lookupOrganizationsByExternalId(String externalId);
The zendesk/lookupOrganizationsByExternalId API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
externalId | The external ID of the organizations | String |
Method lookupUserByEmail
Signatures:
-
Iterable<org.zendesk.client.v2.model.User> lookupUserByEmail(String email);
The zendesk/lookupUserByEmail API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
The email address to search for | String |
Method lookupUserByExternalId
Signatures:
-
Iterable<org.zendesk.client.v2.model.User> lookupUserByExternalId(String externalId);
The zendesk/lookupUserByExternalId API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
externalId | The external ID of the users | String |
Method macrosShowChangesToTicket
Signatures:
-
org.zendesk.client.v2.model.Ticket macrosShowChangesToTicket(long macroId);
The zendesk/macrosShowChangesToTicket API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
macroId | The ID of the macro | Long |
Method macrosShowTicketAfterChanges
Signatures:
-
org.zendesk.client.v2.model.Ticket macrosShowTicketAfterChanges(long ticketId, long macroId);
The zendesk/macrosShowTicketAfterChanges API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
macroId | The ID of the macro | Long |
ticketId | The ID of the ticket | Long |
Method makePrivateTicketAudit
Signatures:
-
void makePrivateTicketAudit(long ticketId, long auditId);
-
void makePrivateTicketAudit(org.zendesk.client.v2.model.Ticket ticket, long id);
-
void makePrivateTicketAudit(org.zendesk.client.v2.model.Ticket ticket, org.zendesk.client.v2.model.Audit audit);
The zendesk/makePrivateTicketAudit API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
audit | The audit of the ticket; only its ID is used | Audit |
auditId | The ID of the audit of the ticket | Long |
id | The ID of the audit | Long |
ticket | The ticket; only its ID is used | Ticket |
ticketId | The ID of the ticket | Long |
Method markTicketAsSpam
Signatures:
-
void markTicketAsSpam(long id);
-
void markTicketAsSpam(org.zendesk.client.v2.model.Ticket ticket);
The zendesk/markTicketAsSpam API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the ticket | Long |
ticket | The ticket; only its ID is used | Ticket |
Method mergeUsers
Signatures:
-
org.zendesk.client.v2.model.User mergeUsers(long userIdThatWillRemain, long userIdThatWillBeMerged);
The zendesk/mergeUsers API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
userIdThatWillBeMerged | The ID of the end user to merge into the other one | Long |
userIdThatWillRemain | The ID of the end user that remains | Long |
Method notifyApp
Signatures:
-
void notifyApp(String json);
The zendesk/notifyApp API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
json | The JSON body of the notification, with the app ID, the event and the body | String |
Method permanentlyDeleteTicket
Signatures:
-
org.zendesk.client.v2.model.JobStatus permanentlyDeleteTicket(long id);
-
org.zendesk.client.v2.model.JobStatus permanentlyDeleteTicket(org.zendesk.client.v2.model.Ticket ticket);
The zendesk/permanentlyDeleteTicket API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the deleted ticket | Long |
ticket | The ticket; only its ID is used | Ticket |
Method permanentlyDeleteTickets
Signatures:
-
org.zendesk.client.v2.model.JobStatus permanentlyDeleteTickets(long id, long[] ids);
The zendesk/permanentlyDeleteTickets API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the first deleted ticket | Long |
ids | The IDs of more deleted tickets | long[] |
Method permanentlyDeleteUser
Signatures:
-
org.zendesk.client.v2.model.User permanentlyDeleteUser(long id);
-
org.zendesk.client.v2.model.User permanentlyDeleteUser(org.zendesk.client.v2.model.User user);
The zendesk/permanentlyDeleteUser API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the deleted user | Long |
user | The user; only its ID is used | User |
Method queueCreateTicketAsync
Signatures:
-
org.asynchttpclient.ListenableFuture<org.zendesk.client.v2.model.JobStatus> queueCreateTicketAsync(org.zendesk.client.v2.model.Ticket ticket);
The zendesk/queueCreateTicketAsync API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
ticket | The ticket to create | Ticket |
Method removeTagFromOrganisations
Signatures:
-
java.util.List<String> removeTagFromOrganisations(long id, String[] tags);
The zendesk/removeTagFromOrganisations API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the organization | Long |
tags | The tags to remove | String[] |
Method removeTagFromTicket
Signatures:
-
java.util.List<String> removeTagFromTicket(long id, String[] tags);
The zendesk/removeTagFromTicket API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the ticket | Long |
tags | The tags to remove | String[] |
Method removeTagFromTopics
Signatures:
-
java.util.List<String> removeTagFromTopics(long id, String[] tags);
The zendesk/removeTagFromTopics API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the topic | Long |
tags | The tags to remove | String[] |
Method requestVerifyUserIdentity
Signatures:
-
org.zendesk.client.v2.model.Identity requestVerifyUserIdentity(long userId, long identityId);
-
org.zendesk.client.v2.model.Identity requestVerifyUserIdentity(org.zendesk.client.v2.model.User user, long identityId);
-
org.zendesk.client.v2.model.Identity requestVerifyUserIdentity(org.zendesk.client.v2.model.User user, org.zendesk.client.v2.model.Identity identity);
The zendesk/requestVerifyUserIdentity API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
identity | The identity of the user; only its ID is used | Identity |
identityId | The ID of the identity of the user | Long |
user | The user; only its ID is used | User |
userId | The ID of the user | Long |
Method resetUserPassword
Signatures:
-
void resetUserPassword(long id, String password);
-
void resetUserPassword(org.zendesk.client.v2.model.User user, String password);
The zendesk/resetUserPassword API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the user | Long |
password | The new password | String |
user | The user; only its ID is used | User |
Method searchTriggers
Signatures:
-
Iterable<org.zendesk.client.v2.model.Trigger> searchTriggers(String query);
-
Iterable<org.zendesk.client.v2.model.Trigger> searchTriggers(String query, boolean active, String sortBy, org.zendesk.client.v2.model.SortOrder sortOrder);
The zendesk/searchTriggers API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
active | Whether to return only the active triggers (true) or only the inactive triggers (false) | Boolean |
query | The text to search for in the titles of the triggers | String |
sortBy | The field to sort by: alphabetical, created_at, updated_at, usage_1h, usage_24h or usage_7d; by position when not set | String |
sortOrder | The sort order, ASCENDING or DESCENDING | SortOrder |
Method setGroupMembershipAsDefault
Signatures:
-
java.util.List<org.zendesk.client.v2.model.GroupMembership> setGroupMembershipAsDefault(long user_id, org.zendesk.client.v2.model.GroupMembership groupMembership);
The zendesk/setGroupMembershipAsDefault API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
groupMembership | The group membership to make the default; only its ID is used | GroupMembership |
user_id | The ID of the user | Long |
Method setOrganizationMembershipAsDefault
Signatures:
-
java.util.List<org.zendesk.client.v2.model.OrganizationMembership> setOrganizationMembershipAsDefault(long user_id, org.zendesk.client.v2.model.OrganizationMembership organizationMembership);
The zendesk/setOrganizationMembershipAsDefault API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
organizationMembership | The organization membership to make the default; only its ID is used | OrganizationMembership |
user_id | The ID of the user | Long |
Method setTagOnOrganisations
Signatures:
-
java.util.List<String> setTagOnOrganisations(long id, String[] tags);
The zendesk/setTagOnOrganisations API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the organization | Long |
tags | The tags of the organization | String[] |
Method setTagOnTicket
Signatures:
-
java.util.List<String> setTagOnTicket(long id, String[] tags);
The zendesk/setTagOnTicket API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the ticket | Long |
tags | The tags of the ticket | String[] |
Method setTagOnTopics
Signatures:
-
java.util.List<String> setTagOnTopics(long id, String[] tags);
The zendesk/setTagOnTopics API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the topic | Long |
tags | The tags of the topic | String[] |
Method setUserPrimaryIdentity
Signatures:
-
java.util.List<org.zendesk.client.v2.model.Identity> setUserPrimaryIdentity(long userId, long identityId);
-
java.util.List<org.zendesk.client.v2.model.Identity> setUserPrimaryIdentity(org.zendesk.client.v2.model.User user, long identityId);
-
java.util.List<org.zendesk.client.v2.model.Identity> setUserPrimaryIdentity(org.zendesk.client.v2.model.User user, org.zendesk.client.v2.model.Identity identity);
The zendesk/setUserPrimaryIdentity API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
identity | The identity of the user; only its ID is used | Identity |
identityId | The ID of the identity of the user | Long |
user | The user; only its ID is used | User |
userId | The ID of the user | Long |
Method showArticleTranslation
Signatures:
-
org.zendesk.client.v2.model.hc.Translation showArticleTranslation(long articleId0, String locale);
The zendesk/showArticleTranslation API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
articleId0 | The ID of the article | Long |
locale | The locale of the translation, such as en-us | String |
Method showCategoryTranslation
Signatures:
-
org.zendesk.client.v2.model.hc.Translation showCategoryTranslation(long categoryId1, String locale);
The zendesk/showCategoryTranslation API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
categoryId1 | The ID of the category | Long |
locale | The locale of the translation, such as en-us | String |
Method showSectionTranslation
Signatures:
-
org.zendesk.client.v2.model.hc.Translation showSectionTranslation(long sectionId0, String locale);
The zendesk/showSectionTranslation API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
locale | The locale of the translation, such as en-us | String |
sectionId0 | The ID of the section | Long |
Method suspendUser
Signatures:
-
org.zendesk.client.v2.model.User suspendUser(long id);
The zendesk/suspendUser API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the user | Long |
Method trustTicketAudit
Signatures:
-
void trustTicketAudit(long ticketId, long auditId);
-
void trustTicketAudit(org.zendesk.client.v2.model.Ticket ticket, long id);
-
void trustTicketAudit(org.zendesk.client.v2.model.Ticket ticket, org.zendesk.client.v2.model.Audit audit);
The zendesk/trustTicketAudit API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
audit | The audit of the ticket; only its ID is used | Audit |
auditId | The ID of the audit of the ticket | Long |
id | The ID of the audit | Long |
ticket | The ticket; only its ID is used | Ticket |
ticketId | The ID of the ticket | Long |
Method unassignOrganizationMembership
Signatures:
-
void unassignOrganizationMembership(long user_id, long organization_id);
The zendesk/unassignOrganizationMembership API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
organization_id | The ID of the organization | Long |
user_id | The ID of the user | Long |
Method unsuspendUser
Signatures:
-
org.zendesk.client.v2.model.User unsuspendUser(long id);
The zendesk/unsuspendUser API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
id | The ID of the user | Long |
Method updateArticle
Signatures:
-
org.zendesk.client.v2.model.hc.Article updateArticle(org.zendesk.client.v2.model.hc.Article article);
The zendesk/updateArticle API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
article | The article to update, with its ID | Article |
Method updateArticleTranslation
Signatures:
-
org.zendesk.client.v2.model.hc.Translation updateArticleTranslation(Long articleId, String locale, org.zendesk.client.v2.model.hc.Translation translation);
The zendesk/updateArticleTranslation API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
articleId | The ID of the article | Long |
locale | The locale of the translation, such as en-us | String |
translation | The translation with the new values | Translation |
Method updateAutomation
Signatures:
-
org.zendesk.client.v2.model.Automation updateAutomation(Long automationId, org.zendesk.client.v2.model.Automation automation);
The zendesk/updateAutomation API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
automation | The automation with the new values | Automation |
automationId | The ID of the automation | Long |
Method updateCategory
Signatures:
-
org.zendesk.client.v2.model.hc.Category updateCategory(org.zendesk.client.v2.model.hc.Category category);
The zendesk/updateCategory API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
category | The category to update, with its ID | Category |
Method updateCategoryTranslation
Signatures:
-
org.zendesk.client.v2.model.hc.Translation updateCategoryTranslation(Long categoryId, String locale, org.zendesk.client.v2.model.hc.Translation translation);
The zendesk/updateCategoryTranslation API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
categoryId | The ID of the category | Long |
locale | The locale of the translation, such as en-us | String |
translation | The translation with the new values | Translation |
Method updateContentTag
Signatures:
-
org.zendesk.client.v2.model.hc.ContentTag updateContentTag(org.zendesk.client.v2.model.hc.ContentTag contentTag);
The zendesk/updateContentTag API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
contentTag | The content tag to update, with its ID | ContentTag |
Method updateDynamicContentItem
Signatures:
-
org.zendesk.client.v2.model.dynamic.DynamicContentItem updateDynamicContentItem(org.zendesk.client.v2.model.dynamic.DynamicContentItem item);
The zendesk/updateDynamicContentItem API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
item | The dynamic content item to update, with its ID | DynamicContentItem |
Method updateDynamicContentItemVariant
Signatures:
-
org.zendesk.client.v2.model.dynamic.DynamicContentItemVariant updateDynamicContentItemVariant(Long itemId, org.zendesk.client.v2.model.dynamic.DynamicContentItemVariant variant);
The zendesk/updateDynamicContentItemVariant API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
itemId | The ID of the dynamic content item | Long |
variant | The variant to update, with its ID | DynamicContentItemVariant |
Method updateForum
Signatures:
-
org.zendesk.client.v2.model.Forum updateForum(org.zendesk.client.v2.model.Forum forum);
The zendesk/updateForum API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
forum | The forum to update, with its ID | Forum |
Method updateGroup
Signatures:
-
org.zendesk.client.v2.model.Group updateGroup(org.zendesk.client.v2.model.Group group);
The zendesk/updateGroup API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
group | The group to update, with its ID | Group |
Method updateInstallation
Signatures:
-
void updateInstallation(int installationId, String json);
The zendesk/updateInstallation API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
installationId | The ID of the app installation | Integer |
json | The JSON body with the new values of the installation | String |
Method updateMacro
Signatures:
-
org.zendesk.client.v2.model.Macro updateMacro(Long macroId0, org.zendesk.client.v2.model.Macro macro);
The zendesk/updateMacro API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
macro | The macro with the new values | Macro |
macroId0 | The ID of the macro to update | Long |
Method updateOrganization
Signatures:
-
org.zendesk.client.v2.model.Organization updateOrganization(org.zendesk.client.v2.model.Organization organization);
The zendesk/updateOrganization API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
organization | The organization to update, with its ID | Organization |
Method updateOrganizations
Signatures:
-
org.zendesk.client.v2.model.JobStatus updateOrganizations(java.util.List<org.zendesk.client.v2.model.Organization> organizationList);
-
org.zendesk.client.v2.model.JobStatus updateOrganizations(org.zendesk.client.v2.model.Organization[] organizations);
The zendesk/updateOrganizations API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
organizationList | The organizations to update, with their IDs | List |
organizations | The organizations to update, with their IDs | Organization[] |
Method updateOrganizationsAsync
Signatures:
-
org.asynchttpclient.ListenableFuture<org.zendesk.client.v2.model.JobStatus> updateOrganizationsAsync(java.util.List<org.zendesk.client.v2.model.Organization> organizationList);
The zendesk/updateOrganizationsAsync API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
organizationList | The organizations to update, with their IDs | List |
Method updatePermissionGroup
Signatures:
-
org.zendesk.client.v2.model.hc.PermissionGroup updatePermissionGroup(org.zendesk.client.v2.model.hc.PermissionGroup permissionGroup);
The zendesk/updatePermissionGroup API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
permissionGroup | The permission group to update, with its ID | PermissionGroup |
Method updateRequest
Signatures:
-
org.zendesk.client.v2.model.Request updateRequest(org.zendesk.client.v2.model.Request request);
The zendesk/updateRequest API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
request | The request to update, with its ID | Request |
Method updateSection
Signatures:
-
org.zendesk.client.v2.model.hc.Section updateSection(org.zendesk.client.v2.model.hc.Section section);
The zendesk/updateSection API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
section | The section to update, with its ID | Section |
Method updateSectionTranslation
Signatures:
-
org.zendesk.client.v2.model.hc.Translation updateSectionTranslation(Long sectionId, String locale, org.zendesk.client.v2.model.hc.Translation translation);
The zendesk/updateSectionTranslation API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
locale | The locale of the translation, such as en-us | String |
sectionId | The ID of the section | Long |
translation | The translation with the new values | Translation |
Method updateTicket
Signatures:
-
org.zendesk.client.v2.model.Ticket updateTicket(org.zendesk.client.v2.model.Ticket ticket);
The zendesk/updateTicket API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
ticket | The ticket to update, with its ID | Ticket |
Method updateTicketField
Signatures:
-
org.zendesk.client.v2.model.Field updateTicketField(org.zendesk.client.v2.model.Field field);
The zendesk/updateTicketField API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
field | The ticket field to update, with its ID | Field |
Method updateTicketForm
Signatures:
-
org.zendesk.client.v2.model.TicketForm updateTicketForm(org.zendesk.client.v2.model.TicketForm ticketForm);
The zendesk/updateTicketForm API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
ticketForm | The ticket form to update, with its ID | TicketForm |
Method updateTickets
Signatures:
-
org.zendesk.client.v2.model.JobStatus updateTickets(java.util.List<org.zendesk.client.v2.model.Ticket> ticketList);
-
org.zendesk.client.v2.model.JobStatus updateTickets(org.zendesk.client.v2.model.Ticket[] tickets);
The zendesk/updateTickets API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
ticketList | The tickets to update, with their IDs | List |
tickets | The tickets to update, with their IDs | Ticket[] |
Method updateTicketsAsync
Signatures:
-
org.asynchttpclient.ListenableFuture<org.zendesk.client.v2.model.JobStatus> updateTicketsAsync(java.util.List<org.zendesk.client.v2.model.Ticket> ticketList);
The zendesk/updateTicketsAsync API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
ticketList | The tickets to update, with their IDs | List |
Method updateTopic
Signatures:
-
org.zendesk.client.v2.model.Topic updateTopic(org.zendesk.client.v2.model.Topic topic);
The zendesk/updateTopic API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
topic | The topic to update, with its ID | Topic |
Method updateTrigger
Signatures:
-
org.zendesk.client.v2.model.Trigger updateTrigger(Long triggerId0, org.zendesk.client.v2.model.Trigger trigger);
The zendesk/updateTrigger API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
trigger | The trigger with the new values | Trigger |
triggerId0 | The ID of the trigger | Long |
Method updateUser
Signatures:
-
org.zendesk.client.v2.model.User updateUser(org.zendesk.client.v2.model.User user);
The zendesk/updateUser API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
user | The user to update, with its ID | User |
Method updateUserIdentity
Signatures:
-
org.zendesk.client.v2.model.Identity updateUserIdentity(long userId, org.zendesk.client.v2.model.Identity identity);
-
org.zendesk.client.v2.model.Identity updateUserIdentity(org.zendesk.client.v2.model.User user, org.zendesk.client.v2.model.Identity identity);
The zendesk/updateUserIdentity API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
identity | The identity to update, with its ID | Identity |
user | The user; only its ID is used | User |
userId | The ID of the user | Long |
Method updateUserSegment
Signatures:
-
org.zendesk.client.v2.model.hc.UserSegment updateUserSegment(org.zendesk.client.v2.model.hc.UserSegment userSegment);
The zendesk/updateUserSegment API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
userSegment | The user segment to update, with its ID | UserSegment |
Method updateUsers
Signatures:
-
org.zendesk.client.v2.model.JobStatus updateUsers(java.util.List<org.zendesk.client.v2.model.User> usersList);
-
org.zendesk.client.v2.model.JobStatus updateUsers(org.zendesk.client.v2.model.User[] users);
The zendesk/updateUsers API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
users | The users to update, with their IDs | User[] |
usersList | The users to update, with their IDs | List |
Method updateUsersAsync
Signatures:
-
org.asynchttpclient.ListenableFuture<org.zendesk.client.v2.model.JobStatus> updateUsersAsync(java.util.List<org.zendesk.client.v2.model.User> usersList);
The zendesk/updateUsersAsync API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
usersList | The users to update, with their IDs | List |
Method verifyUserIdentity
Signatures:
-
org.zendesk.client.v2.model.Identity verifyUserIdentity(long userId, long identityId);
-
org.zendesk.client.v2.model.Identity verifyUserIdentity(org.zendesk.client.v2.model.User user, long identityId);
-
org.zendesk.client.v2.model.Identity verifyUserIdentity(org.zendesk.client.v2.model.User user, org.zendesk.client.v2.model.Identity identity);
The zendesk/verifyUserIdentity API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|---|---|
identity | The identity of the user; only its ID is used | Identity |
identityId | The ID of the identity of the user | Long |
user | The user; only its ID is used | User |
userId | The ID of the user | Long |
Method warmUp
Signatures:
-
void warmUp();
The zendesk/warmUp API method has the parameters listed in the table below:
| Parameter | Description | Type |
|---|
In addition to the parameters above, the zendesk API can also use any of the Query Parameters.
Any of the parameters can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelZendesk.parameter. The inBody parameter overrides message header, i.e., the endpoint parameter inBody=myParameterNameHere would override a CamelZendesk.myParameterNameHere header.
Message Headers
The Zendesk component supports the following message header(s), which is/are listed below:
| Name | Description | Default | Type |
|---|---|---|---|
| Constant: | The prefix of the headers that carry the parameters of the API method: the header CamelZendesk.ticketId holds the ticketId parameter. The name without the dot, such as CamelZendeskTicketId, works too. | Object |
Message Body
The message body at each side of the Zendesk component: Consumer is the body of the messages the consumer creates, Consumer reply the bodies a consumer that answers its caller can reply with, Producer input the bodies the producer can send or write, and Producer output the body after the producer.
| Side | Body | Description |
|---|---|---|
Consumer |
| One message per poll with the return value of the method: a Zendesk model object, such as the Ticket of getTicket. An Iterable or a List, such as the tickets of getTickets, is split into one message per element, and all its pages are read. getIncrementalTicketsResult gives a Map. |
Producer input |
| The body is used only when inBody names a parameter of the method, and must then be of the type of that parameter: a Zendesk model object such as a Ticket for ticket of createTicket, a Long for id, or a byte[] for content of createUpload. JSON text or a Map is not turned into a model object: build it first. Without inBody the arguments come from the options and the CamelZendesk. headers. Not known when |
Producer output |
| The return value of the method: a Zendesk model object, such as the Ticket of getTicket and createTicket; an Iterable for the methods that list, such as getTickets, which reads the pages from Zendesk while it is iterated, with split for example; a List for some, such as the tags of addTagToTicket; a ListenableFuture for the Async methods; a Map for getIncrementalTicketsResult; null for the methods without a result, such as deleteTicket. |
The bodies are the ones with the default options. A side that is not listed is not known, and tooling does not guess it. The carriers, the sides and the tools that use them are described in Message Body Types.
| This is an API-based component, so per-call parameters can be supplied through |
Usage
The server and the credentials are component options, for example in application.properties:
camel.component.zendesk.server-url = https://yourcompany.zendesk.com
camel.component.zendesk.username = {{env:ZENDESK_USERNAME}}
camel.component.zendesk.token = {{env:ZENDESK_TOKEN}} The endpoint is the method of the Zendesk client, and inBody names the method parameter that the message body is. The following route gets the ticket whose id is the message body. The body after the call is the Ticket:
- route:
from:
uri: direct:ticket
steps:
- to:
uri: zendesk:getTicket
parameters:
inBody: id
- log:
message: "Ticket ${body.id}: ${body.subject}"