Hi Roland,
In order to update the due_by field of a ticket, we would need to first set the Manual due by as true and then update the due_by and frDueBy( first response due by)
We would need to follow the below steps:
Step 1: Set manual_dueby to true via Update a ticket API
Request url: /helpdesk/tickets/lticket_id].json
Request Method: PUT
Sample Code:
curl -u username@yourcompany.com:password -H "Content-Type: application/json" -X PUT -d '{ "helpdesk_ticket":{ "manual_dueby":true}}' https://domain.freshservice.com/helpdesk/tickets/1704027.json
Step 2: Set due_by and frDueBy via Update a ticket API
Request url: /helpdesk/tickets/ ticket_id].json
Request Method: PUT
Sample Code:
curl -v -u user@yourcompany.com:test -H 'Content-Type: application/json' -X PUT -d '{ "due_by": "2020-01-14T13:08:06Z" }' 'https://domain.freshservice.com/api/v2/tickets/1’
You can also try the steps using our API v2 documentation here
Thanks.