Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Here is the status of the various API components:
* [Help Center Categories](https://developer.zendesk.com/rest_api/docs/help_center/categories) ✓
* [Help Center Sections](https://developer.zendesk.com/rest_api/docs/help_center/sections) ✓
* [Help Center Articles](https://developer.zendesk.com/rest_api/docs/help_center/articles) ✓
* [Help Center Translations](https://developer.zendesk.com/rest_api/docs/help_center/translations) - Partial (List Translations, Update Translation)
* [Help Center Translations](https://developer.zendesk.com/rest_api/docs/help_center/translations) - Partial (List Translations, Update Translation, Delete Translation)
* [Help Center Subscriptions](https://developer.zendesk.com/rest_api/docs/help_center/subscriptions)
* [Help Center Management Permission Groups](https://developer.zendesk.com/rest_api/docs/help_center/permission_groups)
* [Help Center User Segments](https://developer.zendesk.com/rest_api/docs/help_center/user_segments)
Expand Down
19 changes: 19 additions & 0 deletions src/main/java/org/zendesk/client/v2/Zendesk.java
Original file line number Diff line number Diff line change
Expand Up @@ -1939,6 +1939,7 @@ public Iterable<Translation> getArticleTranslations(Long articleId) {
tmpl("/help_center/articles/{articleId}/translations.json").set("articleId", articleId),
handleList(Translation.class, "translations"));
}

public Article createArticle(Article article) {
checkHasSectionId(article);
return complete(submit(req("POST", tmpl("/help_center/sections/{id}/articles.json").set("id", article.getSectionId()),
Expand Down Expand Up @@ -1980,6 +1981,24 @@ public void deleteArticle(Article article) {
handleStatus()));
}

/**
* Delete translation.
* @param translation
*/
public void deleteTranslation(Translation translation) {
checkHasId(translation);
deleteTranslation(translation.getId());
}

/**
* Delete translation.
* @param translationId
*/
public void deleteTranslation(Long translationId) {
complete(submit(req("DELETE", tmpl("/help_center/translations/{id}.json").set("id", translationId)),
handleStatus()));
}

/**
* Delete attachment from article.
* @param attachment
Expand Down