Skip to content

Commit 3a6a69a

Browse files
committed
Using search tickets example for Custom Action.
1 parent e333b42 commit 3a6a69a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

website/docs/connect-data/reference/freshdesk.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,17 +280,21 @@ Required. A unique identifier for the ticket you want to permanently delete. You
280280

281281
### Custom Action
282282

283-
Use **Custom Action** when you need a Freshdesk REST endpoint that is not modeled above. The form lets you supply the HTTP method, path (for example, `https://api.freshdesk.com/api/v2/tickets/{ticketId}/comments`), query parameters, and body. Appsmith automatically injects the OAuth token from your datasource, so you only have to reference [Freshdesk's API docs](https://developer.freshdesk.com/api) for the payload structure.
283+
Use **Custom Action** when you need a Freshdesk REST endpoint that is not modeled above. The form lets you supply the HTTP method, path, query parameters, and body. Appsmith automatically injects the API key from your datasource, so you only have to reference [Freshdesk's API docs](https://developer.freshdesk.com/api) for the payload structure.
284+
285+
When using Custom Action, provide the path without the `/api/v2` prefix. For example, if the endpoint is `/api/v2/search/tickets`, use `/search/tickets` in the Custom Action form.
284286

285287
*Example:*
286288

287-
- Get ticket comments
289+
- Search tickets
288290

289291
<dd>
290292

291293
```bash
292-
GET /api/v2/tickets/{{ticketId}}/comments
294+
GET /search/tickets?query="status:2 AND priority:3"
293295
```
294296

297+
For more details, see [Filter Tickets](https://developer.freshdesk.com/api/#filter_tickets).
298+
295299
</dd>
296300

0 commit comments

Comments
 (0)