Update Ticket Time Entry
PATCH {{baseUrl}}/api/v1/tickets/:ticket_id/timeEntry/{timeEntry_id}
This API updates an existing ticket time entry
OAuth Scope
Desk.tickets.UPDATE
Attributes
Attribute Name | Data Type | Description |
---|---|---|
requestChargeType | <string> max chars : 120 | Type of request in the ticket. Values supported are Customer Service, Upgrade Request, Product Consultation, and Support and Maintenance. |
ownerId | <long> | ID of the user associated with the time entry |
executedTime | <timestamp> | Time when work related to the time entry was started. |
hoursSpent | <integer> | Number of hours in the time entry. |
minutesSpent | <integer> | Number of minutes in the time entry. |
secondsSpent | <integer> | Number of seconds in the time entry. |
agentCostPerHour | <double> | Per hour cost of an agent. |
additionalCost | <double> | Additional cost incurred |
fixedCost | <double> | Fixed cost |
description | <string> max chars : 65535 | Description of the time entry |
customFields | <list> | User-defined fields related to the time entry. |
cf | <JSONObject> | User-defined fields related to the time entry. |
mode | <String> | Mode configured in time tracking. Supported values are Manual and Auto |
isBillable | <boolean> | Billing Preference |
invoiceId | <long> | ID of the invoice related to the time entry |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"secondsSpent":"21","parent":{"ticketNumber":"1004","associatedTicketId":"4000000031007","subject":"Task subject","id":"4000000031008","type":"TASKS"},"cf":{"cf_timeentryname":"time1"},"executedTime":"2016-06-22T20:30:00.000Z","fixedCost":null,"departmentId":"4000000008694","minutesSpent":"23","creatorId":"4000000008692","agentCostPerHour":"3.0","description":"Time Entry description","hoursSpent":"3","ownerId":"4000000008692","isBillable":true,"mode":"MANUAL","isTrashed":"false","billingType":"FIXED_COST_FOR_TICKETS","createdTime":"2016-06-21T05:52:00.000Z","invoiceId":"4000000008688123","id":"4000000045001","requestChargeType":"Customer Service","additionalCost":"10.0","totalCost":"20.17"}