Skip to content

Commit 0a50460

Browse files
author
Ross Curry
committed
add Version 1.14 notes to the changelog - new ticketAction delete
1 parent 4457e8f commit 0a50460

File tree

4 files changed

+41
-6
lines changed

4 files changed

+41
-6
lines changed

docs/changelog.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,40 @@ sidebar_label: API Changelog
66

77
⚠ Consider subscribing to our [**API Newsletter**](http://eepurl.com/g2EiC1) to be notified about upcoming API changes in the future.
88

9+
## Version 1.14
10+
11+
### Manifest API: New ticketAction type delete`
12+
13+
A new `delete` ticketAction type has been introduced for the [Manifest API](general/manifest-api). This means that a dedicated delete button can be availble to tickets. The action type `delete` should be added to the ticketActions array when updating the channel using the [Manifest API](general/manifest-api).
14+
15+
The delete action type accepts one kind of config: `{ forceTagging: true }` . Any other action config given will throw an error.
16+
As with other ticketActions the delete type requires an `id` and `labels` for the 3 supported languages: 'en', 'de', 'fr'.
17+
18+
- webhooks: If configured, the delete action will trigger webhooks.
19+
- action reset: The delete action can be reset using the [Ticket API's error handling](inbox/ticket-api#error-handling) route where `:actionId` will be `delete`.
20+
21+
Manifest API ticketAction example
22+
```json
23+
// ...
24+
"inbox": {
25+
"ticketActions": [
26+
{
27+
"type": "delete",
28+
"id": "delete-id",
29+
"label": {
30+
"en": "Delete",
31+
"de": "löschen",
32+
"fr": "Supprimer"
33+
},
34+
"config": {
35+
"forceTagging": true //optional
36+
}
37+
}
38+
// ...
39+
],
40+
// ...
41+
```
42+
943
## Version 1.13
1044

1145
The following changes to the API are scheduled to be deployed in **calendar week 11**. As all of these changes are **New** additions to existing behavior, there should be no action required by Developers. The impacted documentation pages and swagger specifications have already been updated accordingly.

docs/general/manifest-api.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ curl -X PATCH "https://api.socialhub.io/manifest?accesstoken=eyJhbGciOiJIUzI1NiI
8585

8686
| Field | Description |
8787
|-----------------|-----------------------------------------------------------|
88-
| `type` | Type of the Ticket Action. At the moment we support `reply`, `template_reply` and `button` actions. There may be multiple actions of the same type. |
88+
| `type` | Type of the Ticket Action. At the moment we support `reply`, `template_reply`, `delete` and `button` actions. There may be multiple actions of the same type. |
8989
| `id` | Identifier of the Action. Each Action within a manifest must have a different identifier. Pattern regular expression: `^[a-zA-Z0-9-_]{1,256}$` |
9090
| `label` | Button labels for different locales. Locale is selected depending on user settings. |
9191
| `config` | Configuration options for this Ticket Action. |
@@ -106,7 +106,7 @@ curl -X PATCH "https://api.socialhub.io/manifest?accesstoken=eyJhbGciOiJIUzI1NiI
106106
| `approvalProcess` | Boolean (default is `true`) controlling whether the Approval Process feature should be applied for this Ticket Action. Only supported for `reply` and `template_reply` at this moment |
107107
| `templates.url` | URL to fetch templates for the `template_reply` action from. Required for the `template_reply` action. |
108108
| `timeout` | Action timeout configuration options. |
109-
| `forceTagging` | Boolean (default is `true`) controlling whether the feature forcing the user to add tag(s) to the ticket should be applied for this Ticket Action. |
109+
| `forceTagging` | Boolean (default is `true`) controlling whether the feature forcing the user to add tag(s) to the ticket should be applied for this Ticket Action. (The action of type: `delete` only accepts a config of `forceTagging` . Any other config for the type `delete` will throw an error.) |
110110

111111
#### `inbox.ticketActions[].config.timeout`
112112

@@ -134,6 +134,7 @@ curl -X PATCH "https://api.socialhub.io/manifest?accesstoken=eyJhbGciOiJIUzI1NiI
134134
|-----------------|-----------------------------------------------------------|
135135
| `en` | Human-readable dropdown label for English locale. |
136136
| `de` | Human-readable dropdown label for German locale. |
137+
| `fr` | Human-readable dropdown label for french locale. |
137138

138139
#### `inbox.rightSidebar[]`
139140

docs/inbox/ticket-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,5 +378,5 @@ curl -X POST "https://api.socialhub.io/inbox/tickets/5cc1b08ad62ec72e8388cb47/re
378378

379379
| Field | Description |
380380
|-----------------|-----------------------------------------------------------|
381-
| `followupId` | The identifier of the Reply Followup that has failed to be processed. Only required for `reply` and `template_reply` actions. |
382381
| `reason` | Optional human readable reason why the Ticket Action has failed. |
382+
| `followupId` (optional) | The identifier of the Reply Followup that has failed to be processed. Only required for `reply` and `template_reply` actions. |

swagger.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ definitions:
520520
type:
521521
type: string
522522
description: 'Type of the Ticket Action. There may be multiple actions of the same type.'
523-
enum: ['reply', 'template_reply', 'button']
523+
enum: ['reply', 'template_reply', 'button', 'delete']
524524
id:
525525
type: string
526526
description: 'Identifier of the Action. Each Action within a manifest must have a different identifier.'
@@ -595,7 +595,7 @@ definitions:
595595
label:
596596
type: object
597597
description: 'Human readable title of the option which will be shown to the user as button label.'
598-
required: [ 'en', 'de' ]
598+
required: [ 'en', 'de', 'fr' ]
599599
properties:
600600
en:
601601
type: string
@@ -623,7 +623,7 @@ definitions:
623623
label:
624624
type: object
625625
description: 'Human readable title of the option which will be shown to the user as Tab label.'
626-
required: [ 'en', 'de' ]
626+
required: [ 'en', 'de', 'fr' ]
627627
properties:
628628
en:
629629
type: string

0 commit comments

Comments
 (0)