Camel Components

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, *.yaml files, 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

serverUrl (common)

The URL of the Zendesk account, such as https://yourcompany.zendesk.com. The client adds /api/v2 to it.

String

bridgeErrorHandler (consumer)

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

lazyStartProducer (producer)

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

autowiredEnabled (advanced)

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

configuration (advanced)

Component configuration.

ZendeskConfiguration

zendesk (advanced)

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

oauthToken (security)

The OAuth access token, sent as a bearer token without username. Not used when password is set; takes precedence over token.

String

password (security)

The password of the Zendesk user, sent with username in basic authentication. Takes precedence over oauthToken and token.

String

token (security)

The Zendesk API token, sent with username as username/token in basic authentication. Not used when password or oauthToken is set.

String

username (security)

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

methodName (common)

Required The method of the Zendesk client to call, such as getTicket or createTicket.

Enum values:

  • ADD_TAG_TO_ORGANISATIONS

  • ADD_TAG_TO_TICKET

  • ADD_TAG_TO_TOPICS

  • ASSOCIATE_ATTACHMENTS_TO_ARTICLE

  • CHANGE_USER_PASSWORD

  • CREATE_ARTICLE

  • CREATE_ARTICLE_1

  • CREATE_ARTICLE_TRANSLATION

  • CREATE_AUTOMATION

  • CREATE_CATEGORY

  • CREATE_CATEGORY_TRANSLATION

  • CREATE_COMMENT

  • CREATE_CONTENT_TAG

  • CREATE_DYNAMIC_CONTENT_ITEM

  • CREATE_DYNAMIC_CONTENT_ITEM_VARIANT

  • CREATE_FORUM

  • CREATE_GROUP

  • CREATE_GROUP_MEMBERSHIP

  • CREATE_GROUP_MEMBERSHIP_1

  • CREATE_MACRO

  • CREATE_OR_UPDATE_ORGANIZATION

  • CREATE_OR_UPDATE_USER

  • CREATE_OR_UPDATE_USERS

  • CREATE_OR_UPDATE_USERS_1

  • CREATE_OR_UPDATE_USERS_ASYNC

  • CREATE_ORGANIZATION

  • CREATE_ORGANIZATION_MEMBERSHIP

  • CREATE_ORGANIZATION_MEMBERSHIP_1

  • CREATE_ORGANIZATION_MEMBERSHIPS

  • CREATE_ORGANIZATION_MEMBERSHIPS_1

  • CREATE_ORGANIZATION_MEMBERSHIPS_ASYNC

  • CREATE_ORGANIZATIONS

  • CREATE_ORGANIZATIONS_1

  • CREATE_ORGANIZATIONS_ASYNC

  • CREATE_PERMISSION_GROUP

  • CREATE_REQUEST

  • CREATE_SATISFACTION_RATING

  • CREATE_SATISFACTION_RATING_1

  • CREATE_SECTION

  • CREATE_SECTION_TRANSLATION

  • CREATE_TARGET

  • CREATE_TICKET

  • CREATE_TICKET_ASYNC

  • CREATE_TICKET_FIELD

  • CREATE_TICKET_FORM

  • CREATE_TICKET_FROM_TWEET

  • CREATE_TICKET_IDEMPOTENT

  • CREATE_TICKET_IDEMPOTENT_ASYNC

  • CREATE_TICKETS

  • CREATE_TICKETS_1

  • CREATE_TICKETS_ASYNC

  • CREATE_TOPIC

  • CREATE_TRIGGER

  • CREATE_UPLOAD

  • CREATE_UPLOAD_1

  • CREATE_UPLOAD_2

  • CREATE_UPLOAD_ARTICLE

  • CREATE_UPLOAD_ARTICLE_1

  • CREATE_USER

  • CREATE_USER_IDENTITY

  • CREATE_USER_IDENTITY_1

  • CREATE_USER_SEGMENT

  • CREATE_USERS

  • CREATE_USERS_1

  • CREATE_USERS_ASYNC

  • DELETE_ARTICLE

  • DELETE_ARTICLE_ATTACHMENT

  • DELETE_ARTICLE_ATTACHMENT_1

  • DELETE_ATTACHMENT

  • DELETE_ATTACHMENT_1

  • DELETE_AUTOMATION

  • DELETE_CATEGORY

  • DELETE_CONTENT_TAG

  • DELETE_DYNAMIC_CONTENT_ITEM

  • DELETE_DYNAMIC_CONTENT_ITEM_VARIANT

  • DELETE_FORUM

  • DELETE_GROUP

  • DELETE_GROUP_1

  • DELETE_GROUP_MEMBERSHIP

  • DELETE_GROUP_MEMBERSHIP_1

  • DELETE_GROUP_MEMBERSHIP_2

  • DELETE_GROUP_MEMBERSHIP_3

  • DELETE_ORGANIZATION

  • DELETE_ORGANIZATION_1

  • DELETE_ORGANIZATION_MEMBERSHIP

  • DELETE_ORGANIZATION_MEMBERSHIP_1

  • DELETE_ORGANIZATION_MEMBERSHIP_2

  • DELETE_ORGANIZATION_MEMBERSHIPS

  • DELETE_ORGANIZATIONS

  • DELETE_PERMISSION_GROUP

  • DELETE_PERMISSION_GROUP_1

  • DELETE_SECTION

  • DELETE_SUSPENDED_TICKET

  • DELETE_SUSPENDED_TICKET_1

  • DELETE_TARGET

  • DELETE_TICKET

  • DELETE_TICKET_1

  • DELETE_TICKET_FIELD

  • DELETE_TICKET_FIELD_1

  • DELETE_TICKET_FORM

  • DELETE_TICKET_FORM_1

  • DELETE_TICKETS

  • DELETE_TOPIC

  • DELETE_TRANSLATION

  • DELETE_TRANSLATION_1

  • DELETE_TRIGGER

  • DELETE_UPLOAD

  • DELETE_UPLOAD_1

  • DELETE_USER

  • DELETE_USER_1

  • DELETE_USER_IDENTITY

  • DELETE_USER_IDENTITY_1

  • DELETE_USER_IDENTITY_2

  • DELETE_USER_SEGMENT

  • DELETE_USER_SEGMENT_1

  • DELETE_USERS

  • DOWNLOAD_ATTACHMENT

  • DOWNLOAD_ATTACHMENT_1

  • EXECUTE_VIEW

  • GET_ACTIVE_TRIGGERS

  • GET_ARTICLE

  • GET_ARTICLE_FROM_SEARCH

  • GET_ARTICLE_FROM_SEARCH_1

  • GET_ARTICLE_SUBSCRIPTIONS

  • GET_ARTICLE_SUBSCRIPTIONS_1

  • GET_ARTICLE_TRANSLATIONS

  • GET_ARTICLES

  • GET_ARTICLES_1

  • GET_ARTICLES_2

  • GET_ARTICLES_3

  • GET_ARTICLES_4

  • GET_ARTICLES_5

  • GET_ARTICLES_FROM_ALL_LABELS

  • GET_ARTICLES_FROM_ANY_LABELS

  • GET_ARTICLES_FROM_PAGE

  • GET_ARTICLES_INCREMENTALLY

  • GET_ASSIGNABLE_GROUP_MEMBERSHIPS

  • GET_ASSIGNABLE_GROUP_MEMBERSHIPS_1

  • GET_ASSIGNABLE_GROUPS

  • GET_ASSIGNED_TICKETS_COUNT_FOR_USER

  • GET_ATTACHMENT

  • GET_ATTACHMENT_1

  • GET_ATTACHMENTS_FROM_ARTICLE

  • GET_AUTHENTICATED_USER

  • GET_AUTO_COMPLETE_ORGANIZATIONS

  • GET_AUTOMATION

  • GET_AUTOMATIONS

  • GET_BRANDS

  • GET_CC_REQUESTS

  • GET_CATEGORIES

  • GET_CATEGORY

  • GET_CATEGORY_TRANSLATIONS

  • GET_CCD_TICKETS_COUNT_FOR_USER

  • GET_COMPLIANCE_DELETION_STATUSES

  • GET_CONTENT_TAG

  • GET_CONTENT_TAGS

  • GET_CONTENT_TAGS_1

  • GET_CONTENT_TAGS_2

  • GET_CURRENT_USER

  • GET_CUSTOM_AGENT_ROLES

  • GET_CUSTOM_TICKET_STATUSES

  • GET_DELETED_TICKETS

  • GET_DELETED_TICKETS_1

  • GET_DYNAMIC_CONTENT_ITEM

  • GET_DYNAMIC_CONTENT_ITEM_VARIANT

  • GET_DYNAMIC_CONTENT_ITEM_VARIANTS

  • GET_DYNAMIC_CONTENT_ITEMS

  • GET_FORUM

  • GET_FORUMS

  • GET_FORUMS_1

  • GET_GROUP

  • GET_GROUP_MEMBERSHIP

  • GET_GROUP_MEMBERSHIP_1

  • GET_GROUP_MEMBERSHIP_BY_USER

  • GET_GROUP_MEMBERSHIPS

  • GET_GROUP_MEMBERSHIPS_1

  • GET_GROUP_ORGANIZATION

  • GET_GROUP_USERS

  • GET_GROUPS

  • GET_HELP_CENTER_LOCALES

  • GET_HOLIDAYS_FOR_SCHEDULE

  • GET_HOLIDAYS_FOR_SCHEDULE_1

  • GET_INCREMENTAL_TICKETS_RESULT

  • GET_JIRA_LINKS

  • GET_JOB_STATUS

  • GET_JOB_STATUS_ASYNC

  • GET_JOB_STATUSES

  • GET_JOB_STATUSES_ASYNC

  • GET_LOCALES

  • GET_MACRO

  • GET_MACROS

  • GET_OPEN_REQUESTS

  • GET_ORGANIZATION

  • GET_ORGANIZATION_FIELDS

  • GET_ORGANIZATION_MEMBERSHIP

  • GET_ORGANIZATION_MEMBERSHIP_BY_USER

  • GET_ORGANIZATION_MEMBERSHIP_FOR_USER

  • GET_ORGANIZATION_MEMBERSHIPS

  • GET_ORGANIZATION_MEMBERSHIPS_FOR_ORG

  • GET_ORGANIZATION_MEMBERSHIPS_FOR_USER

  • GET_ORGANIZATION_REQUESTS

  • GET_ORGANIZATION_TICKETS

  • GET_ORGANIZATION_USERS

  • GET_ORGANIZATIONS

  • GET_ORGANIZATIONS_1

  • GET_ORGANIZATIONS_INCREMENTALLY

  • GET_PERMISSION_GROUP

  • GET_PERMISSION_GROUPS

  • GET_RECENT_TICKETS

  • GET_REQUEST

  • GET_REQUEST_COMMENT

  • GET_REQUEST_COMMENT_1

  • GET_REQUEST_COMMENT_2

  • GET_REQUEST_COMMENTS

  • GET_REQUEST_COMMENTS_1

  • GET_REQUESTS

  • GET_SATISFACTION_RATING

  • GET_SATISFACTION_RATINGS

  • GET_SCHEDULE

  • GET_SCHEDULE_1

  • GET_SCHEDULES

  • GET_SEARCH_TICKET_RESULTS

  • GET_SECTION

  • GET_SECTION_SUBSCRIPTIONS

  • GET_SECTION_SUBSCRIPTIONS_1

  • GET_SECTION_TRANSLATIONS

  • GET_SECTIONS

  • GET_SECTIONS_1

  • GET_SECTIONS_2

  • GET_SOLVED_REQUESTS

  • GET_SUSPENDED_TICKETS

  • GET_TARGET

  • GET_TARGETS

  • GET_TICKET

  • GET_TICKET_AUDIT

  • GET_TICKET_AUDIT_1

  • GET_TICKET_AUDIT_2

  • GET_TICKET_AUDITS

  • GET_TICKET_AUDITS_1

  • GET_TICKET_COLLABORATORS

  • GET_TICKET_COMMENTS

  • GET_TICKET_COMMENTS_1

  • GET_TICKET_FIELD

  • GET_TICKET_FIELDS

  • GET_TICKET_FORM

  • GET_TICKET_FORMS

  • GET_TICKET_FROM_SEARCH_WITH_EXPORT

  • GET_TICKET_FROM_SEARCH_WITH_EXPORT_1

  • GET_TICKET_INCIDENTS

  • GET_TICKET_METRIC

  • GET_TICKET_METRIC_BY_TICKET

  • GET_TICKET_METRICS

  • GET_TICKETS

  • GET_TICKETS_1

  • GET_TICKETS_BY_EXTERNAL_ID

  • GET_TICKETS_BY_EXTERNAL_ID_1

  • GET_TICKETS_COUNT

  • GET_TICKETS_COUNT_FOR_ORGANIZATION

  • GET_TICKETS_FROM_SEARCH

  • GET_TICKETS_INCREMENTALLY

  • GET_TICKETS_INCREMENTALLY_1

  • GET_TIME_ZONES

  • GET_TOPIC

  • GET_TOPICS

  • GET_TOPICS_1

  • GET_TOPICS_2

  • GET_TOPICS_3

  • GET_TOPICS_BY_USER

  • GET_TRIGGER

  • GET_TRIGGERS

  • GET_TRIGGERS_1

  • GET_TWITTER_MONITORS

  • GET_USER

  • GET_USER_CCD_TICKETS

  • GET_USER_FIELDS

  • GET_USER_IDENTITIES

  • GET_USER_IDENTITIES_1

  • GET_USER_IDENTITY

  • GET_USER_IDENTITY_1

  • GET_USER_IDENTITY_2

  • GET_USER_RELATED_INFO

  • GET_USER_REQUESTED_TICKETS

  • GET_USER_REQUESTS

  • GET_USER_REQUESTS_1

  • GET_USER_SEGMENT

  • GET_USER_SEGMENTS

  • GET_USER_SEGMENTS_1

  • GET_USER_SEGMENTS_APPLICABLE

  • GET_USER_SUBSCRIPTIONS

  • GET_USER_SUBSCRIPTIONS_1

  • GET_USERS

  • GET_USERS_1

  • GET_USERS_BY_EXTERNAL_IDS

  • GET_USERS_BY_EXTERNAL_IDS_1

  • GET_USERS_BY_ROLE

  • GET_USERS_INCREMENTALLY

  • GET_VIEW

  • GET_VIEWS

  • IMPORT_TICKET

  • IMPORT_TOPIC

  • LIST_HELP_CENTER_LOCALES

  • LOOKUP_ORGANIZATIONS_BY_EXTERNAL_ID

  • LOOKUP_USER_BY_EMAIL

  • LOOKUP_USER_BY_EXTERNAL_ID

  • MACROS_SHOW_CHANGES_TO_TICKET

  • MACROS_SHOW_TICKET_AFTER_CHANGES

  • MAKE_PRIVATE_TICKET_AUDIT

  • MAKE_PRIVATE_TICKET_AUDIT_1

  • MAKE_PRIVATE_TICKET_AUDIT_2

  • MARK_TICKET_AS_SPAM

  • MARK_TICKET_AS_SPAM_1

  • MERGE_USERS

  • NOTIFY_APP

  • PERMANENTLY_DELETE_TICKET

  • PERMANENTLY_DELETE_TICKET_1

  • PERMANENTLY_DELETE_TICKETS

  • PERMANENTLY_DELETE_USER

  • PERMANENTLY_DELETE_USER_1

  • QUEUE_CREATE_TICKET_ASYNC

  • REMOVE_TAG_FROM_ORGANISATIONS

  • REMOVE_TAG_FROM_TICKET

  • REMOVE_TAG_FROM_TOPICS

  • REQUEST_VERIFY_USER_IDENTITY

  • REQUEST_VERIFY_USER_IDENTITY_1

  • REQUEST_VERIFY_USER_IDENTITY_2

  • RESET_USER_PASSWORD

  • RESET_USER_PASSWORD_1

  • SEARCH_TRIGGERS

  • SEARCH_TRIGGERS_1

  • SET_GROUP_MEMBERSHIP_AS_DEFAULT

  • SET_ORGANIZATION_MEMBERSHIP_AS_DEFAULT

  • SET_TAG_ON_ORGANISATIONS

  • SET_TAG_ON_TICKET

  • SET_TAG_ON_TOPICS

  • SET_USER_PRIMARY_IDENTITY

  • SET_USER_PRIMARY_IDENTITY_1

  • SET_USER_PRIMARY_IDENTITY_2

  • SHOW_ARTICLE_TRANSLATION

  • SHOW_CATEGORY_TRANSLATION

  • SHOW_SECTION_TRANSLATION

  • SUSPEND_USER

  • TRUST_TICKET_AUDIT

  • TRUST_TICKET_AUDIT_1

  • TRUST_TICKET_AUDIT_2

  • UNASSIGN_ORGANIZATION_MEMBERSHIP

  • UNSUSPEND_USER

  • UPDATE_ARTICLE

  • UPDATE_ARTICLE_TRANSLATION

  • UPDATE_AUTOMATION

  • UPDATE_CATEGORY

  • UPDATE_CATEGORY_TRANSLATION

  • UPDATE_CONTENT_TAG

  • UPDATE_DYNAMIC_CONTENT_ITEM

  • UPDATE_DYNAMIC_CONTENT_ITEM_VARIANT

  • UPDATE_FORUM

  • UPDATE_GROUP

  • UPDATE_INSTALLATION

  • UPDATE_MACRO

  • UPDATE_ORGANIZATION

  • UPDATE_ORGANIZATIONS

  • UPDATE_ORGANIZATIONS_1

  • UPDATE_ORGANIZATIONS_ASYNC

  • UPDATE_PERMISSION_GROUP

  • UPDATE_REQUEST

  • UPDATE_SECTION

  • UPDATE_SECTION_TRANSLATION

  • UPDATE_TICKET

  • UPDATE_TICKET_FIELD

  • UPDATE_TICKET_FORM

  • UPDATE_TICKETS

  • UPDATE_TICKETS_1

  • UPDATE_TICKETS_ASYNC

  • UPDATE_TOPIC

  • UPDATE_TRIGGER

  • UPDATE_USER

  • UPDATE_USER_IDENTITY

  • UPDATE_USER_IDENTITY_1

  • UPDATE_USER_SEGMENT

  • UPDATE_USERS

  • UPDATE_USERS_1

  • UPDATE_USERS_ASYNC

  • VERIFY_USER_IDENTITY

  • VERIFY_USER_IDENTITY_1

  • VERIFY_USER_IDENTITY_2

  • WARM_UP

ZendeskApiMethod

Query Parameters

Name Description Default Type

inBody (common)

Sets the name of a parameter to be passed in the exchange In Body.

String

serverUrl (common)

The URL of the Zendesk account, such as https://yourcompany.zendesk.com. The client adds /api/v2 to it.

String

sendEmptyMessageWhenIdle (consumer)

If the polling consumer did not poll any files, you can enable this option to send an empty message (no body) instead.

false

boolean

bridgeErrorHandler (consumer (advanced))

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

exceptionHandler (consumer (advanced))

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

exchangePattern (consumer (advanced))

Sets the exchange pattern when the consumer creates an exchange.

Enum values:

  • InOnly

  • InOut

ExchangePattern

pollStrategy (consumer (advanced))

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

lazyStartProducer (producer (advanced))

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

backoffErrorThreshold (scheduler)

The number of subsequent error polls (failed due some error) that should happen before the backoffMultipler should kick-in.

int

backoffIdleThreshold (scheduler)

The number of subsequent idle polls that should happen before the backoffMultipler should kick-in.

int

backoffMultiplier (scheduler)

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

delay (scheduler)

Milliseconds before the next poll.

500

long

greedy (scheduler)

If greedy is enabled, then the ScheduledPollConsumer will run immediately again, if the previous run polled 1 or more messages.

false

boolean

healthCheckMaxPollDuration (scheduler)

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

initialDelay (scheduler)

Milliseconds before the first poll starts.

1000

long

repeatCount (scheduler)

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

runLoggingLevel (scheduler)

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

  • DEBUG

  • INFO

  • WARN

  • ERROR

  • OFF

TRACE

LoggingLevel

scheduledExecutorService (scheduler)

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

scheduler (scheduler)

To use a cron scheduler from either camel-spring or camel-quartz component. Use value spring or quartz for built in scheduler.

none

Object

schedulerProperties (scheduler)

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

startScheduler (scheduler)

Whether the scheduler should be auto started.

true

boolean

timeUnit (scheduler)

Time unit for initialDelay and delay options.

Enum values:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

MILLISECONDS

TimeUnit

useFixedDelay (scheduler)

Controls if fixed delay or fixed rate is used. See ScheduledExecutorService in JDK for details.

true

boolean

oauthToken (security)

The OAuth access token, sent as a bearer token without username. Not used when password is set; takes precedence over token.

String

password (security)

The password of the Zendesk user, sent with username in basic authentication. Takes precedence over oauthToken and token.

String

token (security)

The Zendesk API token, sent with username as username/token in basic authentication. Not used when password or oauthToken is set.

String

username (security)

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

DEFAULT

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

addTagToOrganisations

Adds tags to an organization, and returns all the tags of the organization

addTagToTicket

Adds tags to a ticket, and returns all the tags of the ticket

addTagToTopics

Adds tags to a forum topic, and returns all the tags of the topic

associateAttachmentsToArticle

Associates attachments with a Help Center article, up to 20 per call

changeUserPassword

Changes the password of a user, given the current password; users can change only their own password

createArticle

Creates a Help Center article in the section given by the section ID of the article

createArticleTranslation

Creates a translation of a Help Center article

createAutomation

Creates an automation

createCategory

Creates a Help Center category

createCategoryTranslation

Creates a translation of a Help Center category

createComment

Adds a comment to a ticket, and returns the updated ticket

createContentTag

Creates a Help Center content tag

createDynamicContentItem

Creates a dynamic content item

createDynamicContentItemVariant

Creates a variant of a dynamic content item

createForum

Creates a forum

createGroup

Creates a group

createGroupMembership

Creates a group membership, which adds an agent to a group

createMacro

Creates a macro

createOrUpdateOrganization

Creates an organization, or updates it when an organization with the same ID or external ID exists

createOrUpdateUser

Creates a user, or updates it when a user with the same email address or external ID exists

createOrUpdateUsers

Creates or updates users in a background job, and returns the job status

createOrUpdateUsersAsync

Creates or updates users in a background job, and returns a future of the job status

createOrganization

Creates an organization

createOrganizationMembership

Creates an organization membership, which adds a user to an organization

createOrganizationMemberships

Creates organization memberships in a background job, and returns the job status

createOrganizationMembershipsAsync

Creates organization memberships in a background job, and returns a future of the job status

createOrganizations

Creates organizations in a background job, and returns the job status

createOrganizationsAsync

Creates organizations in a background job, and returns a future of the job status

createPermissionGroup

Creates a Help Center permission group, which defines which agents can edit and publish articles

createRequest

Creates a request, which is a ticket as the end user who requests it sees it

createSatisfactionRating

Creates a satisfaction rating of a solved ticket, as the requester of the ticket

createSection

Creates a Help Center section in the category given by the category ID of the section

createSectionTranslation

Creates a translation of a Help Center section

createTarget

Creates a target; Zendesk no longer supports URL and branded targets since October 2024 (use Zendesk webhooks instead), only email targets

createTicket

Creates a ticket

createTicketAsync

Creates a ticket, and returns a future of the created ticket

createTicketField

Creates a ticket field

createTicketForm

Creates a ticket form

createTicketFromTweet

Creates a ticket from a tweet received by a monitored X (formerly Twitter) handle

createTicketIdempotent

Creates a ticket with an idempotency key, and returns the ticket together with whether the request was a duplicate of an earlier one

createTicketIdempotentAsync

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

createTickets

Creates tickets in a background job, up to 100 per call, and returns the job status

createTicketsAsync

Creates tickets in a background job, up to 100 per call, and returns a future of the job status

createTopic

Creates a forum topic

createTrigger

Creates a ticket trigger

createUpload

Uploads a file, and returns the upload with the token to attach the file to a ticket comment

createUploadArticle

Uploads a file as an attachment of a Help Center article

createUser

Creates a user

createUserIdentity

Adds an identity, such as an email address or phone number, to a user

createUserSegment

Creates a Help Center user segment, which defines who can view Help Center content

createUsers

Creates users in a background job, and returns the job status

createUsersAsync

Creates users in a background job, and returns a future of the job status

deleteArticle

Deletes a Help Center article

deleteArticleAttachment

Deletes an attachment of a Help Center article

deleteAttachment

Deletes an attachment

deleteAutomation

Deletes an automation

deleteCategory

Deletes a Help Center category

deleteContentTag

Deletes a Help Center content tag

deleteDynamicContentItem

Deletes a dynamic content item

deleteDynamicContentItemVariant

Deletes a variant of a dynamic content item

deleteForum

Deletes a forum

deleteGroup

Deletes a group

deleteGroupMembership

Deletes a group membership, which removes an agent from a group

deleteOrganization

Deletes an organization

deleteOrganizationMembership

Deletes an organization membership, which removes a user from an organization

deleteOrganizationMemberships

Deletes organization memberships

deleteOrganizations

Deletes organizations in a background job, and returns the job status

deletePermissionGroup

Deletes a Help Center permission group

deleteSection

Deletes a Help Center section

deleteSuspendedTicket

Deletes a suspended ticket

deleteTarget

Deletes a target

deleteTicket

Deletes a ticket; a deleted ticket can be restored until it is deleted permanently

deleteTicketField

Deletes a ticket field

deleteTicketForm

Deletes a ticket form

deleteTickets

Deletes tickets in a background job, up to 100 per call, and returns the job status

deleteTopic

Deletes a forum topic

deleteTranslation

Deletes a Help Center translation of an article, section or category; the only translation of an item cannot be deleted

deleteTrigger

Deletes a ticket trigger

deleteUpload

Deletes an upload that is not attached to a ticket comment yet

deleteUser

Deletes a user; a deleted user can be deleted permanently afterwards

deleteUserIdentity

Deletes an identity of a user

deleteUserSegment

Deletes a Help Center user segment

deleteUsers

Deletes users in a background job, and returns the job status

downloadAttachment

Downloads the content of an attachment to a local file, and returns the path of the file

executeView

Executes a view, and returns the first page of its rows with the columns of the view, as an Optional of an ExecutedViewPage

getActiveTriggers

Gets the active ticket triggers

getArticle

Gets a Help Center article

getArticleFromSearch

Searches the Help Center articles

getArticleSubscriptions

Gets the subscriptions to a Help Center article

getArticleTranslations

Gets the translations of a Help Center article

getArticles

Gets the Help Center articles: all of them, or those of a locale, a category or a section

getArticlesFromAllLabels

Gets the Help Center articles of the en-us locale that have all the given labels

getArticlesFromAnyLabels

Searches the Help Center articles that have any of the given labels

getArticlesFromPage

Gets one page of the Help Center articles

getArticlesIncrementally

Gets the Help Center articles changed since a given time

getAssignableGroupMemberships

Gets the assignable group memberships, of all the groups or of one group

getAssignableGroups

Gets the groups that tickets can be assigned to

getAssignedTicketsCountForUser

Gets the approximate number of tickets assigned to a user

getAttachment

Gets the details of an attachment, with the URL of its content

getAttachmentsFromArticle

Gets the attachments of a Help Center article

getAuthenticatedUser

Gets the user that the component authenticates as

getAutoCompleteOrganizations

Gets the organizations whose names start with the given text

getAutomation

Gets an automation

getAutomations

Gets all the automations

getBrands

Gets all the brands

getCCRequests

Gets the requests on which the authenticated user is CC’d

getCategories

Gets all the Help Center categories

getCategory

Gets a Help Center category

getCategoryTranslations

Gets the translations of a Help Center category

getCcdTicketsCountForUser

Gets the approximate number of tickets on which a user is CC’d

getComplianceDeletionStatuses

Gets the statuses of the compliance (GDPR) deletion of a user

getContentTag

Gets a Help Center content tag

getContentTags

Gets the Help Center content tags

getCurrentUser

Gets the user that the component authenticates as

getCustomAgentRoles

Gets the custom agent roles

getCustomTicketStatuses

Gets the custom ticket statuses

getDeletedTickets

Gets the deleted tickets that are not deleted permanently yet

getDynamicContentItem

Gets a dynamic content item

getDynamicContentItemVariant

Gets a variant of a dynamic content item

getDynamicContentItemVariants

Gets the variants of a dynamic content item

getDynamicContentItems

Gets all the dynamic content items

getForum

Gets a forum

getForums

Gets all the forums, or the forums of a category

getGroup

Gets a group

getGroupMembership

Gets a group membership

getGroupMembershipByUser

Gets the group memberships of a user

getGroupMemberships

Gets all the group memberships, or the memberships of a group

getGroupOrganization

Gets an organization membership of a user

getGroupUsers

Gets the users of a group

getGroups

Gets all the groups

getHelpCenterLocales

Gets the locales enabled in the Help Center; deprecated in the SDK, use listHelpCenterLocales instead

getHolidaysForSchedule

Gets the holidays of a business hours schedule

getIncrementalTicketsResult

Exports the tickets changed since a given time with the older ticket export endpoint, and returns the JSON response as a Map; prefer getTicketsIncrementally

getJiraLinks

Gets the links between Zendesk tickets and Jira issues

getJobStatus

Gets the current state of a background job, such as one started by createTickets

getJobStatusAsync

Gets the current state of a background job, and returns a future of the job status

getJobStatuses

Gets the current state of several background jobs

getJobStatusesAsync

Gets the current state of several background jobs, and returns a future of the job statuses

getLocales

Gets the translation locales available for the account

getMacro

Gets a macro

getMacros

Gets all the macros

getOpenRequests

Gets the open requests of the authenticated user

getOrganization

Gets an organization

getOrganizationFields

Gets the custom organization fields

getOrganizationMembership

Gets an organization membership

getOrganizationMembershipByUser

Gets the organization memberships of a user

getOrganizationMembershipForUser

Gets an organization membership of a user

getOrganizationMemberships

Gets all the organization memberships

getOrganizationMembershipsForOrg

Gets the memberships of an organization

getOrganizationMembershipsForUser

Gets the organization memberships of a user

getOrganizationRequests

Gets the requests of an organization

getOrganizationTickets

Gets the tickets of an organization

getOrganizationUsers

Gets the users of an organization

getOrganizations

Gets all the organizations, or the organizations with the given IDs

getOrganizationsIncrementally

Gets the organizations changed since a given time

getPermissionGroup

Gets a Help Center permission group

getPermissionGroups

Gets all the Help Center permission groups

getRecentTickets

Gets the tickets that the authenticated user viewed recently

getRequest

Gets a request

getRequestComment

Gets a comment of a request

getRequestComments

Gets the comments of a request

getRequests

Gets the requests of the authenticated user

getSatisfactionRating

Gets a satisfaction rating

getSatisfactionRatings

Gets all the satisfaction ratings

getSchedule

Gets a business hours schedule

getSchedules

Gets all the business hours schedules

getSearchTicketResults

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

getSection

Gets a Help Center section

getSectionSubscriptions

Gets the subscriptions to a Help Center section

getSectionTranslations

Gets the translations of a Help Center section

getSections

Gets the Help Center sections: all of them, or those of a category or a user segment

getSolvedRequests

Gets the solved requests of the authenticated user

getSuspendedTickets

Gets the suspended tickets

getTarget

Gets a target

getTargets

Gets all the targets; Zendesk no longer supports URL and branded targets since October 2024, only email targets

getTicket

Gets a ticket

getTicketAudit

Gets an audit of a ticket

getTicketAudits

Gets the audits of a ticket, which record the changes of the ticket

getTicketCollaborators

Gets the users CC’d on a ticket

getTicketComments

Gets the comments of a ticket

getTicketField

Gets a ticket field

getTicketFields

Gets all the ticket fields

getTicketForm

Gets a ticket form

getTicketForms

Gets all the ticket forms

getTicketFromSearchWithExport

Searches the tickets with the export search, which is not limited to 1000 results

getTicketIncidents

Gets the incidents linked to a problem ticket

getTicketMetric

Gets a ticket metric

getTicketMetricByTicket

Gets the metrics of a ticket

getTicketMetrics

Gets the metrics of all the tickets

getTickets

Gets all the tickets, or the tickets with the given IDs

getTicketsByExternalId

Gets the tickets with an external ID

getTicketsCount

Gets the approximate number of tickets

getTicketsCountForOrganization

Gets the approximate number of tickets of an organization

getTicketsFromSearch

Searches the tickets, up to 1000 results; use getTicketFromSearchWithExport for more

getTicketsIncrementally

Gets the tickets changed since a given time; the overload with endTime is deprecated in the SDK

getTimeZones

Gets the time zones available for the account

getTopic

Gets a forum topic

getTopics

Gets topics: all the forum topics, those of a forum or with the given IDs, or the community topics of a user segment

getTopicsByUser

Gets the forum topics of a user

getTrigger

Gets a ticket trigger

getTriggers

Gets the ticket triggers

getTwitterMonitors

Gets the monitored X (formerly Twitter) handles

getUser

Gets a user

getUserCCDTickets

Gets the tickets on which a user is CC’d

getUserFields

Gets the custom user fields

getUserIdentities

Gets the identities of a user, such as email addresses and phone numbers

getUserIdentity

Gets an identity of a user

getUserRelatedInfo

Gets information related to a user, such as the numbers of tickets the user requested, is assigned or is CC’d on

getUserRequestedTickets

Gets the tickets requested by a user

getUserRequests

Gets the requests of a user

getUserSegment

Gets a Help Center user segment

getUserSegments

Gets all the Help Center user segments, or the user segments that a user belongs to

getUserSegmentsApplicable

Gets the Help Center user segments that apply to the current Guide plan of the account

getUserSubscriptions

Gets the Help Center subscriptions of a user

getUsers

Gets all the users, or the users with the given IDs

getUsersByExternalIds

Gets the users with the given external IDs

getUsersByRole

Gets the users with any of the given roles

getUsersIncrementally

Gets the users changed since a given time

getView

Gets the tickets of a view

getViews

Gets all the views

importTicket

Imports a ticket, with its comments and its original timestamps, without running triggers

importTopic

Imports a forum topic

listHelpCenterLocales

Gets the locales enabled in the Help Center and its default locale

lookupOrganizationsByExternalId

Gets the organizations with an external ID

lookupUserByEmail

Searches the users by email address

lookupUserByExternalId

Gets the users with an external ID

macrosShowChangesToTicket

Shows the changes a macro would make to a new ticket, without saving anything

macrosShowTicketAfterChanges

Shows a ticket as it would be after applying a macro, without saving the changes

makePrivateTicketAudit

Makes the comment of an audit of a ticket private

markTicketAsSpam

Marks a ticket as spam and suspends its requester

mergeUsers

Merges an end user into another end user, and returns the user that remains

notifyApp

Sends a notification to an installed Zendesk app

permanentlyDeleteTicket

Permanently deletes a deleted ticket in a background job, and returns the job status; this cannot be undone

permanentlyDeleteTickets

Permanently deletes deleted tickets in a background job, up to 100 per call, and returns the job status; this cannot be undone

permanentlyDeleteUser

Permanently deletes a deleted user; this cannot be undone

queueCreateTicketAsync

Creates a ticket in a background job of Zendesk, and returns a future of the job status

removeTagFromOrganisations

Removes tags from an organization, and returns the remaining tags of the organization

removeTagFromTicket

Removes tags from a ticket, and returns the remaining tags of the ticket

removeTagFromTopics

Removes tags from a forum topic, and returns the remaining tags of the topic

requestVerifyUserIdentity

Sends a verification email to an email identity of a user

resetUserPassword

Sets a new password for a user, as an admin

searchTriggers

Searches the ticket triggers by title

setGroupMembershipAsDefault

Makes a group membership the default group of the agent

setOrganizationMembershipAsDefault

Makes an organization membership the default organization of the user

setTagOnOrganisations

Sets the tags of an organization, replacing all its tags

setTagOnTicket

Sets the tags of a ticket, replacing all its tags

setTagOnTopics

Sets the tags of a forum topic, replacing all its tags

setUserPrimaryIdentity

Makes an identity the primary identity of a user, and returns all the identities of the user

showArticleTranslation

Gets the translation of a Help Center article in a locale

showCategoryTranslation

Gets the translation of a Help Center category in a locale

showSectionTranslation

Gets the translation of a Help Center section in a locale

suspendUser

Suspends a user, who can then no longer sign in

trustTicketAudit

Marks an audit of a ticket as trusted; this endpoint is no longer in the Zendesk API reference and may fail

unassignOrganizationMembership

Removes a user from an organization

unsuspendUser

Lifts the suspension of a user

updateArticle

Updates a Help Center article

updateArticleTranslation

Updates the translation of a Help Center article in a locale

updateAutomation

Updates an automation

updateCategory

Updates a Help Center category

updateCategoryTranslation

Updates the translation of a Help Center category in a locale

updateContentTag

Updates a Help Center content tag

updateDynamicContentItem

Updates a dynamic content item

updateDynamicContentItemVariant

Updates a variant of a dynamic content item

updateForum

Updates a forum

updateGroup

Updates a group

updateInstallation

Updates the installation of a Zendesk app, such as its settings

updateMacro

Updates a macro

updateOrganization

Updates an organization

updateOrganizations

Updates organizations in a background job, and returns the job status

updateOrganizationsAsync

Updates organizations in a background job, and returns a future of the job status

updatePermissionGroup

Updates a Help Center permission group

updateRequest

Updates a request, such as adding a comment as the end user

updateSection

Updates a Help Center section

updateSectionTranslation

Updates the translation of a Help Center section in a locale

updateTicket

Updates a ticket

updateTicketField

Updates a ticket field

updateTicketForm

Updates a ticket form

updateTickets

Updates tickets in a background job, up to 100 per call, and returns the job status

updateTicketsAsync

Updates tickets in a background job, up to 100 per call, and returns a future of the job status

updateTopic

Updates a forum topic

updateTrigger

Updates a ticket trigger

updateUser

Updates a user

updateUserIdentity

Updates an identity of a user

updateUserSegment

Updates a Help Center user segment

updateUsers

Updates users in a background job, and returns the job status

updateUsersAsync

Updates users in a background job, and returns a future of the job status

verifyUserIdentity

Marks an identity of a user as verified

warmUp

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

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

email

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

CamelZendesk. (producer)

Constant: PROPERTY_PREFIX

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

pojo or map

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

any

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 inBody is set.

Producer output

pojo, iterator, list, map or null

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 Camel-prefixed exchange headers in addition to the endpoint options. If the route consumes messages from untrusted producers, strip these internal headers at the trust boundary — for example with removeHeaders("Camel*") — before the message reaches this component, so that a sender cannot override the API call. See the Camel security model for details.

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}"