Hi everyone,
I’m currently building an application using the Freshservice REST API and ran into another gap in the documentation.
I’m looking for an API endpoint that returns all custom fields defined for time entries on tickets. So far I haven’t been able to find anything like this in the docs.
Does such an endpoint exist? Any help would be appreciated!
Hi @tschloesser,
In the current Freshservice API v2 documentation, there is no endpoint that returns the definitions of custom fields configured for time entries (unlike ticket fields, which can be listed with GET /api/v2/ticket_form_fields).
Time entry APIs do support an custom_fields object when creating, viewing, or updating a time entry (for example, POST /api/v2/tickets/{ticket_id}/time_entries). Values can be sent and read if the internal field names are already known, but those names are not returned by a separate “list time entry fields” API.
Practical options today:
-
Read custom_fields from an existing time entry (GET .../time_entries or .../time_entries/{id}) to see which keys are in use.
-
Note field names from Admin → Field Manager → Time Entry Fields in the product UI.
If a dedicated metadata API is needed for integrations, a feature request can be raised with support.
Best regards,
Himanshu